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
2025-01-14 23:59:03.377965
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d7fb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.0049405097961426 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 15 --only_old 1
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
2025-01-15 00:00:04.777275
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 00:00:15.717543
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75544290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 5.552891492843628 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 15 --only_old 1
2025-01-15 00:00:42.629691
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.0218825340270996 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
2025-01-15 00:01:04.923705
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578f70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.2564351558685303 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 15 --only_old 1
2025-01-15 00:01:12.863968
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755440b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.0158655643463135 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 15 --only_old 1
2025-01-15 00:01:42.527879
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556f110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7701284885406494 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
2025-01-15 00:02:03.272926
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755399b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 00:02:12.749162
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755512d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.779733657836914 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 15 --only_old 1
2025-01-15 00:02:42.744763
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553c250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.770050048828125 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
2025-01-15 00:03:04.172205
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75581930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 00:03:13.105149
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755812f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7573277950286865 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 15 --only_old 1
2025-01-15 00:03:43.038667
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75539090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7582237720489502 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
2025-01-15 00:04:02.796310
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553c910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 00:04:12.196491
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b02b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7713367938995361 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 15 --only_old 1
2025-01-15 00:04:42.242054
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75486970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7762086391448975 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
2025-01-15 00:05:03.700427
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75541970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 00:05:12.444980
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7753520011901855 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 15 --only_old 1
2025-01-15 00:05:42.556096
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75546190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7566332817077637 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
2025-01-15 00:06:03.391431
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f89d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 00:06:12.772261
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755062b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7638680934906006 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 15 --only_old 1
2025-01-15 00:06:42.819910
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75529270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7583563327789307 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
2025-01-15 00:07:04.561733
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 00:07:13.040082
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7529759407043457 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 15 --only_old 1
2025-01-15 00:07:43.030132
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755542b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.753922462463379 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
2025-01-15 00:08:02.804126
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bf850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 00:08:12.223312
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75577250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7817497253417969 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 15 --only_old 1
2025-01-15 00:08:42.235329
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7795765399932861 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
2025-01-15 00:09:03.716346
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 00:09:12.548436
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a72b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7765798568725586 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 15 --only_old 1
2025-01-15 00:09:42.478046
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755912d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.762481927871704 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
2025-01-15 00:10:03.395420
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e88f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 00:10:12.652932
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755391b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.760758638381958 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 15 --only_old 1
2025-01-15 00:10:42.645429
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cf290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.765679121017456 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
2025-01-15 00:11:03.975608
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754908d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 00:11:12.868940
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558f230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7671270370483398 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 15 --only_old 1
2025-01-15 00:11:42.872033
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b72f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.766432523727417 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
2025-01-15 00:12:03.714765
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755609b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 00:12:13.074398
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.756934642791748 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 15 --only_old 1
2025-01-15 00:12:43.171051
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755271d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7639379501342773 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
2025-01-15 00:13:03.743730
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75504950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 00:13:12.495728
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75501170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7781002521514893 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 15 --only_old 1
2025-01-15 00:13:42.369931
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558e130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7649669647216797 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
2025-01-15 00:14:03.174368
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 00:14:12.544939
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7542426586151123 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 15 --only_old 1
2025-01-15 00:14:42.640581
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a00f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7573323249816895 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
2025-01-15 00:15:04.282211
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 00:15:13.216860
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754962b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.766099452972412 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 15 --only_old 1
2025-01-15 00:15:43.003845
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754df1b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.775292158126831 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
2025-01-15 00:16:02.765982
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 00:16:12.261393
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75588270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7737996578216553 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 15 --only_old 1
2025-01-15 00:16:42.315985
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755102d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7700726985931396 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
2025-01-15 00:17:03.801105
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75ac3bb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 00:17:12.557836
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556a330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7561664581298828 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 15 --only_old 1
2025-01-15 00:17:42.727721
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a9210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7866301536560059 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
2025-01-15 00:18:03.704179
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ef8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 00:18:12.945515
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754af230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7651844024658203 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 15 --only_old 1
2025-01-15 00:18:43.135467
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549b270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7776267528533936 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
2025-01-15 00:19:03.404817
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 00:19:12.329701
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e22d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7608253955841064 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 15 --only_old 1
2025-01-15 00:19:42.327103
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75514250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7798409461975098 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
2025-01-15 00:20:03.144161
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 00:20:12.523227
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dc2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7680699825286865 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 15 --only_old 1
2025-01-15 00:20:42.513724
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755932b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7660133838653564 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
2025-01-15 00:21:03.860318
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755179d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 00:21:12.757305
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556e250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7558083534240723 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 15 --only_old 1
2025-01-15 00:21:42.723175
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553c330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7584011554718018 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
2025-01-15 00:22:03.528251
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 00:22:12.935332
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c42b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7585978507995605 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 15 --only_old 1
2025-01-15 00:22:42.921777
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d42d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7570629119873047 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
2025-01-15 00:23:04.577061
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75514490>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 00:23:13.134720
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dd270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7610423564910889 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 15 --only_old 1
2025-01-15 00:23:43.168197
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75556330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7535438537597656 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
2025-01-15 00:24:02.909936
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 00:24:12.357473
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f02f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7632699012756348 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 15 --only_old 1
2025-01-15 00:24:42.299056
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75585150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7609293460845947 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
2025-01-15 00:25:03.975130
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 00:25:12.561745
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7637465000152588 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 15 --only_old 1
2025-01-15 00:25:42.521199
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75496250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7667498588562012 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
2025-01-15 00:26:03.372616
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75551a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 00:26:12.796820
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f5330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 3.4688050746917725 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 15 --only_old 1
2025-01-15 00:26:42.752130
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75571250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7606306076049805 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
2025-01-15 00:27:04.225139
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 00:27:13.011899
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7549166679382324 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 15 --only_old 1
2025-01-15 00:27:42.996604
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c3290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.765963077545166 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
2025-01-15 00:28:02.846131
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b68f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 00:28:12.179298
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755292d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7803592681884766 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 15 --only_old 1
2025-01-15 00:28:42.165003
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b2290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7591075897216797 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
2025-01-15 00:29:03.977604
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755369d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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
2025-01-15 00:30:02.814978
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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
2025-01-15 00:31:04.350517
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e94f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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
2025-01-15 00:32:03.485970
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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
2025-01-15 00:33:03.816105
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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
2025-01-15 00:34:02.921051
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755478f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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
2025-01-15 00:35:04.210487
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75492930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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
2025-01-15 00:36:03.472806
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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
2025-01-15 00:37:03.733683
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2025-01-15 00:38:02.677011
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e5850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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
2025-01-15 00:39:04.389441
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fe910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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
2025-01-15 00:40:03.355745
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2025-01-15 00:41:03.843723
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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
2025-01-15 00:42:02.900689
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2025-01-15 00:43:04.468852
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75493890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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
2025-01-15 00:44:03.468430
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2025-01-15 00:45:03.965911
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2025-01-15 00:46:03.419614
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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
2025-01-15 00:47:03.557281
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2025-01-15 00:48:03.698083
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2025-01-15 00:49:04.583515
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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
2025-01-15 00:50:03.494988
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75522870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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
2025-01-15 00:51:04.117582
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2025-01-15 00:52:03.139041
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2025-01-15 00:53:03.348162
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553fa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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
2025-01-15 00:54:03.630262
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2025-01-15 00:55:03.969733
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2
2025-01-15 00:56:03.164480
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ad8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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
2025-01-15 00:57:04.184745
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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
2025-01-15 00:59:03.250033
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 00:59:32.312913
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7490108013153076 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
2025-01-15 00:59:42.362926
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754888b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 00:59:52.265850
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549a370>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7561726570129395 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
2025-01-15 01:00:03.079127
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:00:32.520169
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755191d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7656474113464355 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
2025-01-15 01:00:42.486505
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755169b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:00:52.387410
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755052f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7547943592071533 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
2025-01-15 01:01:03.671573
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:01:32.757473
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7632875442504883 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
2025-01-15 01:01:42.658774
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755229f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:01:52.566191
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bd2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7532994747161865 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
2025-01-15 01:02:03.445576
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ff930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:02:32.800198
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7571473121643066 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
2025-01-15 01:02:42.842416
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75577a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:02:52.774018
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75572330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7477936744689941 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
2025-01-15 01:03:04.088910
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b5930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:03:32.970241
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755922f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7557437419891357 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
2025-01-15 01:03:42.960116
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ac950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:03:52.944755
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755362d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7483351230621338 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
2025-01-15 01:04:03.841982
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:04:33.120449
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75527250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7632813453674316 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
2025-01-15 01:04:43.209412
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75500990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:04:53.083784
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b12b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.75649094581604 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
2025-01-15 01:05:03.619185
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:05:32.334399
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75495290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.755232810974121 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
2025-01-15 01:05:42.321399
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:05:52.294803
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75579290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7553560733795166 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
2025-01-15 01:06:03.174398
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e19b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:06:32.495535
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75548330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7528529167175293 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
2025-01-15 01:06:42.560433
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:06:52.481381
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fb1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7646050453186035 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
2025-01-15 01:07:03.947593
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755408b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:07:32.682331
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7568809986114502 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
2025-01-15 01:07:42.724891
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cf990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:07:52.649947
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755262d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7580170631408691 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
2025-01-15 01:08:03.607398
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fd6570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:08:32.911791
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e0f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7502214908599854 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
2025-01-15 01:08:42.826119
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75573930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:08:52.804093
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b40d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7531182765960693 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
2025-01-15 01:09:04.423415
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:09:33.091751
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75581250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7566759586334229 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
2025-01-15 01:09:43.135231
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75500a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:09:52.930149
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7540006637573242 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
2025-01-15 01:10:03.947850
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:10:33.102212
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e81b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7531623840332031 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
2025-01-15 01:10:43.162590
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d58d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:10:53.231136
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555d250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7637310028076172 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
2025-01-15 01:11:03.690386
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755499d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:11:32.540682
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556e1b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7504181861877441 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
2025-01-15 01:11:42.520704
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755858f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:11:52.393219
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755202b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7592663764953613 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
2025-01-15 01:12:03.280365
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:12:32.616671
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754982f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7685573101043701 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
2025-01-15 01:12:42.675715
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:12:52.540843
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550b0f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.763378381729126 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
2025-01-15 01:13:04.369364
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75522a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:13:32.769950
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.751476526260376 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
2025-01-15 01:13:42.849811
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:13:52.750082
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551d250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7754111289978027 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
2025-01-15 01:14:03.470220
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75535950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:14:32.917495
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755311d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7566683292388916 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
2025-01-15 01:14:42.977484
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:14:52.874403
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.754347801208496 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
2025-01-15 01:15:04.287898
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:15:33.087919
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557c0f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.757399559020996 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
2025-01-15 01:15:43.136073
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:15:53.014395
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755652d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7545361518859863 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
2025-01-15 01:16:02.809100
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:16:32.273764
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7570254802703857 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
2025-01-15 01:16:42.302633
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75529930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:16:52.161469
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7492101192474365 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
2025-01-15 01:17:03.522394
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:17:32.357790
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.76715087890625 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
2025-01-15 01:17:42.481938
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ff910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:17:52.371213
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc0d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.763307809829712 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
2025-01-15 01:18:03.225324
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:18:32.655098
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553a250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7567856311798096 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
2025-01-15 01:18:42.622360
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:18:52.616574
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 4.262397766113281 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
2025-01-15 01:19:03.983640
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755689f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:19:32.933625
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f12f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7562577724456787 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
2025-01-15 01:19:42.920585
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551e150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:19:52.939481
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.774592638015747 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
2025-01-15 01:20:03.797280
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75580a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:20:33.099412
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b1250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7612175941467285 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
2025-01-15 01:20:43.203692
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755089d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:20:53.103705
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75506130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7500598430633545 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
2025-01-15 01:21:03.754872
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f2e8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:21:32.312949
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e0170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7552506923675537 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
2025-01-15 01:21:42.365725
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ad8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:21:52.319751
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755172b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7724623680114746 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
2025-01-15 01:22:03.134659
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:22:32.563274
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d8130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.764754295349121 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
2025-01-15 01:22:42.526242
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755309b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:22:52.495487
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b4230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7570013999938965 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
2025-01-15 01:23:03.891266
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f8950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:23:32.862799
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7757668495178223 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
2025-01-15 01:23:42.720894
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:23:52.879981
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7536835670471191 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
2025-01-15 01:24:03.811592
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:24:33.101619
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551c110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.755836009979248 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
2025-01-15 01:24:43.060796
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:24:53.031256
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551f250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7646620273590088 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
2025-01-15 01:25:03.490550
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ec9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:25:32.306623
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7550840377807617 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
2025-01-15 01:25:42.272456
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755169f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:25:52.217975
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.767836570739746 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
2025-01-15 01:26:03.110635
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:26:32.619142
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556e230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7496142387390137 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
2025-01-15 01:26:42.419729
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:26:52.348170
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.8744351863861084 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
2025-01-15 01:27:03.760107
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ff970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:27:32.568705
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755060d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7495503425598145 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
2025-01-15 01:27:42.554975
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:27:52.500158
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e9270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7565324306488037 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
2025-01-15 01:28:03.423322
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553f8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:28:32.886605
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558c2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7635347843170166 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
2025-01-15 01:28:42.759638
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550c8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:28:52.646234
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bb290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7751765251159668 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
2025-01-15 01:29:04.395704
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:29:32.924617
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f10b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7586078643798828 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
2025-01-15 01:29:42.872297
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:29:52.862234
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755410d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7670390605926514 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
2025-01-15 01:30:03.613518
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75560990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:30:33.004836
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754992f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7736001014709473 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
2025-01-15 01:30:43.050807
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:30:53.105723
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.750131368637085 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
2025-01-15 01:31:03.509769
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553d210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:31:32.342766
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555d250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.756688117980957 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
2025-01-15 01:31:42.325804
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:31:52.288330
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75563310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7612411975860596 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
2025-01-15 01:32:03.178177
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:32:32.522432
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75560310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7638540267944336 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
2025-01-15 01:32:42.552471
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:32:52.397378
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75577150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7627475261688232 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
2025-01-15 01:33:04.168033
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75491990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:33:32.635022
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755752d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.770496129989624 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
2025-01-15 01:33:42.653060
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755328d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:33:52.570144
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7573862075805664 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
2025-01-15 01:34:03.476830
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:34:32.813970
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ee970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.758249044418335 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
2025-01-15 01:34:42.835179
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754af950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:34:52.738593
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d13b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7596585750579834 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
2025-01-15 01:35:03.914195
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:35:32.920689
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7536242008209229 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
2025-01-15 01:35:42.914142
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c68d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:35:52.973414
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x764cbf30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7657384872436523 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
2025-01-15 01:36:02.792486
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75569930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:36:32.161413
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f02d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7543020248413086 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
2025-01-15 01:36:42.257059
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:36:52.148275
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75565210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.767155408859253 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
2025-01-15 01:37:03.443281
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f9170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:37:32.346377
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552e2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.751772165298462 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
2025-01-15 01:37:42.369429
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:37:52.413838
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755672b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.776623249053955 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
2025-01-15 01:38:03.346674
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:38:32.625719
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.755359411239624 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
2025-01-15 01:38:42.665897
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75535a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:38:52.621536
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754be290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7496557235717773 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
2025-01-15 01:39:03.995086
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:39:32.813753
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558b230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7670960426330566 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
2025-01-15 01:39:42.853822
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:39:52.822565
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755522d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7524430751800537 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
2025-01-15 01:40:03.562619
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:40:32.986679
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75497230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.9080917835235596 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
2025-01-15 01:40:43.006442
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75576930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:40:52.950863
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d82d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7563929557800293 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
2025-01-15 01:41:04.402402
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ff950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:41:33.260379
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755113b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7597286701202393 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
2025-01-15 01:41:43.300372
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:41:53.253010
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554c230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7553131580352783 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
2025-01-15 01:42:03.009049
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c68b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:42:32.494284
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755542b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7592430114746094 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
2025-01-15 01:42:42.508198
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:42:52.381257
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553c110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7547857761383057 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
2025-01-15 01:43:04.062194
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:43:32.597441
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551c110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7562036514282227 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
2025-01-15 01:43:42.601802
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b59b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:43:52.535762
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75589270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.8055753707885742 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
2025-01-15 01:44:03.411136
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e5950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:44:32.798886
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.777353048324585 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
2025-01-15 01:44:42.793148
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:44:52.698734
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75585270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7683334350585938 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
2025-01-15 01:45:04.350768
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:45:32.998252
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c6270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7611327171325684 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
2025-01-15 01:45:42.916398
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:45:52.830818
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558a0f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.761368751525879 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
2025-01-15 01:46:03.763984
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755049d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:46:33.144675
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a22b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7620341777801514 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
2025-01-15 01:46:43.043157
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:46:53.007564
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75585290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.758911371231079 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
2025-01-15 01:47:03.688176
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:47:32.266234
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549e1f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7530732154846191 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
2025-01-15 01:47:42.281336
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:47:52.249285
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b32b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.776183843612671 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
2025-01-15 01:48:03.130516
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:48:32.450919
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755190b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7686858177185059 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
2025-01-15 01:48:42.478705
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:48:52.371815
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7758524417877197 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
2025-01-15 01:49:04.032554
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:49:32.532980
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75573310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7748026847839355 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
2025-01-15 01:49:42.669618
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:49:52.608933
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f08530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7665135860443115 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
2025-01-15 01:50:03.467337
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:50:32.801677
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e82b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.755993127822876 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
2025-01-15 01:50:42.812291
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:50:52.745386
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755282f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7602617740631104 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
2025-01-15 01:51:04.490128
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:51:33.002717
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7753469944000244 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
2025-01-15 01:51:43.035328
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:51:53.030344
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555a250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.750797986984253 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
2025-01-15 01:52:02.876511
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:52:32.192795
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f6370>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7510600090026855 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
2025-01-15 01:52:42.310274
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755818d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:52:52.188776
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755432b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7631876468658447 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
2025-01-15 01:53:03.638684
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d1a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:53:32.391534
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f3190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7647643089294434 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
2025-01-15 01:53:42.418146
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ee8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:53:52.361189
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755081f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7554280757904053 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
2025-01-15 01:54:03.068516
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:54:32.522449
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7613933086395264 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
2025-01-15 01:54:42.701577
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550c890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:54:52.520776
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c32b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7752492427825928 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
2025-01-15 01:55:04.000114
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75512950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:55:32.763357
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755452d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7589337825775146 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
2025-01-15 01:55:42.749214
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:55:52.644047
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75500250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.754619836807251 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
2025-01-15 01:56:03.542602
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75523950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:56:32.831601
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557c270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7592182159423828 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
2025-01-15 01:56:42.873012
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755599d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:56:52.781148
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.759690761566162 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
2025-01-15 01:57:04.428702
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 01:57:32.987349
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755392f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7581846714019775 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
2025-01-15 01:57:43.042556
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755299b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:57:52.953921
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f8950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.765714168548584 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
2025-01-15 01:59:03.779273
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549b8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:59:32.588399
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755830f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7783522605895996 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
2025-01-15 01:59:42.621830
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 01:59:52.589166
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552e250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7520899772644043 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
2025-01-15 02:00:03.539322
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:00:32.842234
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75497290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7793772220611572 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
2025-01-15 02:00:42.812742
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:00:52.756607
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7648401260375977 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
2025-01-15 02:01:04.190336
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75563930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:01:33.032223
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555a230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7526731491088867 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
2025-01-15 02:01:43.021943
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:01:52.905988
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c9a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7557525634765625 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
2025-01-15 02:02:03.798289
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:02:33.150600
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c92b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7704660892486572 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
2025-01-15 02:02:43.149130
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:02:53.473691
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c32f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7666411399841309 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
2025-01-15 02:03:04.075778
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754939f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:03:32.863541
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a51b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7739756107330322 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
2025-01-15 02:03:42.784309
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556f8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:03:52.850740
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7614049911499023 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
2025-01-15 02:04:03.733846
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554fa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:04:33.072433
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755651d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7603304386138916 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
2025-01-15 02:04:43.059307
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:04:53.051199
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551f310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7742063999176025 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
2025-01-15 02:05:03.733387
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:05:32.389327
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.766026496887207 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
2025-01-15 02:05:42.213257
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755678b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:05:52.231838
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7668788433074951 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
2025-01-15 02:06:03.110596
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:06:32.402714
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ef250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7801439762115479 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
2025-01-15 02:06:42.428960
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:06:52.365986
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556e0d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7510428428649902 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
2025-01-15 02:07:03.840156
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:07:32.544058
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ed170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7700204849243164 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
2025-01-15 02:07:42.551192
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:07:52.526939
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e2250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.754213809967041 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
2025-01-15 02:08:03.454202
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549aa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:08:32.725294
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555f310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.76605224609375 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
2025-01-15 02:08:42.686406
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:08:52.697597
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553d2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7608540058135986 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
2025-01-15 02:09:04.235606
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75a09c30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:09:32.918503
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a8330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7581896781921387 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
2025-01-15 02:09:43.012297
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754879f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:09:52.878927
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.752758502960205 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
2025-01-15 02:10:03.876249
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:10:33.136518
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ce270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.754490613937378 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
2025-01-15 02:10:43.123069
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552ba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:10:53.106544
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755452f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7564442157745361 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
2025-01-15 02:11:03.620024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553fa50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:11:32.383201
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7538855075836182 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
2025-01-15 02:11:42.732560
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:11:52.533738
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557b2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7776784896850586 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
2025-01-15 02:12:03.376543
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:12:32.755563
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ef2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7856218814849854 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
2025-01-15 02:12:42.731025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x764f1f30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:12:52.666902
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549d250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.767756700515747 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
2025-01-15 02:13:04.030209
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75ab3b90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:13:33.112465
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7618036270141602 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
2025-01-15 02:13:42.960700
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:13:52.975192
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75588310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7644462585449219 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
2025-01-15 02:14:02.794175
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755449d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:14:32.213924
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.756434440612793 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
2025-01-15 02:14:42.220557
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:14:52.187932
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755121b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7651703357696533 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
2025-01-15 02:15:03.669732
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754879f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:15:32.316935
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dd2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7585909366607666 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
2025-01-15 02:15:42.445868
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:15:52.334961
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75502290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7633275985717773 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
2025-01-15 02:16:03.148823
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75501990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:16:32.620440
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b9250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7681400775909424 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
2025-01-15 02:16:42.601295
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a78d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:16:52.502186
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75573370>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7793962955474854 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
2025-01-15 02:17:04.289284
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:17:32.791610
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553d250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.77687668800354 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
2025-01-15 02:17:42.688531
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551b8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:17:52.666508
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f81f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.758751630783081 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
2025-01-15 02:18:03.675626
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:18:32.911695
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fd0650>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7668216228485107 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
2025-01-15 02:18:42.891141
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:18:52.789406
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553c210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7586228847503662 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
2025-01-15 02:19:04.564002
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b89d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:19:33.081163
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556b2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7797346115112305 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
2025-01-15 02:19:43.038940
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:19:52.975806
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755592b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7634623050689697 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
2025-01-15 02:20:03.022424
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x76139f50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:20:32.196018
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a0210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.765974998474121 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
2025-01-15 02:20:42.220593
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:20:52.173477
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fb250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7786669731140137 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
2025-01-15 02:21:03.506115
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:21:32.443158
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75515290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7687809467315674 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
2025-01-15 02:21:42.369743
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75560a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:21:52.386281
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7596702575683594 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
2025-01-15 02:22:03.347153
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:22:32.599287
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ae290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7644047737121582 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
2025-01-15 02:22:42.617885
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e5870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:22:52.517146
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ad230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7660346031188965 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
2025-01-15 02:23:03.908138
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:23:32.751797
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549e270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.764078140258789 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
2025-01-15 02:23:42.823308
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755449d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:23:52.734423
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.75704026222229 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
2025-01-15 02:24:03.742479
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:24:32.925971
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754962b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7637293338775635 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
2025-01-15 02:24:42.922461
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:24:52.973628
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75501310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7628097534179688 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
2025-01-15 02:25:03.667376
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fc9830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:25:32.250995
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e9990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.75923752784729 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
2025-01-15 02:25:42.183001
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:25:52.353460
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7671589851379395 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
2025-01-15 02:26:03.175320
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d28f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:26:32.554537
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552d330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7597970962524414 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
2025-01-15 02:26:42.602592
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:26:52.542236
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c6290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.763338327407837 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
2025-01-15 02:27:04.188062
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:27:32.777282
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a91f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7710309028625488 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
2025-01-15 02:27:42.776131
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75520930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:27:52.704646
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551e250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7626121044158936 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
2025-01-15 02:28:03.519338
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:28:32.926369
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cf250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7670059204101562 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
2025-01-15 02:28:42.934658
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:28:52.841607
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7574677467346191 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
2025-01-15 02:29:04.491888
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:29:33.098872
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7618236541748047 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
2025-01-15 02:29:43.053796
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:29:53.005390
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7672302722930908 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
2025-01-15 02:30:02.826534
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75500a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:30:32.187778
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75544250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7615242004394531 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
2025-01-15 02:30:42.224276
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:30:52.220238
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75a05bd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7597723007202148 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
2025-01-15 02:31:03.637946
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:31:32.518367
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fb230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7801761627197266 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
2025-01-15 02:31:42.392008
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:31:52.370183
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.763174057006836 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
2025-01-15 02:32:03.083102
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:32:32.674390
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e1f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7653205394744873 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
2025-01-15 02:32:42.586598
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:32:52.614560
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755932d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7681303024291992 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
2025-01-15 02:33:04.027989
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:33:33.063866
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554d2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7609999179840088 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
2025-01-15 02:33:42.921489
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75515a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:33:52.854556
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c22b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7580208778381348 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
2025-01-15 02:34:03.721323
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:34:33.052679
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755202f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.772637128829956 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
2025-01-15 02:34:43.148060
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755539f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755539f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755539f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:34:52.998528
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755600f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7589144706726074 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
2025-01-15 02:35:03.740804
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75498a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:35:32.953712
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bf0f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7813637256622314 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
2025-01-15 02:35:42.217930
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:35:52.222558
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e0b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7661597728729248 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
2025-01-15 02:36:02.933084
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:36:32.439166
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.758418083190918 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
2025-01-15 02:36:42.430994
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d9930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d9930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d9930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:36:52.440652
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550a270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.765444040298462 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
2025-01-15 02:37:04.017037
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755358d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755358d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755358d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:37:32.683340
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755832b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7775282859802246 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
2025-01-15 02:37:42.709177
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:37:52.621997
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754be150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.756831169128418 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
2025-01-15 02:38:03.490204
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:38:32.810155
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f7110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7739019393920898 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
2025-01-15 02:38:42.893291
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:38:52.813400
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754972f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7797911167144775 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
2025-01-15 02:39:04.315499
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b18d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b18d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b18d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:39:33.081069
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75501130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7605865001678467 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
2025-01-15 02:39:43.016282
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:39:52.941935
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c32b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7684338092803955 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
2025-01-15 02:40:02.795850
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75573a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75573a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75573a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:40:32.153588
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e92f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7660729885101318 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
2025-01-15 02:40:42.185618
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:40:52.112048
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7546579837799072 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
2025-01-15 02:41:03.533808
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f89f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f89f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f89f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:41:32.310161
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554e290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7552464008331299 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
2025-01-15 02:41:42.291522
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:41:52.363035
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a0270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7590439319610596 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
2025-01-15 02:42:03.321437
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:42:32.557854
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75551290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7784600257873535 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
2025-01-15 02:42:42.590547
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ee990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ee990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ee990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:42:52.611414
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e9310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.3077332973480225 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
2025-01-15 02:43:03.991793
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fb9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fb9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fb9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:43:32.789512
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754db270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7677459716796875 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
2025-01-15 02:43:42.844253
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:43:52.922111
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553a230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7565281391143799 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
2025-01-15 02:44:03.795010
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:44:33.149053
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a0f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7537715435028076 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
2025-01-15 02:44:43.199952
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75543970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:44:53.013345
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75593110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7768793106079102 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
2025-01-15 02:45:03.444356
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:45:32.332071
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c12d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7766013145446777 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
2025-01-15 02:45:42.391306
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:45:52.237051
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755392f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7770740985870361 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
2025-01-15 02:46:03.085173
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:46:32.361936
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7877123355865479 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
2025-01-15 02:46:42.476478
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:46:52.422834
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7541677951812744 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
2025-01-15 02:47:03.773858
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d31b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d31b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d31b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:47:32.610081
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d90f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.764014482498169 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
2025-01-15 02:47:42.607679
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:47:52.585299
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75583170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7739267349243164 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
2025-01-15 02:48:03.422493
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:48:32.834124
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7558159828186035 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
2025-01-15 02:48:42.783139
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75498a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:48:52.732909
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c6190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7545428276062012 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
2025-01-15 02:49:03.948062
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:49:32.980133
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553d210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7630631923675537 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
2025-01-15 02:49:43.115949
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:49:52.930594
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75593170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7690978050231934 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
2025-01-15 02:50:03.885620
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:50:33.245574
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7651524543762207 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
2025-01-15 02:50:43.179982
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:50:53.145850
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f6130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7566964626312256 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
2025-01-15 02:51:03.718551
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e6990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:51:32.423151
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7658617496490479 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
2025-01-15 02:51:42.325798
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557b890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557b890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557b890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:51:52.377871
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75581250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7671527862548828 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
2025-01-15 02:52:03.072348
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d81d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d81d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d81d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:52:32.630276
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755492b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7750561237335205 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
2025-01-15 02:52:42.590360
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:52:52.517647
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.759603500366211 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
2025-01-15 02:53:03.739415
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e18b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e18b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e18b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:53:32.813850
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b4310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7622089385986328 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
2025-01-15 02:53:42.759690
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755488f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755488f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755488f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:53:52.725935
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fb170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.9025063514709473 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
2025-01-15 02:54:04.137207
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c7110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c7110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c7110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:54:33.548659
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75577250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7698652744293213 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
2025-01-15 02:54:43.449035
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553a850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553a850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553a850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:54:53.388575
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d9210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.9129679203033447 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
2025-01-15 02:55:03.877185
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:55:32.640765
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f6110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7558705806732178 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
2025-01-15 02:55:42.687067
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:55:52.645179
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552b2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7686583995819092 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
2025-01-15 02:56:03.384521
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:56:32.909852
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b32d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.77119779586792 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
2025-01-15 02:56:42.900184
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755719b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755719b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755719b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:56:52.776798
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.763174057006836 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
2025-01-15 02:57:04.272706
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e6950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:57:34.664661
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755632f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.778264045715332 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
2025-01-15 02:57:43.144898
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:57:52.934863
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755372f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7798559665679932 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
2025-01-15 02:59:04.068805
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75538a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75538a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75538a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 02:59:32.731148
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7694361209869385 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
2025-01-15 02:59:42.774228
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 02:59:52.808487
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eda70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7543511390686035 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
2025-01-15 03:00:03.534077
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:00:33.100405
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f6250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.757333755493164 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
2025-01-15 03:00:43.083487
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:00:52.954933
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552f250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.771242380142212 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
2025-01-15 03:01:03.169656
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:01:32.269968
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7654945850372314 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
2025-01-15 03:01:42.156544
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:01:52.220974
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cd1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7736194133758545 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
2025-01-15 03:02:03.032438
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ac1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ac1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ac1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:02:32.436549
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7570619583129883 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
2025-01-15 03:02:42.474535
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755019f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755019f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755019f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:02:52.511500
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557b350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7802176475524902 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
2025-01-15 03:03:04.111412
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:03:32.722560
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c8130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7707056999206543 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
2025-01-15 03:03:42.790545
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552d950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552d950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552d950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:03:52.619620
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75540250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7615489959716797 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
2025-01-15 03:04:03.492412
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75b857b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75b857b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75b857b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:04:32.841442
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7644779682159424 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
2025-01-15 03:04:42.897670
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556d950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:04:52.745840
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75587270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7690231800079346 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
2025-01-15 03:05:04.429979
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755518f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755518f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755518f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:05:33.038832
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558e230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.754380226135254 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
2025-01-15 03:05:42.991802
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:05:52.913113
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556a1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7551369667053223 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
2025-01-15 03:06:03.781893
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:06:33.144084
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b5330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7729065418243408 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
2025-01-15 03:06:43.145354
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75576950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75576950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75576950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:06:53.055341
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551f110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7710070610046387 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
2025-01-15 03:07:03.501387
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755789b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755789b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755789b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:07:32.237758
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a0310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.764763355255127 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
2025-01-15 03:07:42.276877
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:07:52.259963
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755092d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7617161273956299 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
2025-01-15 03:08:03.142390
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:08:32.465192
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558b2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.78078293800354 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
2025-01-15 03:08:42.417455
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755199b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755199b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755199b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:08:52.433984
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c82f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.770066499710083 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
2025-01-15 03:09:03.924304
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755159b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755159b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755159b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:09:32.674701
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b72f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7705557346343994 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
2025-01-15 03:09:42.729239
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:09:52.594025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755362d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7571775913238525 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
2025-01-15 03:10:03.601824
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:10:32.848137
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75592290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.759446620941162 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
2025-01-15 03:10:42.796090
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:10:52.727650
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755802d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7698674201965332 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
2025-01-15 03:11:05.184527
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:11:33.920070
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7615580558776855 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
2025-01-15 03:11:43.924832
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:11:54.089321
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550d270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7688727378845215 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
2025-01-15 03:12:02.974912
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755419b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755419b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755419b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:12:32.360430
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a52b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7659881114959717 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
2025-01-15 03:12:42.318455
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755809b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755809b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755809b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:12:52.258692
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551c270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7676897048950195 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
2025-01-15 03:13:03.889115
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:13:32.507669
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b0290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7716014385223389 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
2025-01-15 03:13:42.512762
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:13:52.504474
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e4110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7729051113128662 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
2025-01-15 03:14:04.326059
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:14:33.754342
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558b2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.782867193222046 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
2025-01-15 03:14:43.741646
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755078f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755078f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755078f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:14:53.672867
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550c330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7648084163665771 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
2025-01-15 03:15:04.000979
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75559910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:15:32.858039
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d1270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7988553047180176 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
2025-01-15 03:15:42.839372
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d99f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:15:52.783321
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755502d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.761401891708374 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
2025-01-15 03:16:03.649851
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:16:32.994088
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75496250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7588438987731934 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
2025-01-15 03:16:43.043556
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:16:53.059755
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e12d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7765202522277832 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
2025-01-15 03:17:03.351892
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548d8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548d8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548d8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:17:32.361346
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755342d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.762791395187378 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
2025-01-15 03:17:42.366373
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:17:52.277822
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552b9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7667717933654785 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
2025-01-15 03:18:03.124737
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548ea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548ea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548ea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:18:32.485597
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554c330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.762714147567749 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
2025-01-15 03:18:42.420500
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:18:52.433178
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7631466388702393 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
2025-01-15 03:19:03.925318
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:19:32.617454
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7825803756713867 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
2025-01-15 03:19:42.639880
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755149d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755149d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755149d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:19:52.549783
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7591407299041748 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
2025-01-15 03:20:03.431399
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:20:32.760786
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7705705165863037 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
2025-01-15 03:20:42.763537
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75581930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75581930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75581930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:20:52.711203
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558e2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7570610046386719 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
2025-01-15 03:21:04.281344
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:21:32.941642
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549a210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7684297561645508 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
2025-01-15 03:21:42.925742
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75495990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75495990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75495990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:21:52.999391
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75533230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7839584350585938 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
2025-01-15 03:22:02.732880
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b3a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:22:32.227711
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755732f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7742984294891357 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
2025-01-15 03:22:42.201724
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755798b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755798b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755798b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:22:52.165487
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e32d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7711331844329834 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
2025-01-15 03:23:03.606797
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:23:32.305444
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550b2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.771296739578247 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
2025-01-15 03:23:42.343471
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a7a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:23:52.358860
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551e170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7703793048858643 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
2025-01-15 03:24:03.158127
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555ca30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:24:32.547769
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ee2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7693748474121094 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
2025-01-15 03:24:42.520169
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ce530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ce530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ce530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:24:52.470320
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7572765350341797 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
2025-01-15 03:25:03.698490
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:25:32.664604
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75588290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7621614933013916 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
2025-01-15 03:25:42.659303
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754930f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754930f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754930f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:25:52.623038
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e62b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7677533626556396 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
2025-01-15 03:26:03.510689
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755278d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755278d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755278d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:26:32.872583
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556e130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7740607261657715 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
2025-01-15 03:26:42.887919
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754898d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754898d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754898d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:26:52.796520
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7760705947875977 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
2025-01-15 03:27:04.360825
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75541a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75541a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75541a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:27:32.998457
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75583210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7873094081878662 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
2025-01-15 03:27:43.069328
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fda10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fda10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fda10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:27:53.059825
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558f250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.774223804473877 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
2025-01-15 03:28:03.049773
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75582a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:28:32.386095
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7824273109436035 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
2025-01-15 03:28:42.238927
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:28:52.230118
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f42f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7736880779266357 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
2025-01-15 03:29:03.788555
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75492450>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75492450>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75492450>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:29:32.400974
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f6170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7684156894683838 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
2025-01-15 03:29:42.412876
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:29:52.406840
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x76218730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7647383213043213 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
2025-01-15 03:30:03.297851
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:30:32.611632
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755010f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7657020092010498 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
2025-01-15 03:30:42.633468
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:30:52.536475
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75589130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7638044357299805 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
2025-01-15 03:31:04.023005
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553d8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553d8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553d8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:31:32.762715
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555e210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7622458934783936 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
2025-01-15 03:31:42.750076
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ff910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ff910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ff910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:31:52.683623
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558e230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7598450183868408 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
2025-01-15 03:32:03.665758
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75584970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75584970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75584970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:32:32.921416
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d22d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7603099346160889 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
2025-01-15 03:32:42.871079
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755479d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755479d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755479d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:32:52.799372
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7578544616699219 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
2025-01-15 03:33:04.401362
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b38f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b38f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b38f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:33:33.036461
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75506190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.764967679977417 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
2025-01-15 03:33:43.094977
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75516a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:33:52.935373
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba1f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7580504417419434 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
2025-01-15 03:34:03.793272
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:34:33.240780
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.769000768661499 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
2025-01-15 03:34:43.258003
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755599b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755599b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755599b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:34:53.244870
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75538350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7600648403167725 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
2025-01-15 03:35:03.833313
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:35:32.646639
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cd1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7678818702697754 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
2025-01-15 03:35:42.488959
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cf990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cf990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cf990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:35:52.503930
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7619104385375977 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
2025-01-15 03:36:03.399182
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75517950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:36:32.730288
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e42b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.776371717453003 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
2025-01-15 03:36:42.784296
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:36:52.654654
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75530210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7625868320465088 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
2025-01-15 03:37:04.120447
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fb970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fb970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fb970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:37:32.933362
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755781f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7731521129608154 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
2025-01-15 03:37:42.922223
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:37:52.828611
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c7310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.9591805934906006 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
2025-01-15 03:38:03.723695
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75563b10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75563b10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75563b10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:38:33.006204
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75571350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7635524272918701 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
2025-01-15 03:38:43.031332
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:38:52.967697
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fd290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7633934020996094 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
2025-01-15 03:39:03.325986
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75575910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:39:32.296689
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558e2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7588005065917969 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
2025-01-15 03:39:42.187629
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:39:52.184136
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75b1e890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.768357276916504 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
2025-01-15 03:40:03.018058
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:40:32.315202
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755211d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.766402244567871 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
2025-01-15 03:40:42.341945
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754eba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:40:52.346941
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7637734413146973 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
2025-01-15 03:41:03.722954
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75511a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:41:32.517476
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755332b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7884340286254883 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
2025-01-15 03:41:42.506440
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:41:52.578891
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75500230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7678682804107666 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
2025-01-15 03:42:03.521233
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755189d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755189d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755189d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:42:32.807640
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555a270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7597618103027344 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
2025-01-15 03:42:42.856797
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556c890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556c890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556c890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:42:52.790291
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7667937278747559 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
2025-01-15 03:43:04.372485
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cd8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cd8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cd8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:43:33.012641
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7610557079315186 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
2025-01-15 03:43:43.028424
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75521950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:43:52.948686
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c21f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.770064353942871 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
2025-01-15 03:44:02.823209
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d38d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d38d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d38d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:44:32.239815
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75589190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.774825096130371 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
2025-01-15 03:44:42.188269
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75573970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75573970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75573970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:44:52.151629
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.758976936340332 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
2025-01-15 03:45:03.755215
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:45:32.290581
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b5330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.766171932220459 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
2025-01-15 03:45:42.302520
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f18d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f18d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f18d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:45:52.336937
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754be2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7705457210540771 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
2025-01-15 03:46:03.099352
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75571a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75571a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75571a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:46:32.523022
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755112d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.778576135635376 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
2025-01-15 03:46:42.548798
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754eea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:46:52.571473
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755092d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.766357660293579 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
2025-01-15 03:47:03.947802
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f8490>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f8490>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f8490>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:47:32.899549
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f4250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7652220726013184 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
2025-01-15 03:47:42.869751
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755849b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755849b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755849b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:47:52.765962
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f4290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7731852531433105 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
2025-01-15 03:48:03.550637
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548e910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548e910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548e910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:48:33.020827
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556b2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.783125400543213 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
2025-01-15 03:48:43.005843
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:48:52.958931
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755092d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7755248546600342 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
2025-01-15 03:49:03.584915
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75498a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:49:32.233887
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e52d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7668874263763428 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
2025-01-15 03:49:42.255581
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:49:52.163940
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755702f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7639222145080566 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
2025-01-15 03:50:02.985142
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553c8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553c8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553c8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:50:32.405478
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75593110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.774421215057373 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
2025-01-15 03:50:42.422112
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754de590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:50:52.345911
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755742f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.765167474746704 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
2025-01-15 03:51:03.819622
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550e8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:51:32.550632
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582390>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7606489658355713 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
2025-01-15 03:51:42.542803
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:51:52.496691
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553a230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7760429382324219 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
2025-01-15 03:52:03.302944
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75553990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:52:32.678309
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75530250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7626583576202393 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
2025-01-15 03:52:42.683813
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:52:52.704757
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7650ef10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7679417133331299 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
2025-01-15 03:53:04.164029
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:53:32.941081
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7785062789916992 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
2025-01-15 03:53:42.938485
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:53:52.852465
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552e230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.760404348373413 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
2025-01-15 03:54:03.756945
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:54:33.082728
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551b270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7750239372253418 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
2025-01-15 03:54:43.090038
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e5a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:54:53.020482
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557b250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7736921310424805 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
2025-01-15 03:55:03.737331
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:55:32.311471
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551c2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7635207176208496 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
2025-01-15 03:55:42.304286
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d0930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d0930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d0930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:55:52.224076
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a0230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7644069194793701 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
2025-01-15 03:56:03.028701
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:56:32.407114
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7740886211395264 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
2025-01-15 03:56:42.417598
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:56:52.388571
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551c1b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.768270492553711 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
2025-01-15 03:57:03.765352
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755189b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755189b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755189b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:57:32.557607
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e0230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7642889022827148 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
2025-01-15 03:57:42.587346
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 03:57:52.537042
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.758972406387329 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
2025-01-15 03:59:04.160020
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75576570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75576570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75576570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:59:33.160054
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b6270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7618889808654785 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
2025-01-15 03:59:43.133738
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d2950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d2950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d2950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 03:59:53.120921
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552b330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7872281074523926 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
2025-01-15 04:00:03.098787
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f89d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f89d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f89d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:00:32.478073
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dd290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7670130729675293 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
2025-01-15 04:00:42.433295
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755228d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755228d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755228d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:00:52.394784
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c71b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7847940921783447 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
2025-01-15 04:01:03.727977
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e58f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e58f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e58f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:01:32.615210
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7616641521453857 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
2025-01-15 04:01:42.657900
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:01:52.548150
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554d2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7746315002441406 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
2025-01-15 04:02:03.293865
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:02:32.746443
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fe130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.775526523590088 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
2025-01-15 04:02:42.762355
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548ba30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:02:52.760164
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7734549045562744 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
2025-01-15 04:03:04.313347
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:03:32.976478
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ee130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7613780498504639 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
2025-01-15 04:03:43.025022
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:03:52.939471
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f20310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7739832401275635 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
2025-01-15 04:04:02.809996
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:04:32.128287
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553f290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7763676643371582 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
2025-01-15 04:04:42.155198
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75497970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75497970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75497970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:04:52.140533
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558f2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7768094539642334 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
2025-01-15 04:05:03.461491
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:05:32.320265
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552e230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.761169672012329 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
2025-01-15 04:05:42.434430
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:05:52.307201
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755831d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7692999839782715 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
2025-01-15 04:06:03.145605
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75551950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75551950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75551950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:06:32.499177
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755312f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7695398330688477 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
2025-01-15 04:06:42.475509
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75488950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75488950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75488950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:06:52.396386
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555a170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7618238925933838 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
2025-01-15 04:07:03.999125
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755398b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755398b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755398b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:07:32.657910
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7676465511322021 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
2025-01-15 04:07:42.625122
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:07:52.531381
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b1310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.77553129196167 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
2025-01-15 04:08:03.438854
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556f8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556f8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556f8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:08:32.766620
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b1310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7669219970703125 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
2025-01-15 04:08:42.760188
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:08:52.691857
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550a290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7712502479553223 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
2025-01-15 04:09:04.323952
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:09:32.918610
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75551210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7782657146453857 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
2025-01-15 04:09:42.994462
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fe890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fe890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fe890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:09:52.874209
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e72f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.784757137298584 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
2025-01-15 04:10:03.731580
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555c930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:10:33.142225
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d8230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7669742107391357 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
2025-01-15 04:10:43.080659
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75519930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75519930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75519930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:10:53.011694
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549d190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.771925926208496 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
2025-01-15 04:11:03.444919
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:11:32.178755
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 5.31315803527832 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
2025-01-15 04:11:42.187072
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:11:52.196049
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549e0d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.9116761684417725 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
2025-01-15 04:12:02.943883
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755339b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755339b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755339b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:12:32.367961
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754db330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7755961418151855 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
2025-01-15 04:12:42.360531
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d6990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d6990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d6990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:12:52.325529
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a8290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7672605514526367 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
2025-01-15 04:13:04.007750
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75557a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75557a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75557a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:13:32.539383
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ed2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7799434661865234 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
2025-01-15 04:13:42.532157
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:13:52.492249
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7616055011749268 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
2025-01-15 04:14:03.362198
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75494970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75494970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75494970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:14:32.712263
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754db2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7763640880584717 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
2025-01-15 04:14:42.690762
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:14:52.651657
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75524a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7744865417480469 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
2025-01-15 04:15:04.298606
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:15:32.920226
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7627151012420654 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
2025-01-15 04:15:42.872788
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552c950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:15:52.798047
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75504270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.767820119857788 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
2025-01-15 04:16:03.896608
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:16:33.128989
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754db1b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7813494205474854 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
2025-01-15 04:16:43.207343
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754879f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754879f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754879f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:16:52.995003
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e82d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7742106914520264 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
2025-01-15 04:17:03.481099
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:17:32.164796
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75571270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7750682830810547 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
2025-01-15 04:17:42.242555
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:17:52.169728
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553f150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7862894535064697 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
2025-01-15 04:18:02.909049
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:18:32.338949
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f02b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7656235694885254 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
2025-01-15 04:18:42.377438
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:18:52.284487
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75503250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7772974967956543 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
2025-01-15 04:19:03.805896
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:19:32.497355
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558e2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7700355052947998 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
2025-01-15 04:19:42.497691
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:19:52.476480
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f1350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7684907913208008 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
2025-01-15 04:20:03.208209
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b49b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:20:32.682300
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.784972906112671 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
2025-01-15 04:20:42.682566
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:20:52.660352
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7804486751556396 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
2025-01-15 04:21:03.910590
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:21:32.858014
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d2210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7729268074035645 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
2025-01-15 04:21:42.886938
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75b96830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75b96830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75b96830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:21:52.975777
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7795655727386475 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
2025-01-15 04:22:02.790491
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75b9daf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75b9daf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75b9daf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:22:32.145695
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550b290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7851600646972656 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
2025-01-15 04:22:42.210123
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:22:52.136589
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755721b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7740349769592285 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
2025-01-15 04:23:03.609650
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75504ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75504ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75504ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:23:32.349900
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f21d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7694332599639893 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
2025-01-15 04:23:42.318762
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fea90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:23:52.377574
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7614140510559082 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
2025-01-15 04:24:03.094267
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75f05570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f05570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f05570>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:24:32.553881
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554c2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7657372951507568 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
2025-01-15 04:24:42.631454
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75492910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75492910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75492910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:24:52.554349
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552b290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.8030483722686768 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
2025-01-15 04:25:04.165826
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:25:32.978749
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7627201080322266 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
2025-01-15 04:25:42.897975
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75567a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:25:52.794360
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ca290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.763362169265747 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
2025-01-15 04:26:03.712259
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:26:32.989433
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553d250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7794907093048096 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
2025-01-15 04:26:43.033507
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:26:52.937848
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7691478729248047 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
2025-01-15 04:27:04.524380
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:27:33.116796
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e0290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7722830772399902 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
2025-01-15 04:27:43.160382
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b78f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b78f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b78f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:27:53.076279
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a51d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7893621921539307 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
2025-01-15 04:28:02.912245
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:28:32.242589
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.774332046508789 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
2025-01-15 04:28:42.245571
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75f72e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f72e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f72e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:28:52.196923
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549b270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7769486904144287 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
2025-01-15 04:29:03.627551
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:29:32.464900
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75557250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.790259599685669 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
2025-01-15 04:29:42.396041
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a8890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a8890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a8890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:29:52.442288
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7699432373046875 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
2025-01-15 04:30:03.371889
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754de9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:30:32.674242
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.923645257949829 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
2025-01-15 04:30:42.680673
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755339b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755339b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755339b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:30:52.635083
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549f230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7744979858398438 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
2025-01-15 04:31:04.151486
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554e550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554e550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554e550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:31:32.797928
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7837953567504883 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
2025-01-15 04:31:42.987697
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75554830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75554830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75554830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:31:52.989096
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7625796794891357 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
2025-01-15 04:32:02.827077
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ed8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ed8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ed8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:32:32.242238
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7787599563598633 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
2025-01-15 04:32:42.162793
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:32:52.120269
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75556250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7616982460021973 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
2025-01-15 04:33:03.842362
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:33:32.303918
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7871456146240234 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
2025-01-15 04:33:42.278675
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:33:52.236263
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755632d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.776979923248291 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
2025-01-15 04:34:03.010951
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75585990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75585990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75585990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:34:32.527321
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755210f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7716395854949951 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
2025-01-15 04:34:42.546660
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75f6f410>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f6f410>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f6f410>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:34:52.435643
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75555110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7707805633544922 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
2025-01-15 04:35:03.865341
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755299d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755299d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755299d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:35:32.647261
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7829217910766602 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
2025-01-15 04:35:42.652370
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a4970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:35:52.610267
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7899580001831055 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
2025-01-15 04:36:03.422401
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:36:32.801849
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7915632724761963 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
2025-01-15 04:36:42.827567
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75550a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:36:52.790832
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75593290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.775681734085083 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
2025-01-15 04:37:04.301164
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:37:33.077938
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fd2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7709064483642578 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
2025-01-15 04:37:43.083381
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:37:53.032522
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f9250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.779374599456787 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
2025-01-15 04:38:02.939532
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549a910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549a910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549a910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:38:32.204785
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549e270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7784841060638428 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
2025-01-15 04:38:42.189346
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:38:52.192335
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d32b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7863874435424805 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
2025-01-15 04:39:03.681262
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:39:32.417992
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7749202251434326 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
2025-01-15 04:39:42.530769
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:39:52.432503
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ca290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7630348205566406 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
2025-01-15 04:40:03.252753
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:40:34.270962
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7720615863800049 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
2025-01-15 04:40:42.774449
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:40:52.574350
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755790f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.8155417442321777 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
2025-01-15 04:41:04.027832
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549a8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549a8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549a8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:41:32.828064
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558d0d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7750287055969238 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
2025-01-15 04:41:42.845404
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:41:52.739349
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e9250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7697298526763916 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
2025-01-15 04:42:03.678857
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:42:33.028244
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7641606330871582 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
2025-01-15 04:42:42.949011
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:42:52.912311
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75580a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7891736030578613 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
2025-01-15 04:43:04.345916
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548f8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548f8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548f8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:43:33.066597
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550a230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7652242183685303 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
2025-01-15 04:43:43.106925
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550b930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550b930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550b930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:43:53.171668
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75540310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7806637287139893 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
2025-01-15 04:44:03.035914
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:44:32.384446
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755901f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7766687870025635 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
2025-01-15 04:44:42.497014
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:44:52.307329
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f3290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7887234687805176 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
2025-01-15 04:45:03.916561
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75583a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75583a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75583a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:45:32.494301
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c72b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.787947654724121 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
2025-01-15 04:45:42.500201
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755484f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755484f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755484f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:45:52.501121
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75495270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7752587795257568 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
2025-01-15 04:46:03.391899
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:46:32.680330
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a9310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.779634952545166 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
2025-01-15 04:46:42.726043
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75f38530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f38530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f38530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:46:52.617071
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f42d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7794158458709717 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
2025-01-15 04:47:04.107721
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75568ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75568ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75568ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:47:32.825764
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7674193382263184 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
2025-01-15 04:47:42.849722
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ff9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ff9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ff9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:47:52.828676
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558a2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7637090682983398 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
2025-01-15 04:48:03.673119
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75577990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75577990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75577990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:48:33.019170
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553f350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7879467010498047 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
2025-01-15 04:48:43.051381
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75493910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75493910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75493910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:48:53.094046
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7633166313171387 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
2025-01-15 04:49:03.408337
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:49:32.269802
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fb190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7947301864624023 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
2025-01-15 04:49:42.248542
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755439d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755439d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755439d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:49:52.269607
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554c270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.772968053817749 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
2025-01-15 04:50:03.142890
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75498950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:50:32.489467
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75558230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7789883613586426 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
2025-01-15 04:50:42.560282
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755328d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755328d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755328d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:50:52.449545
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754df1f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7914230823516846 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
2025-01-15 04:51:03.781780
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:51:32.694285
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7730038166046143 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
2025-01-15 04:51:42.679984
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:51:53.111113
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7775588035583496 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
2025-01-15 04:52:03.525662
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:52:32.874586
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bb270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.789910078048706 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
2025-01-15 04:52:42.854566
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549d910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549d910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549d910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:52:52.787702
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755800d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7677257061004639 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
2025-01-15 04:53:04.418937
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550c970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550c970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550c970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:53:33.191894
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7647426128387451 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
2025-01-15 04:53:43.186342
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755799f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755799f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755799f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:53:53.106956
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755602f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.777562141418457 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
2025-01-15 04:54:02.919295
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c0950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c0950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c0950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:54:32.287629
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75555290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7685573101043701 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
2025-01-15 04:54:42.291489
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:54:52.331475
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549d270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7814838886260986 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
2025-01-15 04:55:03.543133
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755109d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755109d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755109d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:55:32.542393
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.790334939956665 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
2025-01-15 04:55:42.524140
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:55:52.518156
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e12b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7820837497711182 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
2025-01-15 04:56:03.473465
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75552a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:56:32.747629
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75556230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7653555870056152 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
2025-01-15 04:56:42.763159
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550fa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550fa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550fa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:56:52.645431
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7741904258728027 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
2025-01-15 04:57:04.104453
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755049d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755049d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755049d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:57:32.855544
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7635586261749268 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
2025-01-15 04:57:42.908085
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552ea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552ea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552ea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:57:52.908747
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dc2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7746267318725586 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
2025-01-15 04:59:03.914167
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b69b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b69b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b69b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 04:59:32.770765
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b32d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.789597511291504 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
2025-01-15 04:59:42.684492
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 04:59:52.638387
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554e2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7643194198608398 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
2025-01-15 05:00:03.730605
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:00:32.940433
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557a130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7787365913391113 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
2025-01-15 05:00:42.850319
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75579970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75579970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75579970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:00:52.886269
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556c290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7704284191131592 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
2025-01-15 05:01:04.454030
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75553990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:01:33.164882
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557b250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7801060676574707 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
2025-01-15 05:01:43.150614
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:01:53.085613
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755880f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7688462734222412 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
2025-01-15 05:02:02.877274
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755239d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755239d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755239d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:02:32.257805
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755912f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7712805271148682 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
2025-01-15 05:02:42.242517
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755688b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755688b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755688b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:02:52.195993
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7651546001434326 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
2025-01-15 05:03:03.653191
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75527a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75527a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75527a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:03:32.477699
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75588370>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7824852466583252 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
2025-01-15 05:03:42.508620
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:03:52.360523
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75520310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7683343887329102 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
2025-01-15 05:04:03.105993
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e7970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:04:32.585534
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f3350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.779144287109375 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
2025-01-15 05:04:42.614694
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e59b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e59b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e59b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:04:52.501170
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75501230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7719297409057617 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
2025-01-15 05:05:04.333974
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:05:32.795877
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75535330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.786130428314209 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
2025-01-15 05:05:42.784433
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:05:52.761488
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.783620834350586 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
2025-01-15 05:06:03.649296
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f7950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f7950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f7950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:06:33.109276
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d7290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7802584171295166 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
2025-01-15 05:06:43.093599
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a6ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:06:53.094084
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75499250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7715504169464111 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
2025-01-15 05:07:03.560451
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c18d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c18d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c18d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:07:32.260057
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7732958793640137 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
2025-01-15 05:07:42.336285
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75531970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75531970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75531970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:07:52.264453
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7730519771575928 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
2025-01-15 05:08:03.201735
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75558970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75558970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75558970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:08:32.430972
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755512d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7710676193237305 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
2025-01-15 05:08:42.505950
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:08:52.422458
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7652878761291504 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
2025-01-15 05:09:03.530846
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b5a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:09:32.894987
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7664413452148438 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
2025-01-15 05:09:42.895808
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75487930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75487930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75487930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:09:52.831378
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550370>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7720155715942383 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
2025-01-15 05:10:03.693720
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554d8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554d8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554d8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:10:33.148186
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75500250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.77268648147583 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
2025-01-15 05:10:43.039589
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:10:53.014607
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f32d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7832505702972412 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
2025-01-15 05:11:03.755822
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e39b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e39b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e39b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:11:32.196493
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c41b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.779914140701294 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
2025-01-15 05:11:42.290072
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:11:52.239739
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552e2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.765960931777954 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
2025-01-15 05:12:03.117310
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75514990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75514990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75514990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:12:32.439145
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7837965488433838 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
2025-01-15 05:12:42.417197
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755729d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755729d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755729d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:12:52.400069
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75531130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.80137300491333 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
2025-01-15 05:13:03.704348
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755479d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755479d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755479d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:13:32.684479
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75534310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7793209552764893 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
2025-01-15 05:13:42.629418
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a1910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:13:52.606961
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75581310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.771777868270874 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
2025-01-15 05:14:03.466057
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:14:32.821701
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555d2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7808256149291992 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
2025-01-15 05:14:42.838266
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:14:52.844483
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a3250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.790212631225586 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
2025-01-15 05:15:04.283788
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75539a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75539a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75539a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:15:33.118977
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c6230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.771974802017212 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
2025-01-15 05:15:43.114352
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:15:53.050808
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b32b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.790738582611084 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
2025-01-15 05:16:02.857099
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:16:32.343462
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.771052360534668 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
2025-01-15 05:16:42.320278
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:16:52.159223
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755151b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7685587406158447 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
2025-01-15 05:17:03.661114
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:17:32.358955
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75515270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7689101696014404 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
2025-01-15 05:17:42.379199
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75570a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:17:52.323997
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75557270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7759480476379395 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
2025-01-15 05:18:03.173007
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549c1b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c1b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c1b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:18:32.617280
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.776505470275879 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
2025-01-15 05:18:42.518192
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:18:52.449237
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f9230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7863872051239014 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
2025-01-15 05:19:03.824534
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:19:32.662431
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d52b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7804443836212158 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
2025-01-15 05:19:42.641725
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e0a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e0a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e0a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:19:52.603657
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7712347507476807 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
2025-01-15 05:20:03.490802
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:20:32.835889
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e72f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.78273344039917 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
2025-01-15 05:20:42.815060
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554f950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:20:52.777075
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7941474914550781 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
2025-01-15 05:21:04.085383
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:21:33.124387
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d8270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7797529697418213 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
2025-01-15 05:21:43.074970
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75489930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75489930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75489930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:21:53.056018
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b80b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7721571922302246 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
2025-01-15 05:22:02.888308
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:22:32.264304
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b9290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.91386079788208 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
2025-01-15 05:22:42.197236
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:22:52.259761
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f4250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7797422409057617 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
2025-01-15 05:23:03.686323
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550fab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550fab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550fab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:23:32.419503
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f6310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.76808500289917 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
2025-01-15 05:23:42.382258
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75507950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75507950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75507950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:23:52.442551
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755501b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7706785202026367 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
2025-01-15 05:24:03.257309
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:24:32.645225
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f1270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7717475891113281 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
2025-01-15 05:24:42.734850
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:24:52.650969
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75573170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7906701564788818 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
2025-01-15 05:25:04.108194
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:25:32.902229
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75537170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7812352180480957 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
2025-01-15 05:25:42.968060
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75584970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75584970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75584970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:25:52.802980
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555d250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7796716690063477 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
2025-01-15 05:26:03.650462
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557c890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557c890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557c890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:26:33.003495
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7800366878509521 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
2025-01-15 05:26:43.007063
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ad910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ad910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ad910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:26:52.972406
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a62f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7636947631835938 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
2025-01-15 05:27:03.275643
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755009b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755009b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755009b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:27:32.136077
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7807366847991943 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
2025-01-15 05:27:42.186109
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:27:52.156524
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e9290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7719862461090088 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
2025-01-15 05:28:02.946878
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755459b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755459b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755459b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:28:32.298222
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755842d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7752766609191895 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
2025-01-15 05:28:42.292606
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e4950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e4950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e4950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:28:52.250349
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7711577415466309 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
2025-01-15 05:29:03.691563
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:29:32.597164
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7663657665252686 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
2025-01-15 05:29:42.613762
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:29:52.455957
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ae250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.766911268234253 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
2025-01-15 05:30:03.301088
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754969f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754969f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754969f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:30:32.699249
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556f290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7924492359161377 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
2025-01-15 05:30:42.671998
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:30:52.676816
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755832d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7955946922302246 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
2025-01-15 05:31:04.324240
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:31:32.910985
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75514390>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.786116600036621 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
2025-01-15 05:31:42.926020
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:31:52.838974
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f72b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7795732021331787 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
2025-01-15 05:32:03.644128
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:32:33.131071
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755852b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7909114360809326 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
2025-01-15 05:32:43.039510
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75575990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:32:53.080568
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550f250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7794249057769775 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
2025-01-15 05:33:03.706893
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:33:32.309749
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7840089797973633 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
2025-01-15 05:33:42.292795
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754935f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754935f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754935f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:33:52.248605
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552e110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7701594829559326 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
2025-01-15 05:34:03.043192
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755659b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755659b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755659b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:34:32.477714
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75539130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.778336763381958 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
2025-01-15 05:34:42.438599
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:34:52.456529
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc0d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7719995975494385 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
2025-01-15 05:35:03.958156
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555a9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:35:32.737616
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7988317012786865 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
2025-01-15 05:35:42.682343
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:35:52.612074
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7702112197875977 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
2025-01-15 05:36:03.394653
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:36:32.868630
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75565150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.776977777481079 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
2025-01-15 05:36:42.806245
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ae8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ae8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ae8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:36:52.757715
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e5270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7723090648651123 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
2025-01-15 05:37:04.429188
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:37:33.083000
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7930126190185547 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
2025-01-15 05:37:42.965708
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755338b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755338b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755338b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:37:53.070652
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ed330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.780137300491333 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
2025-01-15 05:38:02.946300
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:38:32.321101
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557b2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7869462966918945 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
2025-01-15 05:38:42.267228
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:38:52.211328
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75563250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7825603485107422 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
2025-01-15 05:39:03.787812
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75513970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75513970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75513970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:39:32.429258
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754af2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.8003499507904053 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
2025-01-15 05:39:42.381978
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:39:52.364445
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75563270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.790712833404541 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
2025-01-15 05:40:03.160978
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:40:32.680338
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7751102447509766 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
2025-01-15 05:40:42.683637
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75f76250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f76250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f76250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:40:52.527993
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755482f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.773313283920288 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
2025-01-15 05:41:04.131513
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:41:32.809896
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7802989482879639 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
2025-01-15 05:41:42.759136
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:41:52.743511
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a42f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7731714248657227 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
2025-01-15 05:42:03.718874
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:42:32.991486
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755291f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7740836143493652 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
2025-01-15 05:42:43.014795
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555b950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:42:52.906015
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75584350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.771470308303833 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
2025-01-15 05:43:04.474133
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:43:33.249999
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558b210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.797050952911377 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
2025-01-15 05:43:43.462967
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:43:53.230510
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ee150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.777642011642456 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
2025-01-15 05:44:03.145341
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:44:32.412966
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b9290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7731800079345703 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
2025-01-15 05:44:42.483129
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b0990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b0990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b0990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:44:52.404988
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e1f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7773749828338623 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
2025-01-15 05:45:03.744794
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75543870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:45:32.642748
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75520330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7854821681976318 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
2025-01-15 05:45:42.677435
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75553950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:45:52.539920
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75580270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7716355323791504 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
2025-01-15 05:46:03.434232
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75530950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75530950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75530950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:46:32.718816
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75530310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7763230800628662 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
2025-01-15 05:46:42.766384
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557e910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:46:52.653267
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c01d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7714531421661377 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
2025-01-15 05:47:04.182041
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755728f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755728f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755728f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:47:32.908482
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75499170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.778001308441162 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
2025-01-15 05:47:42.932624
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755379b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755379b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755379b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:47:52.829915
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c6350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7676005363464355 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
2025-01-15 05:48:03.724265
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553f990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:48:33.128490
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75523250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7939262390136719 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
2025-01-15 05:48:43.004846
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:48:52.974635
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75572170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7680370807647705 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
2025-01-15 05:49:03.717952
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:49:32.287120
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755762d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7669847011566162 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
2025-01-15 05:49:42.217779
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:49:52.162512
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e62d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7780342102050781 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
2025-01-15 05:50:02.908027
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:50:32.342544
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75548290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7708356380462646 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
2025-01-15 05:50:42.348127
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a2990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:50:52.275924
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551b110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7808339595794678 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
2025-01-15 05:51:03.875829
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cb910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:51:32.398596
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557a290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.773099660873413 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
2025-01-15 05:51:42.541701
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75578910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:51:52.521950
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554e270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7676339149475098 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
2025-01-15 05:52:03.320358
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f3110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f3110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f3110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:52:32.693796
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75507250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7949614524841309 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
2025-01-15 05:52:42.780668
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755369d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755369d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755369d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:52:52.659189
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755242b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7826316356658936 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
2025-01-15 05:53:04.337628
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75552970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:53:32.984792
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7744669914245605 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
2025-01-15 05:53:42.927262
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548b610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548b610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548b610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:53:52.834453
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab1b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7852256298065186 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
2025-01-15 05:54:03.657364
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:54:33.100927
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ec290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7725160121917725 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
2025-01-15 05:54:43.077947
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:54:53.007074
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7848045825958252 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
2025-01-15 05:55:03.536180
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75550930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:55:32.254222
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ca250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.782515287399292 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
2025-01-15 05:55:42.213342
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:55:52.158693
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755062b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7674040794372559 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
2025-01-15 05:56:03.104455
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75fb33b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fb33b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fb33b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:56:32.471045
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c0f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7865879535675049 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
2025-01-15 05:56:42.336810
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:56:52.304253
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555a350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7801101207733154 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
2025-01-15 05:57:03.840361
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a74f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a74f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a74f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:57:32.477743
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ff2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7842559814453125 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
2025-01-15 05:57:42.615806
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:57:52.432715
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75591290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.773756504058838 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
2025-01-15 05:59:04.237521
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549c170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 05:59:33.090325
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75554310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7757468223571777 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
2025-01-15 05:59:43.071944
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 05:59:53.041728
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d82d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.771881341934204 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
2025-01-15 06:00:03.001841
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:00:32.369141
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7819619178771973 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
2025-01-15 06:00:42.214716
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755148f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755148f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755148f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:00:52.253466
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557a210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7710118293762207 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
2025-01-15 06:01:03.750651
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:01:32.591187
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75544270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7747225761413574 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
2025-01-15 06:01:42.440200
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755429b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755429b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755429b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:01:52.437929
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7703311443328857 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
2025-01-15 06:02:03.235895
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:02:32.627985
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755340f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.790494441986084 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
2025-01-15 06:02:42.692217
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:02:52.687821
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755391d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.773380994796753 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
2025-01-15 06:03:04.185919
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551a930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:03:32.935029
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755810b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7755694389343262 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
2025-01-15 06:03:42.883645
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:03:52.937868
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75555250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7752792835235596 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
2025-01-15 06:04:03.728469
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75549950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:04:33.140483
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549f2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7813401222229004 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
2025-01-15 06:04:43.217377
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ce930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ce930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ce930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:04:53.054006
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7687993049621582 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
2025-01-15 06:05:03.690571
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d29f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d29f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d29f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:05:32.298173
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558e2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7678968906402588 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
2025-01-15 06:05:42.286480
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:05:52.317401
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75533330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7838160991668701 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
2025-01-15 06:06:03.303431
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d2170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d2170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d2170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:06:32.499086
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75494250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7707953453063965 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
2025-01-15 06:06:42.507901
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75500a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75500a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75500a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:06:52.439696
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558c2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7867193222045898 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
2025-01-15 06:07:04.024498
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75497930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75497930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75497930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:07:32.645402
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755702b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7732126712799072 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
2025-01-15 06:07:42.692261
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:07:52.569521
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f8230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.783062219619751 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
2025-01-15 06:08:03.381630
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755689f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755689f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755689f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:08:32.771414
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d22d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.780390977859497 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
2025-01-15 06:08:42.790347
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c1930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:08:52.760637
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555e270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7687513828277588 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
2025-01-15 06:09:04.392136
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549e930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549e930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549e930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:09:33.108801
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556b0f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7826077938079834 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
2025-01-15 06:09:42.976006
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ad950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ad950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ad950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:09:52.912468
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755192d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7766892910003662 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
2025-01-15 06:10:03.789058
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755749d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755749d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755749d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:10:33.189862
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755262f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7802009582519531 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
2025-01-15 06:10:43.165472
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549f910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549f910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549f910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:10:53.104219
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75558390>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7767579555511475 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
2025-01-15 06:11:03.687934
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e78f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e78f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e78f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:11:32.480093
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d1390>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7795014381408691 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
2025-01-15 06:11:42.506874
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755819b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755819b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755819b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:11:52.314912
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557a170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7774624824523926 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
2025-01-15 06:12:03.111113
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e7950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:12:32.439304
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7691104412078857 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
2025-01-15 06:12:42.448463
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c4930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:12:52.422837
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d53b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7852678298950195 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
2025-01-15 06:13:03.845249
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75487a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75487a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75487a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:13:32.598631
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b32d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7835264205932617 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
2025-01-15 06:13:42.744852
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755069d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755069d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755069d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:13:52.698051
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7774910926818848 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
2025-01-15 06:14:03.600232
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:14:32.898496
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ae290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7697021961212158 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
2025-01-15 06:14:42.893871
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755318f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755318f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755318f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:14:52.922105
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c5270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.774228572845459 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
2025-01-15 06:15:04.586505
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:15:33.236691
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755412b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.789015293121338 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
2025-01-15 06:15:43.252509
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:15:53.110769
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7824203968048096 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
2025-01-15 06:16:03.006219
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:16:32.533260
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b42b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7846782207489014 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
2025-01-15 06:16:42.391418
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b6910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b6910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b6910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:16:52.411160
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.784167766571045 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
2025-01-15 06:17:03.827152
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556a930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556a930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556a930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:17:32.571499
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755802f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.77433180809021 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
2025-01-15 06:17:42.582499
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754eba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eba70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:17:52.653423
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7826998233795166 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
2025-01-15 06:18:03.522426
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:18:32.894661
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.772836446762085 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
2025-01-15 06:18:42.830473
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:18:52.841345
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d8290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7746751308441162 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
2025-01-15 06:19:04.362375
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552b9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:19:33.054578
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75523990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7791917324066162 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
2025-01-15 06:19:43.040416
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:19:53.121293
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&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: 1.7757220268249512 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
2025-01-15 06:20:02.895551
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:20:32.353101
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a91b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7856557369232178 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
2025-01-15 06:20:42.441266
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:20:52.308838
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556e2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7785203456878662 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
2025-01-15 06:21:04.887037
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cf890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cf890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cf890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:21:33.826577
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f37850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7699239253997803 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
2025-01-15 06:21:43.793515
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75503a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75503a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75503a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:21:53.756531
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f0f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7834889888763428 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
2025-01-15 06:22:03.652465
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75528a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:22:33.008855
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755452f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7815589904785156 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
2025-01-15 06:22:42.936793
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:22:52.904638
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7811784744262695 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
2025-01-15 06:23:04.436897
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:23:33.236290
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75565230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7875816822052002 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
2025-01-15 06:23:43.274762
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755739b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755739b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755739b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:23:53.074212
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755422b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7683708667755127 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
2025-01-15 06:24:03.377755
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:24:32.284741
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7821593284606934 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
2025-01-15 06:24:42.286091
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75f6a410>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f6a410>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f6a410>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:24:52.303061
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c52d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7774872779846191 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
2025-01-15 06:25:03.611109
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75569930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75569930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75569930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:25:32.487487
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75590170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7756884098052979 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
2025-01-15 06:25:42.485801
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b9970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b9970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b9970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:25:52.480124
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.775181770324707 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
2025-01-15 06:26:03.408971
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b7990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b7990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b7990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:26:32.790451
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7963206768035889 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
2025-01-15 06:26:42.679346
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75507990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75507990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75507990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:26:52.623051
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75497290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7940962314605713 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
2025-01-15 06:27:04.225031
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:27:33.024553
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551f2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7932159900665283 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
2025-01-15 06:27:43.035914
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:27:52.784944
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549d090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7924308776855469 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
2025-01-15 06:28:03.629303
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:28:33.018326
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551d330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.778799057006836 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
2025-01-15 06:28:42.967553
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:28:52.888332
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.77156662940979 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
2025-01-15 06:29:04.340039
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75583130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75583130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75583130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:29:33.127784
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755882d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7753925323486328 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
2025-01-15 06:29:43.105743
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:29:53.034027
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755532f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.784193992614746 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
2025-01-15 06:30:02.919796
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755247f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755247f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755247f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:30:32.227343
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a5130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7779552936553955 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
2025-01-15 06:30:42.372205
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:30:52.281100
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fb110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7906701564788818 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
2025-01-15 06:31:03.612527
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75522970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75522970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75522970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:31:32.435875
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ee250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7774226665496826 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
2025-01-15 06:31:42.467653
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:31:52.421169
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7760224342346191 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
2025-01-15 06:32:03.290905
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:32:32.634273
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755822d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7767932415008545 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
2025-01-15 06:32:42.671928
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:32:52.569998
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7705316543579102 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
2025-01-15 06:33:04.040283
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754be8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754be8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754be8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:33:32.768445
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ef2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7857985496520996 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
2025-01-15 06:33:42.756842
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f34f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f34f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f34f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:33:52.731861
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e5290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.786055564880371 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
2025-01-15 06:34:03.614425
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754af590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754af590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754af590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:34:32.963341
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755111b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7792563438415527 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
2025-01-15 06:34:42.978055
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:34:52.831337
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75542170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7695810794830322 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
2025-01-15 06:35:04.561368
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755008d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755008d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755008d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:35:33.062606
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75576270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7805628776550293 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
2025-01-15 06:35:43.077161
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b0990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b0990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b0990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:35:53.012401
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755742b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7859246730804443 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
2025-01-15 06:36:02.966899
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556a830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556a830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556a830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:36:32.223203
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75534130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7853574752807617 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
2025-01-15 06:36:42.229843
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:36:52.218331
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755392d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.788395881652832 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
2025-01-15 06:37:03.655022
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:37:32.429973
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x764f0f10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7753667831420898 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
2025-01-15 06:37:42.388843
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552a910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:37:52.366504
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f32f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7843735218048096 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
2025-01-15 06:38:03.316558
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754be930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754be930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754be930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:38:32.585530
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d12d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7885265350341797 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
2025-01-15 06:38:42.531673
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:38:52.550264
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558a230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.773850679397583 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
2025-01-15 06:39:03.870160
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:39:32.884531
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755342d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7845547199249268 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
2025-01-15 06:39:42.706187
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:39:52.666676
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755822f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7700984477996826 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
2025-01-15 06:40:03.644894
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554b150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:40:32.840976
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755692b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7779569625854492 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
2025-01-15 06:40:42.858427
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:40:52.967986
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755382f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7747907638549805 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
2025-01-15 06:41:03.574672
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:41:32.266373
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75515230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7869198322296143 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
2025-01-15 06:41:42.244983
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b59b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b59b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b59b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:41:52.150415
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fd290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7782278060913086 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
2025-01-15 06:42:03.020650
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:42:32.330318
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755842b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7854974269866943 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
2025-01-15 06:42:42.272967
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:42:52.303680
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755852d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7772150039672852 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
2025-01-15 06:43:03.552732
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755779f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755779f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755779f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:43:32.482380
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755702f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7852036952972412 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
2025-01-15 06:43:42.607022
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75531a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75531a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75531a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:43:52.473587
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.788574457168579 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
2025-01-15 06:44:03.352265
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c78d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c78d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c78d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:44:32.752919
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75495310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7886216640472412 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
2025-01-15 06:44:42.670341
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a7a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:44:52.682486
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e32b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7895596027374268 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
2025-01-15 06:45:04.279535
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75568a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75568a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75568a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:45:32.911531
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f7350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7917652130126953 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
2025-01-15 06:45:42.875623
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:45:52.819828
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755642b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7863962650299072 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
2025-01-15 06:46:04.337712
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:46:33.592805
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7772347927093506 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
2025-01-15 06:46:43.813554
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:46:53.565945
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755912d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7776775360107422 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
2025-01-15 06:47:04.169918
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:47:32.849401
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fd2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7782366275787354 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
2025-01-15 06:47:42.795739
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:47:52.758895
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75515130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.789271354675293 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
2025-01-15 06:48:03.624947
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:48:32.934844
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7691786289215088 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
2025-01-15 06:48:42.960366
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:48:52.894776
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553d2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7819840908050537 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
2025-01-15 06:49:04.600914
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755729b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755729b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755729b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:49:33.114585
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755322f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7693390846252441 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
2025-01-15 06:49:43.114733
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ad9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ad9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ad9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:49:53.064219
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75569250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7777175903320312 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
2025-01-15 06:50:02.958854
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75549950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:50:32.306493
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556b0f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7962665557861328 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
2025-01-15 06:50:42.349827
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75486a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75486a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75486a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:50:52.278013
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549a330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7782914638519287 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
2025-01-15 06:51:03.478086
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75525910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:51:32.420391
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755822d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7714908123016357 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
2025-01-15 06:51:42.442735
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755218d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755218d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755218d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:51:52.460485
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7761337757110596 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
2025-01-15 06:52:03.405860
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:52:32.661101
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75542190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.788780927658081 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
2025-01-15 06:52:42.643768
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a69b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a69b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a69b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:52:52.622884
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7980034351348877 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
2025-01-15 06:53:04.187488
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755768b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755768b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755768b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:53:32.861325
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554d0d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7772886753082275 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
2025-01-15 06:53:42.870265
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75564970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:53:52.738585
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755932b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.783414363861084 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
2025-01-15 06:54:03.603867
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755799f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755799f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755799f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:54:33.078863
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cd290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7787303924560547 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
2025-01-15 06:54:43.063331
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:54:52.889324
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550d230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7904517650604248 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
2025-01-15 06:55:04.614678
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:55:33.163218
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ec270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7864370346069336 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
2025-01-15 06:55:43.161214
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d0a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d0a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d0a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:55:53.100971
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b7130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.785717248916626 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
2025-01-15 06:56:03.063869
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75553a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:56:32.310659
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7726631164550781 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
2025-01-15 06:56:42.261736
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:56:52.272644
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a92d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7897684574127197 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
2025-01-15 06:57:03.677395
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 06:57:32.457689
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754be2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7813513278961182 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
2025-01-15 06:57:42.406116
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75508910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:57:52.450787
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ee2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7708983421325684 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
2025-01-15 06:59:03.865560
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:59:32.787253
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75527270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7880849838256836 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
2025-01-15 06:59:42.782376
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754948d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754948d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754948d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 06:59:52.783686
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75522290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.771815538406372 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
2025-01-15 07:00:03.713659
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:00:32.999050
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.791443109512329 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
2025-01-15 07:00:43.077084
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75560490>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75560490>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75560490>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:00:52.960305
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7827425003051758 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
2025-01-15 07:01:03.419646
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:01:32.147251
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ce130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.773498773574829 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
2025-01-15 07:01:42.237095
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549b9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:01:52.199817
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b12f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7781689167022705 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
2025-01-15 07:02:03.062622
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:02:32.402608
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a43b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7770042419433594 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
2025-01-15 07:02:42.386645
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75504990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75504990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75504990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:02:52.352046
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755562b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7821485996246338 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
2025-01-15 07:03:03.881225
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:03:32.538721
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75569290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7902789115905762 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
2025-01-15 07:03:42.578095
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:03:52.488517
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551c2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7758545875549316 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
2025-01-15 07:04:03.190568
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75511970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:04:32.661957
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550c270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.77956223487854 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
2025-01-15 07:04:42.633296
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:04:52.623964
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755692f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7766246795654297 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
2025-01-15 07:05:04.235675
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550d8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550d8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550d8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:05:32.870861
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75587270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7840282917022705 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
2025-01-15 07:05:42.899423
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754905b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754905b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754905b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:05:52.868949
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754efa90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7865450382232666 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
2025-01-15 07:06:03.665277
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:06:33.134258
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f0250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.786095380783081 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
2025-01-15 07:06:43.212378
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75541a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75541a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75541a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:06:52.989459
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7717018127441406 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
2025-01-15 07:07:03.638866
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:07:32.186865
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550c290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7855281829833984 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
2025-01-15 07:07:42.226095
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:07:52.235152
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558c0f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7855234146118164 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
2025-01-15 07:08:02.948556
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555d850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555d850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555d850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:08:32.372366
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75557330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7838428020477295 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
2025-01-15 07:08:42.409691
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e2910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e2910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e2910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:08:52.322234
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e8190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7760286331176758 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
2025-01-15 07:09:03.850839
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:09:32.535064
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551e2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.772939920425415 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
2025-01-15 07:09:42.533362
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75522a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75522a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75522a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:09:52.519971
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fe2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7800841331481934 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
2025-01-15 07:10:03.389921
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755690f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755690f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755690f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:10:32.780607
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b4290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.786344289779663 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
2025-01-15 07:10:42.805406
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:10:52.698356
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a22b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7690134048461914 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
2025-01-15 07:11:04.437005
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75568930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75568930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75568930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:11:32.890741
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.785085916519165 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
2025-01-15 07:11:42.914371
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:11:53.449578
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e4250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7746641635894775 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
2025-01-15 07:12:03.205327
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fa8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:12:32.764965
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.9145801067352295 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
2025-01-15 07:12:42.738810
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:12:52.766351
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a22f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7806525230407715 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
2025-01-15 07:13:04.275295
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75488970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75488970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75488970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:13:33.108499
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7799549102783203 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
2025-01-15 07:13:42.985532
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550da50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:13:53.003282
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.806081771850586 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
2025-01-15 07:14:02.895313
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75585970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75585970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75585970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:14:32.197197
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558b2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7998738288879395 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
2025-01-15 07:14:42.191158
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:14:52.196055
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755652b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.777991771697998 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
2025-01-15 07:15:03.493657
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:15:32.384093
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.79130220413208 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
2025-01-15 07:15:42.351922
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c4950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:15:52.338269
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a3230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7845242023468018 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
2025-01-15 07:16:03.163690
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e5950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e5950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e5950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:16:32.583369
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7848215103149414 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
2025-01-15 07:16:42.531701
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:16:52.503556
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f80f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7765023708343506 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
2025-01-15 07:17:03.937647
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:17:32.824067
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.776425838470459 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
2025-01-15 07:17:42.779720
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75ad1bf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75ad1bf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75ad1bf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:17:52.729840
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549f2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7845940589904785 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
2025-01-15 07:18:03.693579
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:18:33.022019
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75540150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7763550281524658 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
2025-01-15 07:18:42.925160
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:18:52.876157
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d20d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7720506191253662 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
2025-01-15 07:19:04.443935
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f69f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:19:33.104282
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75584130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7881505489349365 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
2025-01-15 07:19:43.069201
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:19:53.082577
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e8190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7799649238586426 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
2025-01-15 07:20:02.993953
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:20:32.262036
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754df250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7871370315551758 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
2025-01-15 07:20:42.268908
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cb8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:20:52.250325
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a31b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.789022445678711 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
2025-01-15 07:21:03.473425
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75502a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75502a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75502a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:21:32.522866
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c42f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7908117771148682 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
2025-01-15 07:21:42.486427
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c1990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:21:52.412367
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.791360855102539 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
2025-01-15 07:22:03.318094
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:22:32.606427
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7888340950012207 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
2025-01-15 07:22:42.533047
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:22:52.593881
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755622b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.773538589477539 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
2025-01-15 07:23:04.181189
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:23:32.766534
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c02f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7879502773284912 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
2025-01-15 07:23:42.766904
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:23:52.782796
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fc3430>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.8206195831298828 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
2025-01-15 07:24:03.555455
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:24:33.057024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75523290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7992973327636719 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
2025-01-15 07:24:42.996279
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:24:52.990079
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d92d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7794554233551025 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
2025-01-15 07:25:03.610559
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:25:32.248987
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755302f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7889647483825684 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
2025-01-15 07:25:42.265428
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:25:52.349952
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75544330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7777879238128662 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
2025-01-15 07:26:03.183634
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553b950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:26:32.539785
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755652f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.8011000156402588 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
2025-01-15 07:26:42.547648
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:26:52.511091
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75519290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.790893316268921 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
2025-01-15 07:27:04.168980
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755549b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755549b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755549b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:27:32.682134
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755822d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.793900489807129 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
2025-01-15 07:27:42.741493
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754919d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754919d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754919d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:27:52.643370
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7817375659942627 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
2025-01-15 07:28:03.412552
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:28:32.901860
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75daa970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7935879230499268 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
2025-01-15 07:28:42.860032
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:28:52.926261
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ff1f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7999200820922852 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
2025-01-15 07:29:04.458625
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:29:33.132044
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551d2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7903101444244385 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
2025-01-15 07:29:43.219135
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:29:53.052607
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75548310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7792010307312012 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
2025-01-15 07:30:02.860422
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:30:32.326230
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aa130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7834689617156982 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
2025-01-15 07:30:42.295418
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75567970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:30:52.267635
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75500190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7805898189544678 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
2025-01-15 07:31:03.756179
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:31:32.426849
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7895264625549316 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
2025-01-15 07:31:42.413193
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d0950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d0950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d0950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:31:52.402229
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f6130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7744426727294922 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
2025-01-15 07:32:03.141452
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:32:32.549795
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555f1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7892584800720215 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
2025-01-15 07:32:42.597251
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552b8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552b8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552b8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:32:52.681609
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75539290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7823419570922852 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
2025-01-15 07:33:04.369610
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:33:32.848452
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.791083812713623 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
2025-01-15 07:33:42.845148
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551da70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551da70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551da70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:33:52.967374
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75524290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7785460948944092 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
2025-01-15 07:34:02.896040
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553b8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:34:32.174403
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7962512969970703 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
2025-01-15 07:34:42.221363
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:34:52.180781
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555d130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7849740982055664 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
2025-01-15 07:35:03.628722
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d58d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d58d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d58d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:35:32.294503
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754992f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7919068336486816 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
2025-01-15 07:35:42.286196
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75497af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75497af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75497af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:35:52.361128
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a12d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7909395694732666 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
2025-01-15 07:36:03.191781
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a1870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:36:32.532555
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7735843658447266 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
2025-01-15 07:36:42.579104
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755148f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755148f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755148f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:36:52.483096
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755672d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7881543636322021 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
2025-01-15 07:37:03.961059
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f5970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f5970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f5970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:37:32.656312
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755592d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7876760959625244 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
2025-01-15 07:37:42.692172
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75b71a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75b71a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75b71a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:37:52.643866
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551f2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7871363162994385 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
2025-01-15 07:38:03.548898
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:38:32.847214
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75527130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.789586067199707 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
2025-01-15 07:38:42.933136
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75578950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:38:52.810121
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75514270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.777700662612915 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
2025-01-15 07:39:04.569201
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:39:33.201952
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f8330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7793903350830078 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
2025-01-15 07:39:43.343860
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:39:52.956842
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d62b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.775693655014038 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
2025-01-15 07:40:02.673632
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:40:32.261776
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755772f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7971410751342773 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
2025-01-15 07:40:42.319554
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:40:52.147149
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755832f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7902863025665283 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
2025-01-15 07:41:03.423122
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75f292f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f292f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f292f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:41:32.447999
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.783257246017456 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
2025-01-15 07:41:42.441954
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75521a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:41:52.291739
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75593310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7883059978485107 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
2025-01-15 07:42:03.211870
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:42:32.438839
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755842b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7933332920074463 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
2025-01-15 07:42:42.443219
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:42:52.448780
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da0d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7734580039978027 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
2025-01-15 07:43:03.996650
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:43:32.750241
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75586350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7748842239379883 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
2025-01-15 07:43:42.755626
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75572a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75572a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75572a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:43:52.584528
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7864787578582764 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
2025-01-15 07:44:03.429335
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:44:32.853488
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755292d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7924079895019531 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
2025-01-15 07:44:42.809821
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75521970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:44:52.734621
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75529270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7820744514465332 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
2025-01-15 07:45:04.195334
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755178d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755178d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755178d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:45:32.922183
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558c310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7922232151031494 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
2025-01-15 07:45:42.986438
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755438d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755438d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755438d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:45:52.884763
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a32b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7876999378204346 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
2025-01-15 07:46:03.741519
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:46:33.075157
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7900209426879883 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
2025-01-15 07:46:43.152529
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548e9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:46:53.001156
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.795595645904541 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
2025-01-15 07:47:03.453696
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755828f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755828f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755828f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:47:32.179867
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754af290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7894017696380615 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
2025-01-15 07:47:42.316701
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75501850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75501850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75501850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:47:52.223636
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754992d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7908592224121094 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
2025-01-15 07:48:03.018468
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ee9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ee9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ee9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:48:32.514774
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755472f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7890965938568115 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
2025-01-15 07:48:42.505391
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:48:52.314462
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7796711921691895 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
2025-01-15 07:49:03.933624
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cc990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:49:32.489983
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e02b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7953438758850098 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
2025-01-15 07:49:42.486324
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75526970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75526970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75526970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:49:52.469203
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f8250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7897212505340576 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
2025-01-15 07:50:03.288679
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:50:32.635660
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75542290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7748453617095947 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
2025-01-15 07:50:42.608883
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755185d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755185d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755185d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:50:52.594395
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.790149450302124 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
2025-01-15 07:51:03.858251
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b09f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:51:32.769280
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754db350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.8024485111236572 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
2025-01-15 07:51:42.814942
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75532a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:51:52.819519
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7890026569366455 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
2025-01-15 07:52:03.664567
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:52:33.027687
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7779755592346191 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
2025-01-15 07:52:43.015472
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754eb970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:52:53.050637
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c42f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7806439399719238 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
2025-01-15 07:53:03.579973
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754879d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754879d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754879d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:53:32.251549
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e9270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7875592708587646 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
2025-01-15 07:53:42.349919
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75528a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:53:52.302384
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558d2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.789374589920044 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
2025-01-15 07:54:03.190457
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549f890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549f890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549f890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:54:32.520591
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7743816375732422 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
2025-01-15 07:54:42.440407
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755358d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755358d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755358d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:54:52.426296
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755702b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7891955375671387 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
2025-01-15 07:55:03.996806
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:55:32.632849
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511370>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7913141250610352 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
2025-01-15 07:55:42.668911
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a19b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a19b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a19b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:55:52.662224
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552d250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7931840419769287 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
2025-01-15 07:56:03.625138
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cf910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cf910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cf910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:56:32.904221
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755352b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7859880924224854 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
2025-01-15 07:56:42.813630
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:56:52.828114
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556a290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7769877910614014 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
2025-01-15 07:57:04.304791
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75538a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75538a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75538a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:57:33.197747
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553f2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.8024837970733643 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
2025-01-15 07:57:43.163328
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:57:53.084138
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7931339740753174 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
2025-01-15 07:59:03.976767
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 07:59:32.500715
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75524210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.793971061706543 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
2025-01-15 07:59:42.512217
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 07:59:52.604830
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bf2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.803426742553711 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
2025-01-15 08:00:03.374809
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:00:32.786225
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e42b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.793464183807373 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
2025-01-15 08:00:42.863953
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555e8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555e8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555e8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:00:52.780801
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.776606559753418 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
2025-01-15 08:01:04.255870
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553eb30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553eb30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553eb30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:01:33.018769
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550c270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7822434902191162 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
2025-01-15 08:01:43.075510
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ab9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:01:52.955206
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755312d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.782914161682129 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
2025-01-15 08:02:02.871413
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:02:32.175293
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75568150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7900490760803223 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
2025-01-15 08:02:42.175591
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:02:52.151045
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ed290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7808504104614258 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
2025-01-15 08:03:03.849033
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cf890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cf890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cf890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:03:32.305649
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75502290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7753775119781494 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
2025-01-15 08:03:42.296088
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:03:52.382172
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755892d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.793186902999878 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
2025-01-15 08:04:03.207538
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:04:32.582108
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75526330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7851982116699219 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
2025-01-15 08:04:42.526997
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:04:52.500107
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75b2c7d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7854225635528564 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
2025-01-15 08:05:04.114012
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:05:32.650685
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755292b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.783435344696045 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
2025-01-15 08:05:42.693744
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549d910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549d910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549d910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:05:52.751168
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755132b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.8033051490783691 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
2025-01-15 08:06:03.532648
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:06:32.937818
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7782440185546875 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
2025-01-15 08:06:42.946910
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:06:52.853992
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755892f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7820570468902588 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
2025-01-15 08:07:04.212126
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553f8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553f8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553f8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:07:33.160354
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c32b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.8036437034606934 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
2025-01-15 08:07:43.123638
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:07:53.102158
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75509110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7828049659729004 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
2025-01-15 08:08:02.946250
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:08:32.292639
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ed290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7970716953277588 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
2025-01-15 08:08:42.293236
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:08:52.305744
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755882d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7805371284484863 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
2025-01-15 08:09:03.745024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75494910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75494910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75494910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:09:32.481672
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.779801607131958 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
2025-01-15 08:09:42.597611
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755378d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755378d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755378d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:09:52.493183
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.794325590133667 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
2025-01-15 08:10:03.230007
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:10:32.680861
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754982d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7909369468688965 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
2025-01-15 08:10:42.686691
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:10:52.628342
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ad250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7825443744659424 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
2025-01-15 08:11:04.050660
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75583950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75583950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75583950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:11:32.904868
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7973747253417969 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
2025-01-15 08:11:42.914340
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b2950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b2950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b2950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:11:52.894501
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557b230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7902882099151611 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
2025-01-15 08:12:03.842156
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:12:34.859336
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f42f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7893640995025635 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
2025-01-15 08:12:43.189032
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:12:53.092149
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75579250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7945778369903564 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
2025-01-15 08:13:04.024685
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:13:33.048990
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.781867265701294 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
2025-01-15 08:13:43.073047
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:13:52.982679
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75568110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7817268371582031 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
2025-01-15 08:14:02.949463
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549aa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:14:32.182644
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7769296169281006 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
2025-01-15 08:14:42.266045
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:14:52.191857
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755802b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7858538627624512 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
2025-01-15 08:15:03.652893
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754949b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754949b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754949b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:15:32.446501
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.9114007949829102 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
2025-01-15 08:15:42.448914
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755799d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755799d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755799d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:15:52.495570
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755902b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.78419828414917 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
2025-01-15 08:16:03.312676
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549d530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549d530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549d530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:16:32.682522
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x761ac750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7879478931427002 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
2025-01-15 08:16:42.751279
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755098f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755098f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755098f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:16:52.686381
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75586310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7781727313995361 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
2025-01-15 08:17:04.165917
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755139f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755139f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755139f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:17:32.846999
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d72f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7942147254943848 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
2025-01-15 08:17:42.872969
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755609b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755609b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755609b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:17:52.850135
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755002f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7852253913879395 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
2025-01-15 08:18:03.628841
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:18:33.134693
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f32d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7931010723114014 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
2025-01-15 08:18:43.541355
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75553a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:18:52.998364
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ca110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7842071056365967 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
2025-01-15 08:19:03.449480
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:19:32.187610
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c7290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7917022705078125 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
2025-01-15 08:19:42.179171
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755179f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755179f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755179f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:19:52.236818
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.791018009185791 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
2025-01-15 08:20:03.229006
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:20:32.436698
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7809767723083496 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
2025-01-15 08:20:42.413092
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:20:52.379043
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558f2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7911584377288818 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
2025-01-15 08:21:03.928994
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755588f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755588f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755588f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:21:32.537747
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557b2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.804628610610962 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
2025-01-15 08:21:42.541229
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:21:52.580000
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fa8370>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.8005986213684082 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
2025-01-15 08:22:03.495562
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755179d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755179d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755179d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:22:32.906990
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755540b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.8050570487976074 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
2025-01-15 08:22:42.797675
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cda50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cda50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cda50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:22:52.732936
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7923333644866943 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
2025-01-15 08:23:04.222832
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d6990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d6990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d6990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:23:32.929369
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c52b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7977817058563232 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
2025-01-15 08:23:42.969963
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b39d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:23:52.882469
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.784595251083374 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
2025-01-15 08:24:03.740342
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75578a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:24:33.085169
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755232d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7955751419067383 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
2025-01-15 08:24:43.133420
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fa210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:24:53.059046
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f00b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7847492694854736 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
2025-01-15 08:25:03.695674
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551c9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:25:32.272875
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755241f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.789672613143921 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
2025-01-15 08:25:42.310461
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75f03750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f03750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f03750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:25:52.308868
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755072f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7919044494628906 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
2025-01-15 08:26:03.128266
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a7170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:26:32.499998
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fe270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7859299182891846 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
2025-01-15 08:26:42.456102
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:26:52.449836
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7851951122283936 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
2025-01-15 08:27:03.683239
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:27:32.587602
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558b270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7934577465057373 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
2025-01-15 08:27:42.602505
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75520950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75520950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75520950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:27:52.608480
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.8048062324523926 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
2025-01-15 08:28:03.342393
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:28:32.846851
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c42f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7916991710662842 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
2025-01-15 08:28:42.798393
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c4930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:28:52.736542
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755262f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7899816036224365 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
2025-01-15 08:29:04.274258
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75571930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75571930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75571930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:29:33.000794
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75507150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7995295524597168 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
2025-01-15 08:29:42.956309
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:29:52.878165
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755112b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7854938507080078 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
2025-01-15 08:30:03.769244
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:30:33.088176
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bb290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.8011834621429443 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
2025-01-15 08:30:43.162120
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:30:53.113623
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755161b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7869489192962646 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
2025-01-15 08:31:03.759645
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:31:32.469566
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7845122814178467 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
2025-01-15 08:31:42.448023
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75531950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75531950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75531950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:31:52.334468
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d12d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.783020257949829 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
2025-01-15 08:32:03.211590
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f7990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f7990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f7990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:32:32.555274
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b02d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7814528942108154 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
2025-01-15 08:32:42.553248
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:32:52.605407
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75541290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7839751243591309 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
2025-01-15 08:33:04.068692
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75545210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:33:32.849750
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ad210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7875158786773682 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
2025-01-15 08:33:42.746661
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554f8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:33:52.795981
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cd370>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7957701683044434 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
2025-01-15 08:34:03.716997
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:34:33.023203
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x761d2750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.777270793914795 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
2025-01-15 08:34:43.083243
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755429b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755429b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755429b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:34:53.007697
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7828927040100098 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
2025-01-15 08:35:03.756882
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:35:32.226254
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75546270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7796056270599365 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
2025-01-15 08:35:42.375243
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:35:52.244851
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75580330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.784186601638794 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
2025-01-15 08:36:03.172962
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75492990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75492990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75492990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:36:32.401778
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7838585376739502 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
2025-01-15 08:36:42.405411
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754df9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754df9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754df9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:36:52.382073
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551d290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7836215496063232 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
2025-01-15 08:37:04.013707
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551e970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551e970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551e970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:37:32.556025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7909479141235352 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
2025-01-15 08:37:42.727694
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:37:52.486050
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75544270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7923941612243652 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
2025-01-15 08:38:03.407874
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75540590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75540590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75540590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:38:32.692946
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7961790561676025 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
2025-01-15 08:38:42.710712
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:38:52.648702
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b0b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7919058799743652 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
2025-01-15 08:39:03.942911
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:39:32.881851
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cd250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7970662117004395 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
2025-01-15 08:39:42.828770
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:39:52.786308
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556e2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7790207862854004 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
2025-01-15 08:40:03.674837
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:40:32.998638
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558e2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7778503894805908 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
2025-01-15 08:40:42.974533
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x759ddc10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x759ddc10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x759ddc10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:40:52.949832
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7792067527770996 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
2025-01-15 08:41:03.761286
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755068b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755068b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755068b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:41:32.286230
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552f170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.794377326965332 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
2025-01-15 08:41:42.181425
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f9910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f9910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f9910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:41:52.189146
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fb210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7933640480041504 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
2025-01-15 08:42:03.139287
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a5990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a5990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a5990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:42:32.310130
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7789063453674316 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
2025-01-15 08:42:42.354133
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75565a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75565a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75565a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:42:52.371835
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.8045344352722168 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
2025-01-15 08:43:03.642363
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:43:32.662592
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7841997146606445 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
2025-01-15 08:43:42.609996
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ab9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:43:52.512739
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b1310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7968623638153076 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
2025-01-15 08:44:03.296175
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fc910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:44:32.648049
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754962f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7795913219451904 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
2025-01-15 08:44:42.677066
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bd8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bd8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bd8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:44:52.642214
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550a1f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7890045642852783 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
2025-01-15 08:45:04.407322
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755288d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755288d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755288d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:45:32.870985
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e5350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.787071943283081 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
2025-01-15 08:45:43.024972
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755019b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755019b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755019b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:45:52.772035
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7798256874084473 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
2025-01-15 08:46:03.684402
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548f950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548f950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548f950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
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
 val : 2 : upload photos already in processing! 
 val : 2 : upload photos already in processing! 
2025-01-15 08:47:00.696124
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 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
2025-01-15 08:47:00.696124
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:47:35.732054
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549a2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6904237270355225 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
2025-01-15 08:47:45.815966
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:47:55.715129
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755332d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6952788829803467 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
2025-01-15 08:48:03.625378
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:48:32.877662
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fbd6b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6949610710144043 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
2025-01-15 08:48:42.941139
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552a8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:48:52.929310
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.690490961074829 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
2025-01-15 08:49:04.458855
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:49:33.048135
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755571b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6861755847930908 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
2025-01-15 08:49:43.089007
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cd9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cd9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cd9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:49:53.109329
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75591150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.741886854171753 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
2025-01-15 08:50:03.292007
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:50:32.345413
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6764037609100342 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
2025-01-15 08:50:42.417480
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:50:52.281065
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6985127925872803 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
2025-01-15 08:51:04.029561
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755019d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755019d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755019d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:51:32.546084
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75590250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6841213703155518 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
2025-01-15 08:51:42.539195
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b79b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b79b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b79b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:51:52.478809
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755212d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6996698379516602 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
2025-01-15 08:52:03.543224
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75508910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:52:32.674805
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6921608448028564 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
2025-01-15 08:52:42.675437
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754998b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754998b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754998b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:52:52.778274
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75527230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7105934619903564 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
2025-01-15 08:53:04.320298
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555e990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:53:32.956338
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75496230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6816866397857666 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
2025-01-15 08:53:43.004048
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755829b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755829b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755829b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:53:52.977695
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d1110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.70255446434021 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
2025-01-15 08:54:03.112006
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ad9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ad9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ad9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:54:32.215497
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b5270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6798632144927979 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
2025-01-15 08:54:42.259473
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754929f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754929f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754929f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:54:52.177927
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75538150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.683091402053833 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
2025-01-15 08:55:03.953239
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75fe0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fe0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fe0970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:55:32.518091
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc1f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6752488613128662 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
2025-01-15 08:55:42.365376
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75584970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75584970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75584970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:55:52.392147
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f12d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6945414543151855 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
2025-01-15 08:56:03.530111
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 08:56:32.671022
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755759f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6777477264404297 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
2025-01-15 08:56:42.635514
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75ee0e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75ee0e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75ee0e30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:56:52.652622
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fcf230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7032687664031982 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
2025-01-15 08:57:04.083712
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75510990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:57:32.956700
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6809191703796387 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
2025-01-15 08:57:42.930210
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e9a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:57:52.958738
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a0270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6977028846740723 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
2025-01-15 08:59:03.909529
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:59:32.839559
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755082b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6862282752990723 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
2025-01-15 08:59:42.821881
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 08:59:52.831132
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.700911045074463 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
2025-01-15 09:00:03.717860
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:00:33.049183
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.670943260192871 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
2025-01-15 09:00:43.025586
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755199b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755199b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755199b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:00:53.005675
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754849f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7145559787750244 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
2025-01-15 09:01:03.969874
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:01:32.372280
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755452d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6803703308105469 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
2025-01-15 09:01:42.263020
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75514950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75514950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75514950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:01:52.271804
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6809742450714111 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
2025-01-15 09:02:03.371469
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548c890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548c890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548c890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:02:32.649729
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6729412078857422 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
2025-01-15 09:02:42.470502
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755329f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755329f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755329f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:02:52.537795
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75555270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7035608291625977 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
2025-01-15 09:03:04.136492
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:03:32.896129
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556e270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6749579906463623 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
2025-01-15 09:03:42.737388
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:03:52.751340
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6978740692138672 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
2025-01-15 09:04:03.561936
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:04:32.934621
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6815412044525146 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
2025-01-15 09:04:42.988298
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:04:52.998212
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75516290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6872820854187012 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
2025-01-15 09:05:03.801456
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:05:32.459807
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6903703212738037 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
2025-01-15 09:05:42.213464
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d98b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d98b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d98b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:05:52.297720
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755722b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6928832530975342 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
2025-01-15 09:06:03.422922
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549cad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549cad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549cad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:06:32.524412
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75495250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6807875633239746 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
2025-01-15 09:06:42.620350
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:06:52.584355
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551f1b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7098147869110107 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
2025-01-15 09:07:04.158649
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75509490>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75509490>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75509490>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:07:32.756281
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.689866065979004 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
2025-01-15 09:07:42.789189
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:07:52.755302
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7116789817810059 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
2025-01-15 09:08:03.623971
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75551a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75551a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75551a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:08:32.996193
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x76194730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6823406219482422 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
2025-01-15 09:08:42.947897
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:08:52.926572
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755392b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6949949264526367 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
2025-01-15 09:09:04.700650
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:09:33.101260
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755622d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6849148273468018 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
2025-01-15 09:09:43.161646
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:09:53.139581
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6837811470031738 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
2025-01-15 09:10:03.363800
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755197f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755197f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755197f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:10:32.459543
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6878771781921387 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
2025-01-15 09:10:42.430568
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75f40930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f40930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f40930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:10:52.409058
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e8130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6889946460723877 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
2025-01-15 09:11:04.201982
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ab9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:11:32.607275
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6793546676635742 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
2025-01-15 09:11:42.608232
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b2a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:11:52.605255
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc1f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7050914764404297 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
2025-01-15 09:12:03.612348
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75581910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75581910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75581910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:12:32.813032
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6973803043365479 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
2025-01-15 09:12:42.838719
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75559130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75559130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:12:52.797595
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755932d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7006518840789795 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
2025-01-15 09:13:04.582415
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551da30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:13:33.023448
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a22d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6733777523040771 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
2025-01-15 09:13:43.128899
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552ea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552ea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552ea10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:13:52.987784
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b72f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7146446704864502 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
2025-01-15 09:14:02.938365
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:14:32.237355
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755542f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6919515132904053 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
2025-01-15 09:14:42.139011
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a8970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a8970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a8970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:14:52.331276
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755732b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.70597243309021 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
2025-01-15 09:15:04.105442
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ac970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ac970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ac970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:15:32.537202
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558e290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6744158267974854 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
2025-01-15 09:15:42.595257
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:15:52.574341
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558f2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7001993656158447 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
2025-01-15 09:16:03.466528
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549f910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549f910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549f910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:16:32.866665
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754db250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.8303399085998535 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
2025-01-15 09:16:42.795554
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75536a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:16:52.748152
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fb2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7012298107147217 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
2025-01-15 09:17:04.340817
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:17:33.010260
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75526170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6746783256530762 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
2025-01-15 09:17:43.019087
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75575930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:17:53.035838
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dd330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7109289169311523 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
2025-01-15 09:18:03.144460
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:18:32.265011
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550d2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6849119663238525 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
2025-01-15 09:18:42.201653
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f2970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:18:52.262205
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c0290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.694570541381836 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
2025-01-15 09:19:03.963909
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:19:32.612463
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555f290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.699599266052246 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
2025-01-15 09:19:42.477975
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:19:52.520766
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cf2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7109358310699463 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
2025-01-15 09:20:03.667946
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:20:32.721009
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551e2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6831731796264648 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
2025-01-15 09:20:42.690271
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75546970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75546970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75546970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:20:52.758155
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550c230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.693892478942871 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
2025-01-15 09:21:04.391222
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75526a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75526a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75526a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:21:33.101414
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f32f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.687990427017212 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
2025-01-15 09:21:43.134322
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75fc5670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fc5670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fc5670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:21:53.058978
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b7250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7000973224639893 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
2025-01-15 09:22:03.235821
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:22:32.405872
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75586290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6860637664794922 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
2025-01-15 09:22:42.312491
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755861b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755861b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755861b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:22:52.256439
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551d270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7011966705322266 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
2025-01-15 09:23:03.838250
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f4870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f4870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f4870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:23:32.561586
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6776926517486572 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
2025-01-15 09:23:42.423679
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551d9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:23:52.514485
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75583230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6999328136444092 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
2025-01-15 09:24:03.544606
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:24:32.807822
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755162f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6753182411193848 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
2025-01-15 09:24:42.751966
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755618f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755618f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755618f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:24:52.681192
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75509270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.693960189819336 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
2025-01-15 09:25:04.438504
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d5ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:25:32.846202
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755222b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.676379680633545 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
2025-01-15 09:25:42.879661
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:25:52.987416
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552d0f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6922903060913086 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
2025-01-15 09:26:03.196985
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:26:32.309234
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75513270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6913180351257324 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
2025-01-15 09:26:42.237691
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75553950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:26:52.236590
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bb2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7090773582458496 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
2025-01-15 09:27:03.980706
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ff8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ff8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ff8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:27:32.502990
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75541350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.681838035583496 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
2025-01-15 09:27:42.403192
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:27:52.493904
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7007184028625488 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
2025-01-15 09:28:03.635893
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:28:32.699431
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6772968769073486 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
2025-01-15 09:28:42.739855
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:28:52.761135
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551f330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.708467960357666 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
2025-01-15 09:29:04.461680
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:29:32.990089
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549b290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6881344318389893 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
2025-01-15 09:29:42.951283
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:29:53.016696
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a0190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7020676136016846 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
2025-01-15 09:30:03.124295
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555f9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:30:32.268627
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75509270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6895692348480225 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
2025-01-15 09:30:42.185754
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754eb950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:30:52.281041
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.684758186340332 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
2025-01-15 09:31:03.798689
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75526970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75526970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75526970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:31:32.585064
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755912f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6806190013885498 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
2025-01-15 09:31:42.588541
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75575950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:31:52.470455
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6947574615478516 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
2025-01-15 09:32:03.488262
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:32:32.661123
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754af2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7007317543029785 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
2025-01-15 09:32:42.779871
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75534970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75534970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75534970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:32:52.658467
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75541290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6925840377807617 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
2025-01-15 09:33:04.307316
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d38b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d38b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d38b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:33:32.973795
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6865639686584473 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
2025-01-15 09:33:42.849314
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556b950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556b950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556b950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:33:52.899056
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75556210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7069518566131592 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
2025-01-15 09:34:03.782090
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ad8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ad8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ad8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:34:33.075187
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755782d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6877968311309814 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
2025-01-15 09:34:43.136871
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75567990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:34:53.146615
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754db2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7155704498291016 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
2025-01-15 09:35:03.894600
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548c8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548c8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548c8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:35:32.532041
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x764c9f10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6808059215545654 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
2025-01-15 09:35:42.334738
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:35:52.337021
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558a1f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6886723041534424 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
2025-01-15 09:36:03.182838
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d7a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d7a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d7a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:36:32.552715
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6800522804260254 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
2025-01-15 09:36:42.553689
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f6930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f6930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f6930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:36:52.539678
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558a2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6858739852905273 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
2025-01-15 09:37:04.357470
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:37:32.758554
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556b250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.8414099216461182 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
2025-01-15 09:37:42.853727
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e58f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e58f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e58f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:37:53.298199
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558a2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7067644596099854 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
2025-01-15 09:38:03.366760
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:38:32.533447
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x76499f30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.692728042602539 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
2025-01-15 09:38:42.478700
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:38:52.437654
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75520250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.701620101928711 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
2025-01-15 09:39:04.292273
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:39:32.710402
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552b270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6945281028747559 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
2025-01-15 09:39:42.686421
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:39:52.751964
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75529310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7013826370239258 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
2025-01-15 09:40:03.610316
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:40:33.067221
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755092f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6918869018554688 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
2025-01-15 09:40:42.916551
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ff950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ff950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ff950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:40:52.998222
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7130281925201416 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
2025-01-15 09:41:03.931161
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549d8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549d8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549d8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:41:32.462699
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75587290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.69057035446167 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
2025-01-15 09:41:42.425299
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:41:52.351724
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6996426582336426 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
2025-01-15 09:42:03.271485
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548f8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548f8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548f8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:42:32.549338
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6810801029205322 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
2025-01-15 09:42:42.691217
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:42:52.711181
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75586330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6888556480407715 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
2025-01-15 09:43:04.072545
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755369f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755369f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755369f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:43:32.985714
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755471b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6880512237548828 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
2025-01-15 09:43:42.990211
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:43:52.894279
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6803841590881348 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
2025-01-15 09:44:03.697186
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:44:33.136595
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f5e5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6792986392974854 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
2025-01-15 09:44:43.140551
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:44:53.126220
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75557270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6868577003479004 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
2025-01-15 09:45:03.594093
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:45:32.457326
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558a2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.683675765991211 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
2025-01-15 09:45:42.347160
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:45:52.388224
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553d2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7041196823120117 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
2025-01-15 09:46:03.505601
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:46:32.607338
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755512d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.686922550201416 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
2025-01-15 09:46:42.607556
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:46:52.543468
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.686807632446289 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
2025-01-15 09:47:04.253954
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:47:32.778299
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755912d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.680793285369873 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
2025-01-15 09:47:42.847976
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754be9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754be9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754be9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:47:52.793999
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a9290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.697709321975708 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
2025-01-15 09:48:03.696578
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75577990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75577990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75577990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:48:33.031279
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75529230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.690239429473877 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
2025-01-15 09:48:42.989487
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754878f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754878f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754878f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:48:52.990092
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755760d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.694575309753418 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
2025-01-15 09:49:03.343793
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75500a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75500a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75500a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:49:32.319493
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75569230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6964917182922363 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
2025-01-15 09:49:42.216281
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548fa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:49:52.253043
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551d270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6901171207427979 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
2025-01-15 09:50:03.299358
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548f910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548f910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548f910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:50:32.486654
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c62f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6749629974365234 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
2025-01-15 09:50:42.394670
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75557890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75557890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75557890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:50:52.412310
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b52b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7035632133483887 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
2025-01-15 09:51:04.063242
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552aa70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:51:32.722274
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755132d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6894221305847168 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
2025-01-15 09:51:42.558756
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:51:52.609941
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755252b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.709817886352539 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
2025-01-15 09:52:03.430989
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:52:32.807669
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755012f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6801276206970215 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
2025-01-15 09:52:42.856283
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a49f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a49f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a49f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:52:52.835822
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a12d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6982707977294922 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
2025-01-15 09:53:04.220597
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:53:33.133626
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75568290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6882421970367432 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
2025-01-15 09:53:43.059690
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755439b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755439b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755439b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:53:53.145929
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cd1b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.217625141143799 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
2025-01-15 09:54:03.218000
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c6ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c6ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c6ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:54:32.408077
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755092b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6967394351959229 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
2025-01-15 09:54:42.358404
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75f1b310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f1b310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f1b310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:54:52.419820
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6893055438995361 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
2025-01-15 09:55:04.214162
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755429f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755429f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755429f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:55:32.617093
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75b02830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6850776672363281 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
2025-01-15 09:55:42.691321
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 09:55:52.729051
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ca2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6886913776397705 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
2025-01-15 09:56:03.686018
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d0990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d0990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d0990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:56:32.985278
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553d2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6931533813476562 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
2025-01-15 09:56:42.939015
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75526a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75526a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75526a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:56:52.990930
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6977498531341553 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
2025-01-15 09:57:03.943675
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75505850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75505850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75505850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:57:32.282132
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558b310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.693876028060913 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
2025-01-15 09:57:42.176983
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:57:52.198990
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75506250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.692622423171997 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
2025-01-15 09:59:03.634430
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:59:32.768870
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f72d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.701979398727417 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
2025-01-15 09:59:42.659520
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75493870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75493870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75493870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 09:59:52.753526
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550d2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6959800720214844 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
2025-01-15 10:00:03.751818
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:00:32.927735
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755462f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6852552890777588 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
2025-01-15 10:00:43.083948
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75491950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75491950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75491950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:00:52.969350
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.685924768447876 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
2025-01-15 10:01:03.874544
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d89f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d89f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d89f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:01:32.439608
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556a0f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6849024295806885 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
2025-01-15 10:01:42.227066
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:01:52.228263
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75577230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6970515251159668 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
2025-01-15 10:02:03.167684
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75515970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75515970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75515970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:02:32.508555
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fd230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6820039749145508 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
2025-01-15 10:02:42.388118
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554a8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:02:52.493339
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6935029029846191 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
2025-01-15 10:03:04.211252
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:03:32.840545
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549e170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6861560344696045 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
2025-01-15 10:03:42.662760
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c69b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c69b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c69b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:03:52.674886
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755482d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.693286657333374 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
2025-01-15 10:04:03.698249
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:04:32.847601
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75572230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6754918098449707 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
2025-01-15 10:04:42.927303
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75487970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75487970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75487970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:04:52.932538
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75529370>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7060520648956299 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
2025-01-15 10:05:04.577022
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a1990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:05:33.073121
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551f250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6898283958435059 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
2025-01-15 10:05:43.110590
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755299b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755299b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755299b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:05:53.103905
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754df2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7034273147583008 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
2025-01-15 10:06:03.210337
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a4990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:06:32.358098
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f8350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6824405193328857 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
2025-01-15 10:06:42.429628
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:06:52.310391
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6918623447418213 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
2025-01-15 10:07:04.022661
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:07:32.715710
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c42f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.680406093597412 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
2025-01-15 10:07:42.644316
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:07:52.586461
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557c2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.696190595626831 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
2025-01-15 10:08:03.524795
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:08:32.811772
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75560290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.682485818862915 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
2025-01-15 10:08:42.804383
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d4990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:08:52.765318
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549b170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7066457271575928 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
2025-01-15 10:09:04.130180
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d6910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d6910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d6910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:09:32.911717
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c6290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6767387390136719 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
2025-01-15 10:09:42.970448
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557e850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:09:52.898383
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.692676305770874 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
2025-01-15 10:10:03.811927
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:10:33.076694
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a3290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.69343900680542 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
2025-01-15 10:10:43.080846
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:10:53.106502
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551e350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7039988040924072 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
2025-01-15 10:11:03.898958
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b38f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b38f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b38f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:11:32.427584
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6872074604034424 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
2025-01-15 10:11:42.472544
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a6950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a6950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:11:52.405004
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6991219520568848 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
2025-01-15 10:12:03.541828
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75525950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:12:32.651018
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6872591972351074 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
2025-01-15 10:12:42.648805
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:12:52.553447
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549e150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6895885467529297 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
2025-01-15 10:13:04.322279
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:13:32.874023
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f4150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6836216449737549 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
2025-01-15 10:13:42.836000
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:13:52.739555
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755662b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.690556526184082 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
2025-01-15 10:14:03.621824
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:14:32.959813
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.691850185394287 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
2025-01-15 10:14:42.952914
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549a1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549a1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549a1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:14:52.983088
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755592f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6989390850067139 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
2025-01-15 10:15:03.856270
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:15:32.436468
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755081f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6826491355895996 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
2025-01-15 10:15:42.167849
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b39b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b39b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b39b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:15:52.307280
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6968388557434082 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
2025-01-15 10:16:03.414522
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755449d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755449d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755449d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:16:32.566921
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754df370>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7004632949829102 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
2025-01-15 10:16:42.553269
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e7910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:16:52.558433
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a01b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7042746543884277 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
2025-01-15 10:17:04.193851
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:17:32.911282
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a72d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6911420822143555 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
2025-01-15 10:17:42.951971
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fe910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fe910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fe910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:17:52.727191
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75519310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6971464157104492 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
2025-01-15 10:18:03.581698
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554d950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554d950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554d950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:18:32.944161
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75546350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6870653629302979 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
2025-01-15 10:18:42.906569
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c4970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:18:52.877988
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a91f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.70607328414917 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
2025-01-15 10:19:04.561915
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:19:33.205168
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551e230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6781113147735596 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
2025-01-15 10:19:43.109165
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d9a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d9a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d9a90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:19:53.088256
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755852d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6987531185150146 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
2025-01-15 10:20:03.166874
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75544150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75544150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75544150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:20:32.336678
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d9270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6867570877075195 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
2025-01-15 10:20:42.244666
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:20:52.305280
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.683976173400879 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
2025-01-15 10:21:03.862199
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b29b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:21:32.566538
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75502190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.687042474746704 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
2025-01-15 10:21:42.646000
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:21:52.609647
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6942176818847656 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
2025-01-15 10:22:03.708304
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:22:32.800168
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f0d410>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6806902885437012 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
2025-01-15 10:22:42.765589
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ca9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ca9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ca9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:22:52.814113
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557c110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6971299648284912 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
2025-01-15 10:23:04.492322
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:23:33.070776
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75565230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.684025526046753 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
2025-01-15 10:23:43.177167
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75567a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75567a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:23:53.019853
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d5130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7001261711120605 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
2025-01-15 10:24:03.079859
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75547a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:24:32.321112
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6882271766662598 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
2025-01-15 10:24:42.200006
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:24:52.220370
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7004520893096924 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
2025-01-15 10:25:04.113555
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75513190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75513190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75513190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:25:32.501224
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75522170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6813240051269531 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
2025-01-15 10:25:42.387074
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:25:52.423573
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755582d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.701608419418335 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
2025-01-15 10:26:03.350172
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f8a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f8a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f8a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:26:32.605717
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6879796981811523 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
2025-01-15 10:26:42.722576
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75548a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75548a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75548a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:26:52.594218
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b22b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6912367343902588 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
2025-01-15 10:27:04.541889
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:27:32.877085
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c9330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6850481033325195 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
2025-01-15 10:27:42.802580
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75519a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75519a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75519a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:27:52.836384
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75565210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.699998140335083 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
2025-01-15 10:28:03.929018
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:28:33.051796
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75576310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.679711103439331 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
2025-01-15 10:28:43.118479
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:28:53.170848
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75558310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6996030807495117 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
2025-01-15 10:29:04.053195
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:29:32.587115
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c6130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6813364028930664 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
2025-01-15 10:29:42.427597
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556d0d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d0d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d0d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:29:52.501648
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755250f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7034697532653809 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
2025-01-15 10:30:03.558056
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75501990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75501990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75501990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:30:32.738766
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553d330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6874148845672607 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
2025-01-15 10:30:42.733945
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75552190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:30:52.688222
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7056288719177246 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
2025-01-15 10:31:04.416146
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555d970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:31:32.910011
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755712b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6939656734466553 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
2025-01-15 10:31:42.912038
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:31:52.869656
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755492d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.700591802597046 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
2025-01-15 10:32:03.870557
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e99b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:32:33.048489
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555a2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.678778886795044 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
2025-01-15 10:32:43.104485
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:32:53.096320
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75574330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7000713348388672 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
2025-01-15 10:33:03.907972
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555ba50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:33:32.453242
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6953439712524414 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
2025-01-15 10:33:42.370222
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:33:52.455792
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b42f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7020323276519775 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
2025-01-15 10:34:03.515247
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:34:32.747319
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ed2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6866028308868408 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
2025-01-15 10:34:42.628953
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f58b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f58b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f58b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:34:52.768323
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.703460693359375 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
2025-01-15 10:35:04.460410
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b98d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b98d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b98d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:35:33.061586
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551b250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6920623779296875 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
2025-01-15 10:35:42.986982
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755288d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755288d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755288d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:35:53.040491
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.711266040802002 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
2025-01-15 10:36:03.269141
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d6990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d6990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d6990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:36:32.309979
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6816737651824951 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
2025-01-15 10:36:42.247612
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754eda70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eda70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eda70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:36:52.446484
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.707383632659912 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
2025-01-15 10:37:04.312056
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b18b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b18b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b18b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:37:32.768506
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d7290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6929311752319336 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
2025-01-15 10:37:42.794044
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75489990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75489990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75489990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:37:52.662709
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75576110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6957218647003174 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
2025-01-15 10:38:03.611690
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:38:32.968568
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fa6730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.684009075164795 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
2025-01-15 10:38:42.876984
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755049d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755049d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755049d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:38:52.856544
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75534230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7096164226531982 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
2025-01-15 10:39:04.510097
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a1910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:39:33.155933
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755812d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6865100860595703 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
2025-01-15 10:39:43.160871
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75560990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75560990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75560990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:39:52.994652
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7057592868804932 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
2025-01-15 10:40:03.241681
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:40:32.268208
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554c290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.687408685684204 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
2025-01-15 10:40:42.184839
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75526970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75526970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75526970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:40:52.175649
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6970741748809814 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
2025-01-15 10:41:03.897263
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fc8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:41:32.524832
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6977338790893555 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
2025-01-15 10:41:42.481452
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:41:52.418748
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551f230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7015228271484375 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
2025-01-15 10:42:03.494195
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550e8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:42:32.722642
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ec270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6827433109283447 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
2025-01-15 10:42:42.634930
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:42:52.597069
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556c230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6953256130218506 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
2025-01-15 10:43:04.400377
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:43:33.003596
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549e2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6822445392608643 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
2025-01-15 10:43:42.927465
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75528a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75528a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:43:52.764145
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7141315937042236 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
2025-01-15 10:44:03.691570
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:44:32.953381
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b62f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6878185272216797 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
2025-01-15 10:44:43.041303
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:44:52.982953
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75569270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7151591777801514 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
2025-01-15 10:45:03.970276
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:45:32.354184
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555a2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6907999515533447 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
2025-01-15 10:45:42.194751
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e2950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e2950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e2950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:45:52.364430
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75592270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7014257907867432 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
2025-01-15 10:46:03.394206
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b2990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b2990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b2990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:46:32.617709
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551c2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6953222751617432 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
2025-01-15 10:46:42.519810
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:46:52.643915
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551f190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.702338457107544 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
2025-01-15 10:47:04.497118
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:47:32.872056
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f70b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6929268836975098 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
2025-01-15 10:47:42.832103
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ab9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:47:52.896057
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c1330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6990983486175537 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
2025-01-15 10:48:03.865062
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754eaad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eaad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eaad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:48:33.061927
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75e3c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6863210201263428 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
2025-01-15 10:48:43.197731
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548e930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548e930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548e930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:48:53.083665
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dd2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7012927532196045 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
2025-01-15 10:49:03.712981
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:49:32.480117
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e62f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6858665943145752 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
2025-01-15 10:49:42.431326
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:49:52.386304
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea370>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7048022747039795 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
2025-01-15 10:50:03.576556
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:50:32.614763
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75548170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6834464073181152 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
2025-01-15 10:50:42.556473
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dca70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:50:52.548977
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75497270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7143757343292236 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
2025-01-15 10:51:04.124455
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:51:32.877601
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c5230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6870315074920654 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
2025-01-15 10:51:42.894194
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b2970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b2970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b2970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:51:52.727526
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ef290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.704101800918579 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
2025-01-15 10:52:03.577617
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:52:32.915269
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6798131465911865 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
2025-01-15 10:52:43.032048
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755119b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755119b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755119b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:52:52.935799
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ae2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6946361064910889 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
2025-01-15 10:53:03.941284
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:53:32.213256
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555a1b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6900067329406738 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
2025-01-15 10:53:42.223994
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:53:52.174849
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551e250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.698547124862671 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
2025-01-15 10:54:03.158258
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755239d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755239d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755239d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:54:32.423376
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b0d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7021446228027344 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
2025-01-15 10:54:42.345924
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754eb890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:54:52.372589
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75505310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6956770420074463 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
2025-01-15 10:55:04.211461
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755109f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755109f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755109f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:55:32.627979
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755932d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6949212551116943 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
2025-01-15 10:55:42.622925
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75517970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:55:52.615244
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f6290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7025370597839355 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
2025-01-15 10:56:03.538143
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553a910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553a910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553a910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:56:32.788302
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fb190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6933953762054443 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
2025-01-15 10:56:42.841428
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754aa970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aa970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aa970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:56:52.754136
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ac2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6971943378448486 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
2025-01-15 10:57:04.250618
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:57:33.082574
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bb0d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6946487426757812 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
2025-01-15 10:57:43.118586
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 10:57:52.945431
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75529310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7023799419403076 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
2025-01-15 10:59:03.617283
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bc9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:59:32.422529
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554d2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6886544227600098 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
2025-01-15 10:59:42.349357
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555b8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 10:59:52.239820
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75585270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.69529390335083 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
2025-01-15 11:00:03.341533
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75564950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75564950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:00:32.503809
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e1150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6880128383636475 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
2025-01-15 11:00:42.615037
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754aea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aea50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:00:52.385083
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549b310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.704296588897705 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
2025-01-15 11:01:04.003909
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:01:32.643665
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755602b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6939287185668945 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
2025-01-15 11:01:42.690465
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75541950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75541950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75541950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:01:52.734762
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6946663856506348 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
2025-01-15 11:02:03.764720
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dd950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dd950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dd950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:02:32.973897
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755262b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6862983703613281 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
2025-01-15 11:02:42.979932
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:02:52.893860
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fe2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.695857048034668 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
2025-01-15 11:03:04.510996
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:03:33.211611
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552f2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.695143699645996 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
2025-01-15 11:03:43.243932
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:03:53.182281
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755432f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7214221954345703 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
2025-01-15 11:04:03.238930
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cd9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cd9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cd9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:04:32.468964
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6960349082946777 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
2025-01-15 11:04:42.367706
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:04:52.374121
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cb250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7061078548431396 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
2025-01-15 11:05:04.336576
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:05:32.680857
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ba350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.682431936264038 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
2025-01-15 11:05:42.655422
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:05:52.548154
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755702d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6957824230194092 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
2025-01-15 11:06:03.508311
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:06:32.750514
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549d270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.688371181488037 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
2025-01-15 11:06:42.777242
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ab8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:06:52.742930
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7098441123962402 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
2025-01-15 11:07:04.450190
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:07:33.072194
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755432f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.695347547531128 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
2025-01-15 11:07:42.986693
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a79f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:07:52.915759
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551e330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.719815731048584 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
2025-01-15 11:08:03.882191
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:08:33.054859
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75b24830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6861438751220703 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
2025-01-15 11:08:43.120965
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f9910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f9910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f9910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:08:53.101359
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f62d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7054026126861572 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
2025-01-15 11:09:03.903652
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d9990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d9990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d9990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:09:32.373993
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f63b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6824300289154053 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
2025-01-15 11:09:46.920709
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:09:52.299068
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b9370>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.697657585144043 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
2025-01-15 11:10:03.387418
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755159b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755159b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755159b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:10:32.489529
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6941499710083008 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
2025-01-15 11:10:42.538956
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:10:52.546616
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.708878993988037 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
2025-01-15 11:11:04.142665
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556d890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556d890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:11:32.819783
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555a290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.681941032409668 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
2025-01-15 11:11:42.853262
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:11:52.725401
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755362d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6959280967712402 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
2025-01-15 11:12:03.611577
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75f4adf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f4adf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f4adf0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:12:32.918771
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549e290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.682593822479248 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
2025-01-15 11:12:42.973527
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75499990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75499990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75499990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:12:52.890600
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cf290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.718505859375 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
2025-01-15 11:13:04.533594
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754db850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754db850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754db850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:13:33.077971
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7048249244689941 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
2025-01-15 11:13:43.088220
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755619b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755619b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755619b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:13:53.221161
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557c230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7009129524230957 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
2025-01-15 11:14:03.282805
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75500550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75500550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75500550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:14:32.517239
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75590150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6897954940795898 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
2025-01-15 11:14:42.469706
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f2970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:14:52.391801
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556e110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.704697608947754 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
2025-01-15 11:15:04.026591
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754878b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754878b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754878b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:15:32.617397
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755172b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6966195106506348 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
2025-01-15 11:15:42.646696
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:15:52.546416
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7183871269226074 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
2025-01-15 11:16:03.537973
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:16:32.755342
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d8370>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.685910701751709 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
2025-01-15 11:16:42.888814
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:16:52.740441
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e0270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7010993957519531 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
2025-01-15 11:17:04.238359
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:17:32.992117
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d6230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.8173630237579346 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
2025-01-15 11:17:42.901527
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b8a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:17:52.905001
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755482b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.715829849243164 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
2025-01-15 11:18:03.843408
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75538870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75538870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75538870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:18:33.083038
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cd0b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6892468929290771 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
2025-01-15 11:18:43.124131
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x761c16f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x761c16f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x761c16f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:18:53.183303
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c8130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.71842360496521 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
2025-01-15 11:19:04.141506
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f2930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f2930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:19:32.616483
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557b290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7073829174041748 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
2025-01-15 11:19:42.594764
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:19:52.357787
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b1310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.700348138809204 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
2025-01-15 11:20:03.239768
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d58d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d58d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d58d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:20:32.599625
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755582b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6876561641693115 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
2025-01-15 11:20:42.542270
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553a9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:20:52.569307
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75557250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7207224369049072 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
2025-01-15 11:21:04.351503
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:21:32.801106
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.696077585220337 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
2025-01-15 11:21:42.870703
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75487a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75487a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75487a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:21:52.751744
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.701066017150879 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
2025-01-15 11:22:03.713144
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:22:32.986436
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755552d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6964190006256104 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
2025-01-15 11:22:43.016804
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551f110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551f110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551f110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:22:52.995537
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7241532802581787 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
2025-01-15 11:23:03.752475
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ed9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ed9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ed9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:23:32.240228
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755762d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6941258907318115 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
2025-01-15 11:23:42.148597
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75489910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75489910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75489910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:23:52.178209
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f5290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6972558498382568 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
2025-01-15 11:24:03.283950
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:24:32.469163
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755432d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.705625295639038 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
2025-01-15 11:24:42.372360
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:24:52.478665
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552f310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7033636569976807 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
2025-01-15 11:25:03.960526
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75508870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:25:32.836603
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550b310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6972107887268066 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
2025-01-15 11:25:42.867234
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:25:52.615093
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e92d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7141504287719727 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
2025-01-15 11:26:03.797224
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:26:32.948934
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a42b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6865804195404053 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
2025-01-15 11:26:42.936029
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755268b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755268b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755268b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:26:52.852051
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7065820693969727 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
2025-01-15 11:27:04.311586
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75578910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:27:33.162189
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556b0f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7067842483520508 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
2025-01-15 11:27:43.204608
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75525950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:27:53.021127
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b4290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7023584842681885 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
2025-01-15 11:28:03.132974
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552f930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:28:32.480984
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75524270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 2.9153740406036377 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
2025-01-15 11:28:42.390314
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:28:52.235526
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75494330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6988067626953125 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
2025-01-15 11:29:04.137082
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:29:32.526787
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7222399711608887 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
2025-01-15 11:29:42.454089
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:29:52.491548
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b3270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7082247734069824 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
2025-01-15 11:30:03.505241
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:30:32.710349
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dc2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6875028610229492 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
2025-01-15 11:30:42.643383
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a2890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:30:52.770587
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555e150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7067697048187256 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
2025-01-15 11:31:04.640366
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75519a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75519a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75519a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:31:33.163740
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ec330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6954402923583984 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
2025-01-15 11:31:43.062976
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:31:53.012735
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b72f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7108838558197021 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
2025-01-15 11:32:03.087762
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:32:32.493962
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75503250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6978378295898438 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
2025-01-15 11:32:42.366084
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:32:52.343905
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a20f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6923434734344482 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
2025-01-15 11:33:04.174627
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:33:32.639698
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554e310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.693371295928955 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
2025-01-15 11:33:42.598628
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554fa30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:33:52.512421
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a0250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7091164588928223 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
2025-01-15 11:34:03.558269
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555f910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555f910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555f910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:34:32.785678
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a3290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.707576036453247 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
2025-01-15 11:34:42.675029
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ea8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:34:52.690914
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75570290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7098917961120605 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
2025-01-15 11:35:04.170722
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:35:32.987066
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755510f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.700103998184204 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
2025-01-15 11:35:42.965684
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fe990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fe990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fe990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:35:53.122899
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75511270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7126455307006836 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
2025-01-15 11:36:03.065680
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:36:32.395938
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755382b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7014892101287842 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
2025-01-15 11:36:42.284666
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:36:52.333026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7080113887786865 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
2025-01-15 11:37:04.168421
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:37:32.648788
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549b270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6969454288482666 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
2025-01-15 11:37:42.457315
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75513ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75513ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75513ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:37:52.491794
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c4270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7155249118804932 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
2025-01-15 11:38:03.692811
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557fad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557fad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557fad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:38:32.699985
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6962683200836182 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
2025-01-15 11:38:42.652420
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75502950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75502950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75502950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:38:52.705611
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7089738845825195 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
2025-01-15 11:39:04.476106
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:39:33.071000
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c3270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7027831077575684 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
2025-01-15 11:39:43.013487
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:39:52.881716
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554d130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7052710056304932 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
2025-01-15 11:40:03.754393
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:40:33.061152
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75562270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.681730031967163 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
2025-01-15 11:40:43.147663
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:40:53.092197
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ad110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7156403064727783 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
2025-01-15 11:41:03.723012
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555b5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:41:32.364036
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557b0d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6988873481750488 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
2025-01-15 11:41:42.310321
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:41:52.345512
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555f110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7182214260101318 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
2025-01-15 11:42:03.489930
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75519a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75519a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75519a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:42:32.582314
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75579250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6900379657745361 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
2025-01-15 11:42:42.610908
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:42:52.672521
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754df2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.721360445022583 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
2025-01-15 11:43:04.287609
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:43:32.881807
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558c230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6932718753814697 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
2025-01-15 11:43:42.847160
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f15b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f15b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f15b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:43:52.919715
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.723510980606079 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
2025-01-15 11:44:03.872236
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b7a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b7a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b7a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:44:33.110588
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d0110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6867010593414307 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
2025-01-15 11:44:43.373081
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ad990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ad990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ad990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:44:53.185952
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75517150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7261414527893066 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
2025-01-15 11:45:03.800740
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:45:32.431144
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555d0d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6906204223632812 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
2025-01-15 11:45:42.368571
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f4950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f4950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f4950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:45:52.459149
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7115273475646973 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
2025-01-15 11:46:03.477657
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75534a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75534a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75534a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:46:32.676466
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ab2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6953036785125732 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
2025-01-15 11:46:42.699557
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75575910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:46:52.719596
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d2310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.705007553100586 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
2025-01-15 11:47:04.371846
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550c910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550c910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550c910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:47:32.933781
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6923654079437256 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
2025-01-15 11:47:42.933180
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754bc9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:47:52.934334
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75499350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7196056842803955 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
2025-01-15 11:48:03.070734
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:48:32.194337
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75566350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6888110637664795 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
2025-01-15 11:48:42.147065
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755749d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755749d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755749d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:48:52.150178
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553f1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7007627487182617 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
2025-01-15 11:49:03.825769
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755318b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755318b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755318b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:49:32.514044
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ed2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6906969547271729 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
2025-01-15 11:49:42.426985
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548b970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:49:52.439787
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754df250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7186877727508545 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
2025-01-15 11:50:03.620838
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:50:32.645921
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bb130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6980016231536865 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
2025-01-15 11:50:42.658861
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:50:52.687866
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e1b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7079825401306152 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
2025-01-15 11:51:04.107795
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:51:33.004086
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549b2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7076232433319092 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
2025-01-15 11:51:42.915820
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75521970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75521970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:51:52.905551
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543390>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7112443447113037 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
2025-01-15 11:52:03.925352
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d4990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d4990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:52:33.096000
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755920d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6851787567138672 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
2025-01-15 11:52:43.106507
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:52:53.129657
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558c210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.716385841369629 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
2025-01-15 11:53:03.963312
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755678f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755678f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755678f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:53:32.374046
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.686094045639038 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
2025-01-15 11:53:42.504831
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:53:52.300540
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bf2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.718308687210083 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
2025-01-15 11:54:03.441635
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:54:32.560925
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b72b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7005212306976318 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
2025-01-15 11:54:42.539290
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:54:52.577113
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7117185592651367 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
2025-01-15 11:55:04.106427
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:55:32.836422
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755842d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6920955181121826 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
2025-01-15 11:55:42.886322
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75526a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75526a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75526a10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:55:52.796120
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754962d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7100496292114258 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
2025-01-15 11:56:03.803749
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:56:33.058409
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75508250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.8337383270263672 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
2025-01-15 11:56:43.073566
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:56:53.219119
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75529970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.706709861755371 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
2025-01-15 11:57:04.063069
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:57:32.606197
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755022d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.68717360496521 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
2025-01-15 11:57:42.472904
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f4990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f4990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f4990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:57:52.503394
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552f2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7226345539093018 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
2025-01-15 11:59:03.985551
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755299f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755299f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755299f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 11:59:32.425208
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75577350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7012102603912354 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
2025-01-15 11:59:42.324637
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 11:59:52.340355
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d32d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7178144454956055 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
2025-01-15 12:00:03.408121
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a3ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a3ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a3ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:00:32.612328
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75540310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.690331220626831 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
2025-01-15 12:00:42.498551
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d7ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d7ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d7ab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:00:52.646213
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fd170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.71437406539917 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
2025-01-15 12:01:04.239404
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:01:32.879275
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dc130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6884384155273438 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
2025-01-15 12:01:42.927028
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755118f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755118f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755118f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:01:52.850189
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75576170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6978304386138916 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
2025-01-15 12:02:03.988678
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:02:33.127898
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755531f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7012319564819336 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
2025-01-15 12:02:43.071228
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:02:53.004697
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7144663333892822 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
2025-01-15 12:03:03.695993
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557f850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:03:32.453553
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755332b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7066783905029297 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
2025-01-15 12:03:42.364059
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:03:52.218551
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75546990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6990547180175781 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
2025-01-15 12:04:03.288168
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:04:32.504353
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755492f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6925554275512695 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
2025-01-15 12:04:42.377537
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:04:52.383218
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7060821056365967 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
2025-01-15 12:05:04.232814
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:05:32.780196
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dd170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6889312267303467 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
2025-01-15 12:05:42.676959
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75488890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75488890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75488890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:05:52.559549
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ac2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7070701122283936 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
2025-01-15 12:06:03.573576
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:06:32.774893
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a42d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7004098892211914 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
2025-01-15 12:06:42.751666
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d59d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:06:52.810804
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554d2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.709672451019287 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
2025-01-15 12:07:04.628536
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c08d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c08d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c08d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:07:33.125241
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a10d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6909937858581543 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
2025-01-15 12:07:43.108160
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:07:53.018498
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754db250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7349016666412354 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
2025-01-15 12:08:03.065950
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:08:32.353697
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fe250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6990127563476562 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
2025-01-15 12:08:42.240412
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:08:52.194805
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75506270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7034592628479004 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
2025-01-15 12:09:03.954597
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:09:32.534055
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554d290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.705918550491333 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
2025-01-15 12:09:42.400870
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755119f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755119f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755119f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:09:52.526629
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75543210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.708658218383789 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
2025-01-15 12:10:03.551302
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:10:32.779941
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ce290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6833789348602295 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
2025-01-15 12:10:42.843370
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:10:52.830003
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75549130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7022602558135986 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
2025-01-15 12:11:04.423277
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:11:33.096957
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6984403133392334 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
2025-01-15 12:11:43.113301
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7556a190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556a190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556a190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:11:53.008832
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755092f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.707810640335083 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
2025-01-15 12:12:03.207053
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755428d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755428d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755428d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:12:32.421510
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a92f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.8818471431732178 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
2025-01-15 12:12:42.240672
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:12:52.599601
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7076020240783691 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
2025-01-15 12:13:04.323188
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754de990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754de990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:13:32.919894
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75547290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6981582641601562 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
2025-01-15 12:13:42.893333
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a8870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a8870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a8870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:13:52.842843
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ee2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7138960361480713 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
2025-01-15 12:14:03.773797
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549aa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:14:33.086850
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.686838150024414 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
2025-01-15 12:14:43.023547
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:14:53.010479
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b9110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.711857795715332 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
2025-01-15 12:15:03.741468
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557c9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:15:32.302754
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75536290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.699873447418213 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
2025-01-15 12:15:42.247803
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75569190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75569190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75569190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:15:52.195458
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551b2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7193360328674316 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
2025-01-15 12:16:03.399242
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:16:32.444769
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551e970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6980369091033936 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
2025-01-15 12:16:42.432567
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:16:52.430355
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549c2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.709822654724121 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
2025-01-15 12:17:04.325118
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755659b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755659b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755659b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:17:32.696925
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6908762454986572 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
2025-01-15 12:17:42.674066
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:17:52.592470
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.698343276977539 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
2025-01-15 12:18:03.532543
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:18:32.892335
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dc230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.704345464706421 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
2025-01-15 12:18:42.838880
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fb970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fb970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fb970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:18:52.812512
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c62f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6991817951202393 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
2025-01-15 12:19:04.276326
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:19:33.089533
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bc1f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6949474811553955 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
2025-01-15 12:19:43.184358
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:19:53.137609
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754db350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7294907569885254 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
2025-01-15 12:20:03.242300
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552c890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:20:32.468708
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ac170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6939129829406738 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
2025-01-15 12:20:42.415941
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557d8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557d8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:20:52.296352
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b8310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6991987228393555 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
2025-01-15 12:21:04.188793
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:21:32.610403
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75500270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6899363994598389 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
2025-01-15 12:21:42.540178
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:21:52.602735
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7074403762817383 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
2025-01-15 12:22:03.608004
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552ea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552ea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552ea70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:22:32.832240
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e42d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6899828910827637 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
2025-01-15 12:22:42.860028
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:22:52.751176
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7006444931030273 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
2025-01-15 12:23:04.492599
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75552990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:23:33.113890
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c42f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6898000240325928 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
2025-01-15 12:23:43.023160
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75551970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75551970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75551970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:23:53.083144
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75571310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7198734283447266 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
2025-01-15 12:24:03.113575
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ed8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ed8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ed8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:24:32.372776
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75587330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7003817558288574 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
2025-01-15 12:24:42.373211
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:24:52.289432
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f00f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7067880630493164 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
2025-01-15 12:25:04.057384
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:25:32.997401
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6879298686981201 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
2025-01-15 12:25:42.925880
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75523510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75523510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75523510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:25:52.739108
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f91d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.71915864944458 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
2025-01-15 12:26:03.610873
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:26:32.977282
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755732b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6989476680755615 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
2025-01-15 12:26:42.887126
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755468b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755468b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755468b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:26:52.941931
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fdb5f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.703977346420288 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
2025-01-15 12:27:04.676115
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75498150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75498150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:27:33.061677
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755342f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6922338008880615 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
2025-01-15 12:27:43.101174
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:27:53.073559
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557a130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.70711088180542 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
2025-01-15 12:28:03.185368
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:28:32.361330
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553b350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7025821208953857 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
2025-01-15 12:28:42.287438
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:28:52.368684
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75535330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.845313310623169 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
2025-01-15 12:29:03.868924
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e68d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e68d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e68d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:29:32.662975
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554b2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7135288715362549 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
2025-01-15 12:29:42.602459
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:29:52.505516
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754df250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7225630283355713 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
2025-01-15 12:30:03.453955
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:30:32.780082
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754962b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.696004867553711 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
2025-01-15 12:30:42.666621
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:30:52.703056
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b6150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.699674367904663 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
2025-01-15 12:31:04.542865
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:31:33.000953
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755241d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.699108362197876 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
2025-01-15 12:31:43.000505
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:31:52.842725
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75518110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6995983123779297 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
2025-01-15 12:32:03.708983
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75579990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75579990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75579990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:32:33.056147
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c62d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6948750019073486 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
2025-01-15 12:32:43.046126
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b48f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b48f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b48f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:32:53.038292
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755032b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7115120887756348 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
2025-01-15 12:33:03.576336
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755029b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755029b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755029b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:33:32.275585
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75520310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6895949840545654 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
2025-01-15 12:33:42.295516
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75578950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75578950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:33:52.332553
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551b2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.698657751083374 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
2025-01-15 12:34:03.171860
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557b930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557b930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557b930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:34:32.632572
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75522290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6865260601043701 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
2025-01-15 12:34:42.552060
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:34:52.619381
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b02d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.698399305343628 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
2025-01-15 12:35:04.217466
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:35:33.027473
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558f2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7109415531158447 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
2025-01-15 12:35:43.004848
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:35:52.859311
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556f270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7084181308746338 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
2025-01-15 12:36:03.754485
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:36:33.031170
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550f2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7100841999053955 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
2025-01-15 12:36:43.151696
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:36:53.107976
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754eb110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6981775760650635 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
2025-01-15 12:37:03.540096
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:37:32.307979
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755902d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.8205931186676025 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
2025-01-15 12:37:42.322602
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75577870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75577870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75577870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:37:52.353020
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a8250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7064619064331055 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
2025-01-15 12:38:03.177339
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552c530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c530>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:38:32.625397
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f6270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6839032173156738 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
2025-01-15 12:38:42.664770
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754aba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aba10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:38:52.558797
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755462d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6975653171539307 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
2025-01-15 12:39:04.170784
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:39:32.765144
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754df270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7024025917053223 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
2025-01-15 12:39:42.784732
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:39:52.761212
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75548a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6909310817718506 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
2025-01-15 12:40:03.618395
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754adab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754adab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754adab0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:40:33.000088
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75535110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7023169994354248 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
2025-01-15 12:40:43.025076
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755049f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755049f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755049f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:40:52.972904
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555b2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6981375217437744 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
2025-01-15 12:41:03.254404
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:41:32.261046
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552c2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.689317226409912 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
2025-01-15 12:41:42.216477
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75575950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75575950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:41:52.144550
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755092b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6927902698516846 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
2025-01-15 12:42:03.027719
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:42:32.403957
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75592330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6856346130371094 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
2025-01-15 12:42:42.355813
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d7930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d7930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d7930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:42:52.339970
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a9290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6927545070648193 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
2025-01-15 12:43:03.857229
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e78d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e78d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e78d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:43:32.541470
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558d2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6919281482696533 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
2025-01-15 12:43:42.555532
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c68b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c68b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c68b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:43:52.570499
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755400f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7085270881652832 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
2025-01-15 12:44:03.469274
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:44:32.773424
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75532310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6907894611358643 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
2025-01-15 12:44:42.792326
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754dc8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dc8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754dc8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:44:52.767191
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550f2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7021565437316895 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
2025-01-15 12:45:04.233456
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:45:32.956909
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75561290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7011644840240479 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
2025-01-15 12:45:42.995697
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:45:53.000128
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554a2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6925764083862305 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
2025-01-15 12:46:02.859894
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:46:32.272618
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755782b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.690617561340332 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
2025-01-15 12:46:42.262900
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75520950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75520950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75520950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:46:52.236207
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e5290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7084949016571045 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
2025-01-15 12:47:03.860632
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e7990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e7990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:47:32.486171
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a9310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6922669410705566 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
2025-01-15 12:47:42.422576
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551c970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551c970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551c970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:47:52.469350
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75538210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7062842845916748 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
2025-01-15 12:48:03.187080
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555c9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:48:32.647954
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75527310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7007777690887451 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
2025-01-15 12:48:42.683557
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:48:52.650483
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e50f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.703378438949585 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
2025-01-15 12:49:04.276290
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75525990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75525990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:49:32.913797
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75563190>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7004609107971191 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
2025-01-15 12:49:42.911239
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b6170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b6170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b6170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:49:53.074443
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b7250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.720902919769287 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
2025-01-15 12:50:02.918308
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755349b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755349b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755349b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:50:32.370458
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75fa42f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7120802402496338 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
2025-01-15 12:50:42.275680
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:50:52.263957
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a5150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.695464849472046 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
2025-01-15 12:51:03.756139
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554fa10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:51:32.584272
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754bd170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7061011791229248 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
2025-01-15 12:51:42.542210
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:51:52.448886
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.691319465637207 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
2025-01-15 12:52:03.319735
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:52:32.646972
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6914803981781006 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
2025-01-15 12:52:42.728150
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:52:52.670945
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549e130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6891560554504395 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
2025-01-15 12:53:04.409453
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:53:32.887502
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755842d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6913611888885498 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
2025-01-15 12:53:42.925796
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:53:52.965576
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d7270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7080702781677246 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
2025-01-15 12:54:02.948702
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549a4f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549a4f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549a4f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:54:32.179156
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cf290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7002043724060059 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
2025-01-15 12:54:42.216153
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:54:52.298794
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b42f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.691474437713623 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
2025-01-15 12:55:03.781894
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553a990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:55:32.515600
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556b130>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7140986919403076 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
2025-01-15 12:55:42.525379
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:55:52.548820
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557a270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6963560581207275 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
2025-01-15 12:56:03.379404
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755549f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755549f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755549f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:56:32.752002
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75572250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6964292526245117 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
2025-01-15 12:56:42.759792
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:56:52.764498
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75497310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7021081447601318 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
2025-01-15 12:57:04.290574
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:57:33.083419
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553c150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.703104019165039 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
2025-01-15 12:57:43.099442
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:57:53.009674
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75553270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.702291488647461 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
2025-01-15 12:59:04.401414
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 12:59:32.684433
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755002b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6937062740325928 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
2025-01-15 12:59:42.742294
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a1950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 12:59:52.711556
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7093305587768555 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
2025-01-15 13:00:03.670378
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ed8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ed8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ed8d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:00:32.965650
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75548270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.691420316696167 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
2025-01-15 13:00:42.876926
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 13:00:52.892763
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556f2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7240533828735352 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
2025-01-15 13:01:04.491735
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755299f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755299f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755299f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:01:33.237137
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75497310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7023847103118896 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
2025-01-15 13:01:43.378431
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754db990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754db990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754db990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:01:53.098563
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553d2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7105059623718262 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
2025-01-15 13:02:03.262015
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 13:02:32.354163
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754aa150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6910417079925537 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
2025-01-15 13:02:42.442095
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551a930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551a930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:02:52.303694
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754af270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.707693099975586 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
2025-01-15 13:03:04.052912
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75490510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75490510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75490510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:03:32.658266
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a7150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7034759521484375 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
2025-01-15 13:03:42.527554
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755829b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755829b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755829b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:03:52.629420
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7556f250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7251174449920654 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
2025-01-15 13:04:03.723466
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75582a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75582a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:04:32.871632
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75569290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6969640254974365 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
2025-01-15 13:04:42.869147
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75552a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552a70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:04:52.783432
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75ee35f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6992392539978027 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
2025-01-15 13:05:04.398385
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 13:05:33.002810
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a2250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7019844055175781 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
2025-01-15 13:05:43.079488
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a1950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a1950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:05:53.039716
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ed310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7104668617248535 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
2025-01-15 13:06:03.195228
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c19d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:06:32.340173
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754af1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7059528827667236 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
2025-01-15 13:06:42.264841
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754a89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a89b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:06:52.304117
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&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: 1.7084975242614746 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
2025-01-15 13:07:04.214321
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754919b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754919b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754919b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:07:32.684702
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755532d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7093324661254883 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
2025-01-15 13:07:42.531135
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7551e910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551e910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551e910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:07:52.587000
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f1290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7116413116455078 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
2025-01-15 13:08:03.541418
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755209d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755209d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755209d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:08:32.829551
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f7310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.702301263809204 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
2025-01-15 13:08:42.796256
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fc9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:08:52.789287
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551d1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.714681625366211 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
2025-01-15 13:09:04.439413
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75542a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75542a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75542a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:09:33.072518
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553a2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6876718997955322 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
2025-01-15 13:09:43.067774
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f69d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:09:53.046190
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e12b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7182049751281738 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
2025-01-15 13:10:03.178394
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755559d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755559d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755559d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:10:32.349398
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75505290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6978404521942139 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
2025-01-15 13:10:42.293539
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755769b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755769b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755769b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:10:52.271779
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557b290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7100863456726074 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
2025-01-15 13:11:04.229286
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e29d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:11:32.667461
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553e250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7010231018066406 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
2025-01-15 13:11:42.666155
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 13:11:52.483121
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75540250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7019939422607422 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
2025-01-15 13:12:03.563003
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75545990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75545990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:12:32.689648
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75531270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6955821514129639 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
2025-01-15 13:12:42.785815
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7555a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7555a970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:12:52.636353
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754972f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7130885124206543 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
2025-01-15 13:13:04.267436
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7549b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549b990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:13:32.993471
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7013347148895264 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
2025-01-15 13:13:42.984000
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 13:13:52.871194
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550b2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7141129970550537 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
2025-01-15 13:14:03.916214
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fc9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fc9f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:14:33.065615
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75588290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6922993659973145 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
2025-01-15 13:14:43.067677
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7548b870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548b870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7548b870>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:14:53.188383
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7209546566009521 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
2025-01-15 13:15:04.055693
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 13:15:32.481003
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e6230>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6900784969329834 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
2025-01-15 13:15:42.531981
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 13:15:52.398646
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75501290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7152092456817627 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
2025-01-15 13:16:03.402910
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cc9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:16:32.646112
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549f210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.703348159790039 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
2025-01-15 13:16:42.629201
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 13:16:52.645630
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cf2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7292225360870361 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
2025-01-15 13:17:04.134749
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75497590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75497590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75497590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:17:32.969394
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c12b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6921305656433105 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
2025-01-15 13:17:43.005921
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550f8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550f8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550f8b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:17:53.003125
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75568270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7056562900543213 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
2025-01-15 13:18:03.031463
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ef9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ef9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ef9d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:18:32.329454
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558c270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6982669830322266 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
2025-01-15 13:18:42.172131
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75507890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75507890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75507890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:18:52.160357
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x764cdf30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7007701396942139 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
2025-01-15 13:19:03.877774
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 13:19:32.465992
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cc290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.69581937789917 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
2025-01-15 13:19:42.472613
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75487930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75487930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75487930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:19:52.362833
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7146623134613037 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
2025-01-15 13:20:03.424889
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553ca50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:20:32.676800
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550e150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6904664039611816 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
2025-01-15 13:20:42.691110
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 13:20:52.679346
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fa290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7021253108978271 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
2025-01-15 13:21:04.232319
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754fd990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fd990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fd990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:21:32.859292
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c3290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7031776905059814 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
2025-01-15 13:21:42.905019
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7550c950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550c950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550c950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:21:52.888651
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75499310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7137165069580078 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
2025-01-15 13:22:03.939792
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:22:33.074745
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558d250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7066590785980225 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
2025-01-15 13:22:43.155845
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cf950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cf950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cf950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:22:53.137358
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554d350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7090446949005127 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
2025-01-15 13:23:03.785552
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754e3a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e3a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:23:32.461332
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b5290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7072911262512207 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
2025-01-15 13:23:42.393917
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755049f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755049f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755049f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:23:52.340745
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552a250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7061121463775635 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
2025-01-15 13:24:03.436687
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7552e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552e9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:24:32.578825
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549b250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7069523334503174 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
2025-01-15 13:24:42.559053
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755248d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755248d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755248d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:24:52.549866
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7624b730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7221605777740479 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
2025-01-15 13:25:04.227705
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 13:25:32.805293
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75496150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6888329982757568 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
2025-01-15 13:25:42.839816
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 13:25:52.761196
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7551c330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7026798725128174 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
2025-01-15 13:26:03.801914
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 13:26:32.989686
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ed2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6922564506530762 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
2025-01-15 13:26:42.928494
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 13:26:52.915904
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75510110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7062294483184814 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
2025-01-15 13:27:04.524492
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 13:27:33.183494
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ce330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6892127990722656 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
2025-01-15 13:27:43.217610
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75f483f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f483f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75f483f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:27:53.216587
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755452d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7163417339324951 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
2025-01-15 13:28:03.538271
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 13:28:32.950800
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7040998935699463 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
2025-01-15 13:28:43.047329
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754b6930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b6930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b6930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:28:52.937176
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7550c2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7048311233520508 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
2025-01-15 13:29:03.938181
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d8970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d8970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d8970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:29:32.203739
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755812f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.709986925125122 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
2025-01-15 13:29:42.176784
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754ea8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754ea8f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:29:52.270987
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75544210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7138216495513916 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
2025-01-15 13:30:03.312776
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754878b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754878b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754878b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:30:32.619520
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755262f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6989951133728027 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
2025-01-15 13:30:42.547041
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755628b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755628b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755628b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:30:52.507038
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75499330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7190430164337158 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
2025-01-15 13:31:04.236648
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755529f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755529f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755529f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:31:32.740861
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e81b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.702744722366333 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
2025-01-15 13:31:42.776599
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75552990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75552990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:31:52.745137
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755392d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7428693771362305 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
2025-01-15 13:32:03.818227
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 13:32:32.939165
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754fd290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.697803020477295 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
2025-01-15 13:32:42.909328
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75565290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75565290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75565290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:32:52.885651
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f7250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.733532190322876 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
2025-01-15 13:33:04.692892
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754c5970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c5970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c5970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:33:33.254829
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a0270>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6941654682159424 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
2025-01-15 13:33:43.148089
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 13:33:53.087715
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75584210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7051138877868652 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
2025-01-15 13:34:03.316618
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75539a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75539a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75539a30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:34:32.580251
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cd2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7103946208953857 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
2025-01-15 13:34:42.491668
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754f11f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f11f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f11f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:34:52.375684
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552b2f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.712470531463623 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
2025-01-15 13:35:03.943705
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 13:35:32.698872
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75550310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6954443454742432 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
2025-01-15 13:35:42.556408
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x75492910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75492910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75492910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:35:52.582298
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557f2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.726567029953003 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
2025-01-15 13:36:03.571422
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7553f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7553f9b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:36:32.888634
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755342f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6939845085144043 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
2025-01-15 13:36:42.851801
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 13:36:52.745139
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75579290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7094783782958984 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
2025-01-15 13:37:04.644827
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754d58b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d58b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754d58b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:37:32.932151
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7558f2b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7034599781036377 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
2025-01-15 13:37:42.925935
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 13:37:52.897245
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c32d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7276418209075928 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
2025-01-15 13:38:03.723144
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 13:38:33.093590
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f02b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7044003009796143 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
2025-01-15 13:38:43.089956
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 13:38:53.092205
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754e21b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7128863334655762 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
2025-01-15 13:39:04.005097
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x755769b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755769b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755769b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:39:32.378957
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7549b250>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7064197063446045 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
2025-01-15 13:39:42.291408
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554ca10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:39:52.354361
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a4210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7097499370574951 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
2025-01-15 13:40:03.482722
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x754cd910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cd910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754cd910>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:40:32.677468
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7552d150>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6964213848114014 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
2025-01-15 13:40:42.586064
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 13:40:52.553086
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754f6350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7127349376678467 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
2025-01-15 13:41:04.363017
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 13:41:32.977505
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754c10f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6983845233917236 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
2025-01-15 13:41:42.925907
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7557e930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557e930>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:41:52.740453
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755592b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.72023344039917 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
2025-01-15 13:42:03.736091
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 13:42:33.085022
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755402d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6957299709320068 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
2025-01-15 13:42:42.978129
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 13:42:53.067934
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754a9110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7094335556030273 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
2025-01-15 13:43:03.435776
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x761c1750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x761c1750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x761c1750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:43:32.349412
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754da2d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.699650764465332 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
2025-01-15 13:43:42.366599
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 13:43:52.334768
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x754b6330>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7009780406951904 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
2025-01-15 13:44:03.166124
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -f /home/pi/Desktop/images -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 13:44:32.550926
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7557c290>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.6939663887023926 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
2025-01-15 13:44:42.631576
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/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 -t 814cca0266bcde387dcca7c32045d470 --datou_id=4310 --threshold=60 -j upload_by_sql -v --interval 8 --status_upload 2 --last_days 15 --only_old 1
2025-01-15 13:44:52.531362
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
after data_to_send, before sending request
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x755542b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
cannot unpack non-iterable int object
time to upload: 1.7026944160461426 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
2025-01-15 13:45:04.192380
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = get_metadata_infos(name[0])
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 408, in get_metadata_infos
    exifdata = image.getexif()
AttributeError: 'JpegImageFile' object has no attribute 'getexif'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 148, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.fotonower_config/port_id_15012025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 841, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7554f4f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f4f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 628, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload, only_old=x.only_old)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 350, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/pi/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 172, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/pi/.local/lib/python3.7/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7554f4f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
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 15 --only_old 1
2025-01-15 13:45:32.806029
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -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
2025-01-15 13:59:03.797201
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
no port, creating one or fotonower_config_path unavailable : /home/pi/.fotonower_config
new_name : dechet_valcor_0623_15012025
 fc.token : 814cca0266bcde387dcca7c32045d470
True
{'portfolio_id': 19642969, 'actiontaken': ['Admin Wild Card !', 'Created new portfolio'], 'error': 'Photos id not exist !', 'updated_at': 1736946004000}
4310
2486221
4310
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/01/image_15012025_00_01_17_10816.jpg', '/home/pi/Desktop/images/15012025/00/01/image_15012025_00_01_47_10328.jpg', '/home/pi/Desktop/images/15012025/00/01/image_15012025_00_01_57_9388.jpg', '/home/pi/Desktop/images/15012025/00/01/image_15012025_00_02_07_10410.jpg', '/home/pi/Desktop/images/15012025/00/02/image_15012025_00_02_17_9342.jpg', '/home/pi/Desktop/images/15012025/00/02/image_15012025_00_02_37_10363.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/01/image_15012025_00_01_17_10816.jpg
/home/pi/Desktop/images/15012025/00/01/image_15012025_00_01_47_10328.jpg
/home/pi/Desktop/images/15012025/00/01/image_15012025_00_01_57_9388.jpg
/home/pi/Desktop/images/15012025/00/01/image_15012025_00_02_07_10410.jpg
/home/pi/Desktop/images/15012025/00/02/image_15012025_00_02_17_9342.jpg
/home/pi/Desktop/images/15012025/00/02/image_15012025_00_02_37_10363.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329133985","1329133967","1329133979","1329133990","1329133951","1329134002"],"photo_ids_order":["1329133951","1329133967","1329133979","1329133985","1329133990","1329134002"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/24559a757d2d5babe888ae0daa2c4a23.jpg","text":"TemporaryFile(/tmp/multipartBody6386077375860886445asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946007803,"filename":"image_15012025_00_02_07_10410.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7a68b0e81b5cbe41b4efbb8690b4231f.jpg","text":"TemporaryFile(/tmp/multipartBody2502936811140791568asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946007803,"filename":"image_15012025_00_01_47_10328.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8de98c66dee9b1caec0ba23465cd9765.jpg","text":"TemporaryFile(/tmp/multipartBody824497432612854532asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946007803,"filename":"image_15012025_00_01_57_9388.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/29f706d9f5a9cccab04ef1f4dcec2268.jpg","text":"TemporaryFile(/tmp/multipartBody1807582543950897827asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946007803,"filename":"image_15012025_00_02_17_9342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fecb90e2edd83b71d74ea1e4de3a60ae.jpg","text":"TemporaryFile(/tmp/multipartBody4715540536134464502asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946007803,"filename":"image_15012025_00_01_17_10816.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8075ccd61b7b3e5f1894513af37e3cc2.jpg","text":"TemporaryFile(/tmp/multipartBody1305599754041967664asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946007803,"filename":"image_15012025_00_02_37_10363.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329133979","file1":"1329133967","file0":"1329133951","file4":"1329133990","file5":"1329134002","file3":"1329133985"},"map_files_photo_id_array":[{"photo_id":"1329134002","filename":"file5"},{"photo_id":"1329133979","filename":"file2"},{"photo_id":"1329133990","filename":"file4"},{"photo_id":"1329133967","filename":"file1"},{"photo_id":"1329133951","filename":"file0"},{"photo_id":"1329133985","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329133985":["hashtag1","hashtag2"]},{"1329133967":["hashtag1","hashtag2"]},{"1329133979":["hashtag1","hashtag2"]},{"1329133990":["hashtag1","hashtag2"]},{"1329133951":["hashtag1","hashtag2"]},{"1329134002":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329133985, 1329133967, 1329133979, 1329133990, 1329133951, 1329134002)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.659992933273315 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 15 --only_old 1
2025-01-15 13:59:52.726322
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg', '/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/14/image_14012025_08_15_05_10344.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_15_10351.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_24_9457.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_35_10347.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_44_9477.jpg
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_15_55_10356.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329134039","1329134030","1329134033","1329134012","1329134009","1329134010"],"photo_ids_order":["1329134009","1329134010","1329134012","1329134030","1329134033","1329134039"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/32a9dc0587578c0cec86fc918bb98e3f.jpg","text":"TemporaryFile(/tmp/multipartBody4766710929359739340asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946055224,"filename":"image_14012025_08_15_55_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4bfeabe50314605f84d9f586d8c415c7.jpg","text":"TemporaryFile(/tmp/multipartBody1364057593305085487asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946055224,"filename":"image_14012025_08_15_35_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0b9c6fcf1a943635e9cda077d552f9eb.jpg","text":"TemporaryFile(/tmp/multipartBody5647497240348376424asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946055224,"filename":"image_14012025_08_15_44_9477.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f7dbe430fa3382ac150f253257c4d8d4.jpg","text":"TemporaryFile(/tmp/multipartBody7511512122568564886asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946055224,"filename":"image_14012025_08_15_24_9457.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/46241fd9f52ad6ca35fec8ec9930f1fc.jpg","text":"TemporaryFile(/tmp/multipartBody120184235984208153asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946055224,"filename":"image_14012025_08_15_05_10344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3d8a7ac6792d122a37937d6cd8ee51f6.jpg","text":"TemporaryFile(/tmp/multipartBody4741997776982336717asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946055224,"filename":"image_14012025_08_15_15_10351.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329134012","file1":"1329134010","file0":"1329134009","file4":"1329134033","file5":"1329134039","file3":"1329134030"},"map_files_photo_id_array":[{"photo_id":"1329134039","filename":"file5"},{"photo_id":"1329134012","filename":"file2"},{"photo_id":"1329134033","filename":"file4"},{"photo_id":"1329134010","filename":"file1"},{"photo_id":"1329134009","filename":"file0"},{"photo_id":"1329134030","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329134039":["hashtag1","hashtag2"]},{"1329134030":["hashtag1","hashtag2"]},{"1329134033":["hashtag1","hashtag2"]},{"1329134012":["hashtag1","hashtag2"]},{"1329134009":["hashtag1","hashtag2"]},{"1329134010":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329134039, 1329134030, 1329134033, 1329134012, 1329134009, 1329134010)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.35451889038086 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
2025-01-15 14:00:42.934552
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/02/image_15012025_00_02_47_9347.jpg', '/home/pi/Desktop/images/15012025/00/02/image_15012025_00_03_07_10350.jpg', '/home/pi/Desktop/images/15012025/00/03/image_15012025_00_03_27_10357.jpg', '/home/pi/Desktop/images/15012025/00/03/image_15012025_00_03_38_10362.jpg', '/home/pi/Desktop/images/15012025/00/03/image_15012025_00_03_47_9413.jpg', '/home/pi/Desktop/images/15012025/00/03/image_15012025_00_03_57_10416.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/02/image_15012025_00_02_47_9347.jpg
/home/pi/Desktop/images/15012025/00/02/image_15012025_00_03_07_10350.jpg
/home/pi/Desktop/images/15012025/00/03/image_15012025_00_03_27_10357.jpg
/home/pi/Desktop/images/15012025/00/03/image_15012025_00_03_38_10362.jpg
/home/pi/Desktop/images/15012025/00/03/image_15012025_00_03_47_9413.jpg
/home/pi/Desktop/images/15012025/00/03/image_15012025_00_03_57_10416.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329134105","1329134114","1329134110","1329134082","1329134093","1329134087"],"photo_ids_order":["1329134082","1329134087","1329134093","1329134105","1329134110","1329134114"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cdb629d3c3cc93c9bdc5e33398a56d5e.jpg","text":"TemporaryFile(/tmp/multipartBody5264342698823790449asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946103911,"filename":"image_15012025_00_03_38_10362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7398be5bd96017f7253e375b18b4a8c7.jpg","text":"TemporaryFile(/tmp/multipartBody1895535230208646926asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946103911,"filename":"image_15012025_00_03_57_10416.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8b3ef91e2d019566c03ef8ce54449bd9.jpg","text":"TemporaryFile(/tmp/multipartBody2074410580157414892asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946103911,"filename":"image_15012025_00_03_47_9413.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f8223f7bf6804cb5f5bab6d779a4cb0c.jpg","text":"TemporaryFile(/tmp/multipartBody4583289339545800352asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946103911,"filename":"image_15012025_00_02_47_9347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/35174f9640e49645fb8873e512c2fe28.jpg","text":"TemporaryFile(/tmp/multipartBody1027676648411317423asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946103911,"filename":"image_15012025_00_03_27_10357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6b141483b3b77178fe2ba7427d75327a.jpg","text":"TemporaryFile(/tmp/multipartBody234818823142150900asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946103911,"filename":"image_15012025_00_03_07_10350.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329134093","file1":"1329134087","file0":"1329134082","file4":"1329134110","file5":"1329134114","file3":"1329134105"},"map_files_photo_id_array":[{"photo_id":"1329134114","filename":"file5"},{"photo_id":"1329134093","filename":"file2"},{"photo_id":"1329134110","filename":"file4"},{"photo_id":"1329134087","filename":"file1"},{"photo_id":"1329134082","filename":"file0"},{"photo_id":"1329134105","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329134105":["hashtag1","hashtag2"]},{"1329134114":["hashtag1","hashtag2"]},{"1329134110":["hashtag1","hashtag2"]},{"1329134082":["hashtag1","hashtag2"]},{"1329134093":["hashtag1","hashtag2"]},{"1329134087":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329134105, 1329134114, 1329134110, 1329134082, 1329134093, 1329134087)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.533610582351685 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 15 --only_old 1
2025-01-15 14:01:33.177173
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/15/image_14012025_08_16_05_10370.jpg', '/home/pi/Desktop/images/14012025/08/16/image_14012025_08_16_14_9349.jpg', '/home/pi/Desktop/images/14012025/08/16/image_14012025_08_16_25_10372.jpg', '/home/pi/Desktop/images/14012025/08/16/image_14012025_08_16_34_9352.jpg', '/home/pi/Desktop/images/14012025/08/16/image_14012025_08_16_44_10340.jpg', '/home/pi/Desktop/images/14012025/08/16/image_14012025_08_16_55_10324.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/15/image_14012025_08_16_05_10370.jpg
/home/pi/Desktop/images/14012025/08/16/image_14012025_08_16_14_9349.jpg
/home/pi/Desktop/images/14012025/08/16/image_14012025_08_16_25_10372.jpg
/home/pi/Desktop/images/14012025/08/16/image_14012025_08_16_34_9352.jpg
/home/pi/Desktop/images/14012025/08/16/image_14012025_08_16_44_10340.jpg
/home/pi/Desktop/images/14012025/08/16/image_14012025_08_16_55_10324.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329134138","1329134132","1329134146","1329134128","1329134142","1329134148"],"photo_ids_order":["1329134128","1329134132","1329134138","1329134142","1329134146","1329134148"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5fcae5a25a3ccd194818005eedf4468b.jpg","text":"TemporaryFile(/tmp/multipartBody4794130965248142926asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946155682,"filename":"image_14012025_08_16_25_10372.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/778c0c5c6f30e947bab81b3106f75c55.jpg","text":"TemporaryFile(/tmp/multipartBody6955350516469865686asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946155682,"filename":"image_14012025_08_16_14_9349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/60adffecbd48641d328cf3b7ad57917c.jpg","text":"TemporaryFile(/tmp/multipartBody8842678785089281557asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946155682,"filename":"image_14012025_08_16_44_10340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4b5e60b3accb576b9ffd7efdf62cb017.jpg","text":"TemporaryFile(/tmp/multipartBody3903298722787785269asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946155682,"filename":"image_14012025_08_16_05_10370.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3ca0a6f955285a44c375a7e951bc7953.jpg","text":"TemporaryFile(/tmp/multipartBody758207152611290371asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946155682,"filename":"image_14012025_08_16_34_9352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/209a7f1d13064e4a70ecf96e27688140.jpg","text":"TemporaryFile(/tmp/multipartBody2547484289589280367asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946155682,"filename":"image_14012025_08_16_55_10324.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329134138","file1":"1329134132","file0":"1329134128","file4":"1329134146","file5":"1329134148","file3":"1329134142"},"map_files_photo_id_array":[{"photo_id":"1329134148","filename":"file5"},{"photo_id":"1329134138","filename":"file2"},{"photo_id":"1329134146","filename":"file4"},{"photo_id":"1329134132","filename":"file1"},{"photo_id":"1329134128","filename":"file0"},{"photo_id":"1329134142","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329134138":["hashtag1","hashtag2"]},{"1329134132":["hashtag1","hashtag2"]},{"1329134146":["hashtag1","hashtag2"]},{"1329134128":["hashtag1","hashtag2"]},{"1329134142":["hashtag1","hashtag2"]},{"1329134148":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329134138, 1329134132, 1329134146, 1329134128, 1329134142, 1329134148)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.9716522693634 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 15 --only_old 1
2025-01-15 14:02:32.468863
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/16/image_14012025_08_17_04_9363.jpg', '/home/pi/Desktop/images/14012025/08/17/image_14012025_08_17_14_10336.jpg', '/home/pi/Desktop/images/14012025/08/17/image_14012025_08_17_25_10366.jpg', '/home/pi/Desktop/images/14012025/08/17/image_14012025_08_17_34_9350.jpg', '/home/pi/Desktop/images/14012025/08/17/image_14012025_08_17_45_10425.jpg', '/home/pi/Desktop/images/14012025/08/17/image_14012025_08_17_55_10332.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/16/image_14012025_08_17_04_9363.jpg
/home/pi/Desktop/images/14012025/08/17/image_14012025_08_17_14_10336.jpg
/home/pi/Desktop/images/14012025/08/17/image_14012025_08_17_25_10366.jpg
/home/pi/Desktop/images/14012025/08/17/image_14012025_08_17_34_9350.jpg
/home/pi/Desktop/images/14012025/08/17/image_14012025_08_17_45_10425.jpg
/home/pi/Desktop/images/14012025/08/17/image_14012025_08_17_55_10332.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 2.1332247257232666 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
2025-01-15 14:02:42.388253
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/03/image_15012025_00_04_07_9375.jpg', '/home/pi/Desktop/images/15012025/00/04/image_15012025_00_04_17_10447.jpg', '/home/pi/Desktop/images/15012025/00/04/image_15012025_00_04_28_10349.jpg', '/home/pi/Desktop/images/15012025/00/04/image_15012025_00_04_37_9368.jpg', '/home/pi/Desktop/images/15012025/00/04/image_15012025_00_04_47_10337.jpg', '/home/pi/Desktop/images/15012025/00/04/image_15012025_00_04_58_10360.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/03/image_15012025_00_04_07_9375.jpg
/home/pi/Desktop/images/15012025/00/04/image_15012025_00_04_17_10447.jpg
/home/pi/Desktop/images/15012025/00/04/image_15012025_00_04_28_10349.jpg
/home/pi/Desktop/images/15012025/00/04/image_15012025_00_04_37_9368.jpg
/home/pi/Desktop/images/15012025/00/04/image_15012025_00_04_47_10337.jpg
/home/pi/Desktop/images/15012025/00/04/image_15012025_00_04_58_10360.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329134179","1329134173","1329134193","1329134206","1329134184","1329134202"],"photo_ids_order":["1329134173","1329134179","1329134184","1329134193","1329134202","1329134206"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/be45513c723131c10b79ee1852fb36ce.jpg","text":"TemporaryFile(/tmp/multipartBody2457760752353167952asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946223378,"filename":"image_15012025_00_04_17_10447.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/18af39cdb68c79a761193359a4daf8ed.jpg","text":"TemporaryFile(/tmp/multipartBody6355476756252573681asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946223378,"filename":"image_15012025_00_04_07_9375.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2901c928bee2222cc83d7529daa09b0a.jpg","text":"TemporaryFile(/tmp/multipartBody545881546005616127asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946223378,"filename":"image_15012025_00_04_37_9368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ae6b498a5303f825f30cfc7110c7ed0a.jpg","text":"TemporaryFile(/tmp/multipartBody7957384843123166989asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946223378,"filename":"image_15012025_00_04_58_10360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0b528e03ce526008683f4b79e34b791c.jpg","text":"TemporaryFile(/tmp/multipartBody4745037992898957383asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946223378,"filename":"image_15012025_00_04_28_10349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f4e02e6028f031617431e75858d1d3c9.jpg","text":"TemporaryFile(/tmp/multipartBody2480437073319434664asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946223378,"filename":"image_15012025_00_04_47_10337.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329134184","file1":"1329134179","file0":"1329134173","file4":"1329134202","file5":"1329134206","file3":"1329134193"},"map_files_photo_id_array":[{"photo_id":"1329134206","filename":"file5"},{"photo_id":"1329134184","filename":"file2"},{"photo_id":"1329134202","filename":"file4"},{"photo_id":"1329134179","filename":"file1"},{"photo_id":"1329134173","filename":"file0"},{"photo_id":"1329134193","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329134179":["hashtag1","hashtag2"]},{"1329134173":["hashtag1","hashtag2"]},{"1329134193":["hashtag1","hashtag2"]},{"1329134206":["hashtag1","hashtag2"]},{"1329134184":["hashtag1","hashtag2"]},{"1329134202":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329134179, 1329134173, 1329134193, 1329134206, 1329134184, 1329134202)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 50.70430827140808 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
2025-01-15 14:03:42.677603
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/04/image_15012025_00_05_07_9337.jpg', '/home/pi/Desktop/images/15012025/00/05/image_15012025_00_05_17_10333.jpg', '/home/pi/Desktop/images/15012025/00/05/image_15012025_00_05_27_9434.jpg', '/home/pi/Desktop/images/15012025/00/05/image_15012025_00_05_37_10442.jpg', '/home/pi/Desktop/images/15012025/00/05/image_15012025_00_05_47_10370.jpg', '/home/pi/Desktop/images/15012025/00/05/image_15012025_00_05_57_9356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/04/image_15012025_00_05_07_9337.jpg
/home/pi/Desktop/images/15012025/00/05/image_15012025_00_05_17_10333.jpg
/home/pi/Desktop/images/15012025/00/05/image_15012025_00_05_27_9434.jpg
/home/pi/Desktop/images/15012025/00/05/image_15012025_00_05_37_10442.jpg
/home/pi/Desktop/images/15012025/00/05/image_15012025_00_05_47_10370.jpg
/home/pi/Desktop/images/15012025/00/05/image_15012025_00_05_57_9356.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.5961134433746338 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 15 --only_old 1
2025-01-15 14:03:52.598246
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/16/image_14012025_08_17_04_9363.jpg', '/home/pi/Desktop/images/14012025/08/17/image_14012025_08_17_14_10336.jpg', '/home/pi/Desktop/images/14012025/08/17/image_14012025_08_17_25_10366.jpg', '/home/pi/Desktop/images/14012025/08/17/image_14012025_08_17_34_9350.jpg', '/home/pi/Desktop/images/14012025/08/17/image_14012025_08_17_45_10425.jpg', '/home/pi/Desktop/images/14012025/08/17/image_14012025_08_17_55_10332.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/16/image_14012025_08_17_04_9363.jpg
/home/pi/Desktop/images/14012025/08/17/image_14012025_08_17_14_10336.jpg
/home/pi/Desktop/images/14012025/08/17/image_14012025_08_17_25_10366.jpg
/home/pi/Desktop/images/14012025/08/17/image_14012025_08_17_34_9350.jpg
/home/pi/Desktop/images/14012025/08/17/image_14012025_08_17_45_10425.jpg
/home/pi/Desktop/images/14012025/08/17/image_14012025_08_17_55_10332.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329134857","1329134887","1329134827","1329134821","1329134701","1329134696"],"photo_ids_order":["1329134696","1329134701","1329134821","1329134827","1329134857","1329134887"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/08589943e757e66c5cfee98abe10bf21.jpg","text":"TemporaryFile(/tmp/multipartBody3007235033322158799asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946295047,"filename":"image_14012025_08_17_45_10425.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f572430868979d84245bd831a269174f.jpg","text":"TemporaryFile(/tmp/multipartBody5711530897144496467asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946295047,"filename":"image_14012025_08_17_55_10332.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fda254393c3e67a3d41496984b124cb9.jpg","text":"TemporaryFile(/tmp/multipartBody2704409003415256896asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946295047,"filename":"image_14012025_08_17_34_9350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/03335eb262b93a50255a70aa5dc1c412.jpg","text":"TemporaryFile(/tmp/multipartBody6451633565827930847asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946295047,"filename":"image_14012025_08_17_25_10366.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5e044e8837130ee9d1f51fec2a0a4876.jpg","text":"TemporaryFile(/tmp/multipartBody7440171929512807612asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946295047,"filename":"image_14012025_08_17_14_10336.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3d2e73d4d67b899c28459ab7f97f07bf.jpg","text":"TemporaryFile(/tmp/multipartBody6212480380738592120asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946295047,"filename":"image_14012025_08_17_04_9363.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329134821","file1":"1329134701","file0":"1329134696","file4":"1329134857","file5":"1329134887","file3":"1329134827"},"map_files_photo_id_array":[{"photo_id":"1329134887","filename":"file5"},{"photo_id":"1329134821","filename":"file2"},{"photo_id":"1329134857","filename":"file4"},{"photo_id":"1329134701","filename":"file1"},{"photo_id":"1329134696","filename":"file0"},{"photo_id":"1329134827","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329134857":["hashtag1","hashtag2"]},{"1329134887":["hashtag1","hashtag2"]},{"1329134827":["hashtag1","hashtag2"]},{"1329134821":["hashtag1","hashtag2"]},{"1329134701":["hashtag1","hashtag2"]},{"1329134696":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329134857, 1329134887, 1329134827, 1329134821, 1329134701, 1329134696)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.932581663131714 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
2025-01-15 14:04:42.830270
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/04/image_15012025_00_05_07_9337.jpg', '/home/pi/Desktop/images/15012025/00/05/image_15012025_00_05_17_10333.jpg', '/home/pi/Desktop/images/15012025/00/05/image_15012025_00_05_27_9434.jpg', '/home/pi/Desktop/images/15012025/00/05/image_15012025_00_05_37_10442.jpg', '/home/pi/Desktop/images/15012025/00/05/image_15012025_00_05_47_10370.jpg', '/home/pi/Desktop/images/15012025/00/05/image_15012025_00_05_57_9356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/04/image_15012025_00_05_07_9337.jpg
/home/pi/Desktop/images/15012025/00/05/image_15012025_00_05_17_10333.jpg
/home/pi/Desktop/images/15012025/00/05/image_15012025_00_05_27_9434.jpg
/home/pi/Desktop/images/15012025/00/05/image_15012025_00_05_37_10442.jpg
/home/pi/Desktop/images/15012025/00/05/image_15012025_00_05_47_10370.jpg
/home/pi/Desktop/images/15012025/00/05/image_15012025_00_05_57_9356.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329134948","1329134945","1329134932","1329134941","1329134910","1329134904"],"photo_ids_order":["1329134904","1329134910","1329134932","1329134941","1329134945","1329134948"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d2ae0559391524f79ff6b2f6624ba225.jpg","text":"TemporaryFile(/tmp/multipartBody3500781805857804334asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946343723,"filename":"image_15012025_00_05_57_9356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5a8c5a9e62daaa3f87226f61602887b6.jpg","text":"TemporaryFile(/tmp/multipartBody8018424276081385538asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946343723,"filename":"image_15012025_00_05_47_10370.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d0c777bb8eb7116333d1eacabd05082e.jpg","text":"TemporaryFile(/tmp/multipartBody1328454209452835237asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946343723,"filename":"image_15012025_00_05_27_9434.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/34ca6608003314257f8a4c9bb3bc15ca.jpg","text":"TemporaryFile(/tmp/multipartBody7566055599124236358asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946343723,"filename":"image_15012025_00_05_37_10442.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/65709caf158383f5505e1acaac262e64.jpg","text":"TemporaryFile(/tmp/multipartBody268297800757750187asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946343723,"filename":"image_15012025_00_05_17_10333.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/50cb4732a860c8a4e7d22dcf7577631b.jpg","text":"TemporaryFile(/tmp/multipartBody3294787816704022498asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946343723,"filename":"image_15012025_00_05_07_9337.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329134932","file1":"1329134910","file0":"1329134904","file4":"1329134945","file5":"1329134948","file3":"1329134941"},"map_files_photo_id_array":[{"photo_id":"1329134948","filename":"file5"},{"photo_id":"1329134932","filename":"file2"},{"photo_id":"1329134945","filename":"file4"},{"photo_id":"1329134910","filename":"file1"},{"photo_id":"1329134904","filename":"file0"},{"photo_id":"1329134941","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329134948":["hashtag1","hashtag2"]},{"1329134945":["hashtag1","hashtag2"]},{"1329134932":["hashtag1","hashtag2"]},{"1329134941":["hashtag1","hashtag2"]},{"1329134910":["hashtag1","hashtag2"]},{"1329134904":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329134948, 1329134945, 1329134932, 1329134941, 1329134910, 1329134904)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.133023262023926 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 15 --only_old 1
2025-01-15 14:05:33.117952
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/17/image_14012025_08_18_04_9403.jpg', '/home/pi/Desktop/images/14012025/08/18/image_14012025_08_18_15_10364.jpg', '/home/pi/Desktop/images/14012025/08/18/image_14012025_08_18_24_9369.jpg', '/home/pi/Desktop/images/14012025/08/18/image_14012025_08_18_34_10439.jpg', '/home/pi/Desktop/images/14012025/08/18/image_14012025_08_18_45_10351.jpg', '/home/pi/Desktop/images/14012025/08/18/image_14012025_08_18_54_9388.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/17/image_14012025_08_18_04_9403.jpg
/home/pi/Desktop/images/14012025/08/18/image_14012025_08_18_15_10364.jpg
/home/pi/Desktop/images/14012025/08/18/image_14012025_08_18_24_9369.jpg
/home/pi/Desktop/images/14012025/08/18/image_14012025_08_18_34_10439.jpg
/home/pi/Desktop/images/14012025/08/18/image_14012025_08_18_45_10351.jpg
/home/pi/Desktop/images/14012025/08/18/image_14012025_08_18_54_9388.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329135026","1329134989","1329134965","1329134999","1329135029","1329135020"],"photo_ids_order":["1329134965","1329134989","1329134999","1329135020","1329135026","1329135029"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f431d52970b7fbd405eed4d27671ee16.jpg","text":"TemporaryFile(/tmp/multipartBody8332006063484023837asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946395626,"filename":"image_14012025_08_18_45_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4633129597f2ab299c45bc2d4ebcd565.jpg","text":"TemporaryFile(/tmp/multipartBody8162274220480462301asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946395626,"filename":"image_14012025_08_18_15_10364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/74be72aafbae312b54c972b1b27f3b8d.jpg","text":"TemporaryFile(/tmp/multipartBody3306537042283725991asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946395626,"filename":"image_14012025_08_18_04_9403.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/02900cae1e1d8fed56d3289a0948bf27.jpg","text":"TemporaryFile(/tmp/multipartBody2937232611228468601asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946395626,"filename":"image_14012025_08_18_24_9369.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/93383c4bd3230ae350501122d06f899b.jpg","text":"TemporaryFile(/tmp/multipartBody6093830257198983227asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946395626,"filename":"image_14012025_08_18_54_9388.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b757b3a10dd918d3f8784d008c8eddf1.jpg","text":"TemporaryFile(/tmp/multipartBody8303032612287457511asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946395626,"filename":"image_14012025_08_18_34_10439.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329134999","file1":"1329134989","file0":"1329134965","file4":"1329135026","file5":"1329135029","file3":"1329135020"},"map_files_photo_id_array":[{"photo_id":"1329135029","filename":"file5"},{"photo_id":"1329134999","filename":"file2"},{"photo_id":"1329135026","filename":"file4"},{"photo_id":"1329134989","filename":"file1"},{"photo_id":"1329134965","filename":"file0"},{"photo_id":"1329135020","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329135026":["hashtag1","hashtag2"]},{"1329134989":["hashtag1","hashtag2"]},{"1329134965":["hashtag1","hashtag2"]},{"1329134999":["hashtag1","hashtag2"]},{"1329135029":["hashtag1","hashtag2"]},{"1329135020":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329135026, 1329134989, 1329134965, 1329134999, 1329135029, 1329135020)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.331424951553345 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 15 --only_old 1
2025-01-15 14:06:32.276515
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/18/image_14012025_08_19_05_10378.jpg', '/home/pi/Desktop/images/14012025/08/19/image_14012025_08_19_15_10359.jpg', '/home/pi/Desktop/images/14012025/08/19/image_14012025_08_19_24_9402.jpg', '/home/pi/Desktop/images/14012025/08/19/image_14012025_08_19_35_10358.jpg', '/home/pi/Desktop/images/14012025/08/19/image_14012025_08_19_44_9339.jpg', '/home/pi/Desktop/images/14012025/08/19/image_14012025_08_19_54_10411.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/18/image_14012025_08_19_05_10378.jpg
/home/pi/Desktop/images/14012025/08/19/image_14012025_08_19_15_10359.jpg
/home/pi/Desktop/images/14012025/08/19/image_14012025_08_19_24_9402.jpg
/home/pi/Desktop/images/14012025/08/19/image_14012025_08_19_35_10358.jpg
/home/pi/Desktop/images/14012025/08/19/image_14012025_08_19_44_9339.jpg
/home/pi/Desktop/images/14012025/08/19/image_14012025_08_19_54_10411.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329135181","1329135055","1329135184","1329135178","1329135153","1329135050"],"photo_ids_order":["1329135050","1329135055","1329135153","1329135178","1329135181","1329135184"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fcb16dd52d30588e0b3a9a68a9bcf45a.jpg","text":"TemporaryFile(/tmp/multipartBody1824868306450555870asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946454842,"filename":"image_14012025_08_19_44_9339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/614e7e3f91c97bd5f81f82f766f2c05c.jpg","text":"TemporaryFile(/tmp/multipartBody5824270064620299897asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946454842,"filename":"image_14012025_08_19_15_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/08a34f91b86d51b705379babb3819ab7.jpg","text":"TemporaryFile(/tmp/multipartBody7727736259914345721asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946454842,"filename":"image_14012025_08_19_54_10411.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4c0d567f93860e902ad816d003cb466c.jpg","text":"TemporaryFile(/tmp/multipartBody3184917675918179402asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946454842,"filename":"image_14012025_08_19_35_10358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1e37d52ff18075a6940414ca3012581e.jpg","text":"TemporaryFile(/tmp/multipartBody7476580010582304720asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946454842,"filename":"image_14012025_08_19_24_9402.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b62b4b38d5da8c0cf581506c49e822c7.jpg","text":"TemporaryFile(/tmp/multipartBody3812951001242646075asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946454842,"filename":"image_14012025_08_19_05_10378.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329135153","file1":"1329135055","file0":"1329135050","file4":"1329135181","file5":"1329135184","file3":"1329135178"},"map_files_photo_id_array":[{"photo_id":"1329135184","filename":"file5"},{"photo_id":"1329135153","filename":"file2"},{"photo_id":"1329135181","filename":"file4"},{"photo_id":"1329135055","filename":"file1"},{"photo_id":"1329135050","filename":"file0"},{"photo_id":"1329135178","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329135181":["hashtag1","hashtag2"]},{"1329135055":["hashtag1","hashtag2"]},{"1329135184":["hashtag1","hashtag2"]},{"1329135178":["hashtag1","hashtag2"]},{"1329135153":["hashtag1","hashtag2"]},{"1329135050":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329135181, 1329135055, 1329135184, 1329135178, 1329135153, 1329135050)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.80748128890991 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 15 --only_old 1
2025-01-15 14:07:32.617308
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/19/image_14012025_08_20_05_10355.jpg', '/home/pi/Desktop/images/14012025/08/20/image_14012025_08_20_14_9393.jpg', '/home/pi/Desktop/images/14012025/08/20/image_14012025_08_20_25_10666.jpg', '/home/pi/Desktop/images/14012025/08/20/image_14012025_08_20_34_9376.jpg', '/home/pi/Desktop/images/14012025/08/20/image_14012025_08_20_45_10331.jpg', '/home/pi/Desktop/images/14012025/08/20/image_14012025_08_20_55_10338.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/19/image_14012025_08_20_05_10355.jpg
/home/pi/Desktop/images/14012025/08/20/image_14012025_08_20_14_9393.jpg
/home/pi/Desktop/images/14012025/08/20/image_14012025_08_20_25_10666.jpg
/home/pi/Desktop/images/14012025/08/20/image_14012025_08_20_34_9376.jpg
/home/pi/Desktop/images/14012025/08/20/image_14012025_08_20_45_10331.jpg
/home/pi/Desktop/images/14012025/08/20/image_14012025_08_20_55_10338.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329135223","1329135234","1329135228","1329135237","1329135231","1329135219"],"photo_ids_order":["1329135219","1329135223","1329135228","1329135231","1329135234","1329135237"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f83bfb864fe2a52c40b96822bada49d8.jpg","text":"TemporaryFile(/tmp/multipartBody7759197554118204974asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946515129,"filename":"image_14012025_08_20_14_9393.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f102a89b3b14f2d126eadeb35176ca74.jpg","text":"TemporaryFile(/tmp/multipartBody1337629401177710159asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946515129,"filename":"image_14012025_08_20_45_10331.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/245459e23cf9602e5cf06e5359af7ad6.jpg","text":"TemporaryFile(/tmp/multipartBody4493483260524809456asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946515129,"filename":"image_14012025_08_20_25_10666.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/635ba2dc32ab99ad810611e6b186f713.jpg","text":"TemporaryFile(/tmp/multipartBody8840604312362872384asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946515129,"filename":"image_14012025_08_20_55_10338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/970e6cf99df7e0af3fe525daab320893.jpg","text":"TemporaryFile(/tmp/multipartBody1199709081871119747asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946515129,"filename":"image_14012025_08_20_34_9376.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e1f844837c7df60291111e98243d0bca.jpg","text":"TemporaryFile(/tmp/multipartBody3037673168179734898asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946515129,"filename":"image_14012025_08_20_05_10355.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329135228","file1":"1329135223","file0":"1329135219","file4":"1329135234","file5":"1329135237","file3":"1329135231"},"map_files_photo_id_array":[{"photo_id":"1329135237","filename":"file5"},{"photo_id":"1329135228","filename":"file2"},{"photo_id":"1329135234","filename":"file4"},{"photo_id":"1329135223","filename":"file1"},{"photo_id":"1329135219","filename":"file0"},{"photo_id":"1329135231","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329135223":["hashtag1","hashtag2"]},{"1329135234":["hashtag1","hashtag2"]},{"1329135228":["hashtag1","hashtag2"]},{"1329135237":["hashtag1","hashtag2"]},{"1329135231":["hashtag1","hashtag2"]},{"1329135219":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329135223, 1329135234, 1329135228, 1329135237, 1329135231, 1329135219)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.997533559799194 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 15 --only_old 1
2025-01-15 14:08:32.947474
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/20/image_14012025_08_21_04_9373.jpg', '/home/pi/Desktop/images/14012025/08/21/image_14012025_08_21_15_10347.jpg', '/home/pi/Desktop/images/14012025/08/21/image_14012025_08_21_25_10345.jpg', '/home/pi/Desktop/images/14012025/08/21/image_14012025_08_21_34_9476.jpg', '/home/pi/Desktop/images/14012025/08/21/image_14012025_08_21_45_10351.jpg', '/home/pi/Desktop/images/14012025/08/21/image_14012025_08_21_54_9347.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/20/image_14012025_08_21_04_9373.jpg
/home/pi/Desktop/images/14012025/08/21/image_14012025_08_21_15_10347.jpg
/home/pi/Desktop/images/14012025/08/21/image_14012025_08_21_25_10345.jpg
/home/pi/Desktop/images/14012025/08/21/image_14012025_08_21_34_9476.jpg
/home/pi/Desktop/images/14012025/08/21/image_14012025_08_21_45_10351.jpg
/home/pi/Desktop/images/14012025/08/21/image_14012025_08_21_54_9347.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329135434","1329135428","1329135421","1329135443","1329135452","1329135419"],"photo_ids_order":["1329135419","1329135421","1329135428","1329135434","1329135443","1329135452"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1565fda207591c1f8b0c91f54dbeabb8.jpg","text":"TemporaryFile(/tmp/multipartBody1895083269404423427asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946575463,"filename":"image_14012025_08_21_34_9476.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1b361e01be91dc243f6efaef0523607b.jpg","text":"TemporaryFile(/tmp/multipartBody6841337595715636403asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946575463,"filename":"image_14012025_08_21_25_10345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ae9edf5c24ebc99a2b6737218ec394f7.jpg","text":"TemporaryFile(/tmp/multipartBody8688409010775553835asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946575463,"filename":"image_14012025_08_21_15_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/401b8f07ac34b04e9e6bc93996ff0644.jpg","text":"TemporaryFile(/tmp/multipartBody7934827177528471255asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946575463,"filename":"image_14012025_08_21_45_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3a06b047a7890a49e01b5d9622ff09bb.jpg","text":"TemporaryFile(/tmp/multipartBody775943891362182075asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946575463,"filename":"image_14012025_08_21_54_9347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/03e5d65cf4b80746604c9df0ffe191cb.jpg","text":"TemporaryFile(/tmp/multipartBody2160177062487365658asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946575463,"filename":"image_14012025_08_21_04_9373.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329135428","file1":"1329135421","file0":"1329135419","file4":"1329135443","file5":"1329135452","file3":"1329135434"},"map_files_photo_id_array":[{"photo_id":"1329135452","filename":"file5"},{"photo_id":"1329135428","filename":"file2"},{"photo_id":"1329135443","filename":"file4"},{"photo_id":"1329135421","filename":"file1"},{"photo_id":"1329135419","filename":"file0"},{"photo_id":"1329135434","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329135434":["hashtag1","hashtag2"]},{"1329135428":["hashtag1","hashtag2"]},{"1329135421":["hashtag1","hashtag2"]},{"1329135443":["hashtag1","hashtag2"]},{"1329135452":["hashtag1","hashtag2"]},{"1329135419":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329135434, 1329135428, 1329135421, 1329135443, 1329135452, 1329135419)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.74202489852905 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 15 --only_old 1
2025-01-15 14:09:33.173776
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/21/image_14012025_08_22_05_10390.jpg', '/home/pi/Desktop/images/14012025/08/22/image_14012025_08_22_15_10414.jpg', '/home/pi/Desktop/images/14012025/08/22/image_14012025_08_22_24_9439.jpg', '/home/pi/Desktop/images/14012025/08/22/image_14012025_08_22_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/22/image_14012025_08_22_44_9331.jpg', '/home/pi/Desktop/images/14012025/08/22/image_14012025_08_22_54_10437.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/21/image_14012025_08_22_05_10390.jpg
/home/pi/Desktop/images/14012025/08/22/image_14012025_08_22_15_10414.jpg
/home/pi/Desktop/images/14012025/08/22/image_14012025_08_22_24_9439.jpg
/home/pi/Desktop/images/14012025/08/22/image_14012025_08_22_35_10347.jpg
/home/pi/Desktop/images/14012025/08/22/image_14012025_08_22_44_9331.jpg
/home/pi/Desktop/images/14012025/08/22/image_14012025_08_22_54_10437.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329135626","1329135616","1329135645","1329135639","1329135648","1329135650"],"photo_ids_order":["1329135616","1329135626","1329135639","1329135645","1329135648","1329135650"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8dcf6461eae30410fe65f9d556336fe5.jpg","text":"TemporaryFile(/tmp/multipartBody8166372180263018717asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946635695,"filename":"image_14012025_08_22_15_10414.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e8b87d4fa7bdfcfb66e17ad370c2efd1.jpg","text":"TemporaryFile(/tmp/multipartBody5722090939621594498asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946635695,"filename":"image_14012025_08_22_05_10390.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/55996526ce5f8be2b4c9d37c185c9095.jpg","text":"TemporaryFile(/tmp/multipartBody7714226678415530027asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946635695,"filename":"image_14012025_08_22_35_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/23a0ec31b2d5f0599c95aa51752fe889.jpg","text":"TemporaryFile(/tmp/multipartBody9192977556083246919asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946635695,"filename":"image_14012025_08_22_24_9439.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4dba752dadaa2559b9cdda2ce6886fc7.jpg","text":"TemporaryFile(/tmp/multipartBody7209027964057952925asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946635695,"filename":"image_14012025_08_22_44_9331.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9eb86459000a197c9e33ff75f904a651.jpg","text":"TemporaryFile(/tmp/multipartBody8743763733255958030asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946635695,"filename":"image_14012025_08_22_54_10437.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329135639","file1":"1329135626","file0":"1329135616","file4":"1329135648","file5":"1329135650","file3":"1329135645"},"map_files_photo_id_array":[{"photo_id":"1329135650","filename":"file5"},{"photo_id":"1329135639","filename":"file2"},{"photo_id":"1329135648","filename":"file4"},{"photo_id":"1329135626","filename":"file1"},{"photo_id":"1329135616","filename":"file0"},{"photo_id":"1329135645","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329135626":["hashtag1","hashtag2"]},{"1329135616":["hashtag1","hashtag2"]},{"1329135645":["hashtag1","hashtag2"]},{"1329135639":["hashtag1","hashtag2"]},{"1329135648":["hashtag1","hashtag2"]},{"1329135650":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329135626, 1329135616, 1329135645, 1329135639, 1329135648, 1329135650)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.127382040023804 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 15 --only_old 1
2025-01-15 14:10:32.398702
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/22/image_14012025_08_23_05_10324.jpg', '/home/pi/Desktop/images/14012025/08/23/image_14012025_08_23_14_9391.jpg', '/home/pi/Desktop/images/14012025/08/23/image_14012025_08_23_25_10346.jpg', '/home/pi/Desktop/images/14012025/08/23/image_14012025_08_23_35_10353.jpg', '/home/pi/Desktop/images/14012025/08/23/image_14012025_08_23_44_9389.jpg', '/home/pi/Desktop/images/14012025/08/23/image_14012025_08_23_55_10369.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/22/image_14012025_08_23_05_10324.jpg
/home/pi/Desktop/images/14012025/08/23/image_14012025_08_23_14_9391.jpg
/home/pi/Desktop/images/14012025/08/23/image_14012025_08_23_25_10346.jpg
/home/pi/Desktop/images/14012025/08/23/image_14012025_08_23_35_10353.jpg
/home/pi/Desktop/images/14012025/08/23/image_14012025_08_23_44_9389.jpg
/home/pi/Desktop/images/14012025/08/23/image_14012025_08_23_55_10369.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329135730","1329135792","1329135789","1329135794","1329135797","1329135782"],"photo_ids_order":["1329135730","1329135782","1329135789","1329135792","1329135794","1329135797"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b61ccd759e08741fa114b2d5122014e6.jpg","text":"TemporaryFile(/tmp/multipartBody4662905603542419350asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946694912,"filename":"image_14012025_08_23_05_10324.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e3c5a7b752b48e9fd7afda8b234faac8.jpg","text":"TemporaryFile(/tmp/multipartBody379803640309537892asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946694912,"filename":"image_14012025_08_23_35_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/38696a8f571bd8b8211eed10875a8189.jpg","text":"TemporaryFile(/tmp/multipartBody1311092085399877307asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946694912,"filename":"image_14012025_08_23_25_10346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cbf12f2637a3cb68a543918c11b35d1f.jpg","text":"TemporaryFile(/tmp/multipartBody7480705103645099694asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946694912,"filename":"image_14012025_08_23_44_9389.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/392b4bfe843b15bd93d326913b7143f3.jpg","text":"TemporaryFile(/tmp/multipartBody2391271522164759006asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946694912,"filename":"image_14012025_08_23_55_10369.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fcb2b11042f9d63e18f1f3fb025c0c19.jpg","text":"TemporaryFile(/tmp/multipartBody3096017965549730350asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946694912,"filename":"image_14012025_08_23_14_9391.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329135789","file1":"1329135782","file0":"1329135730","file4":"1329135794","file5":"1329135797","file3":"1329135792"},"map_files_photo_id_array":[{"photo_id":"1329135797","filename":"file5"},{"photo_id":"1329135789","filename":"file2"},{"photo_id":"1329135794","filename":"file4"},{"photo_id":"1329135782","filename":"file1"},{"photo_id":"1329135730","filename":"file0"},{"photo_id":"1329135792","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329135730":["hashtag1","hashtag2"]},{"1329135792":["hashtag1","hashtag2"]},{"1329135789":["hashtag1","hashtag2"]},{"1329135794":["hashtag1","hashtag2"]},{"1329135797":["hashtag1","hashtag2"]},{"1329135782":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329135730, 1329135792, 1329135789, 1329135794, 1329135797, 1329135782)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.55794405937195 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 15 --only_old 1
2025-01-15 14:11:32.671999
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/23/image_14012025_08_24_04_9364.jpg', '/home/pi/Desktop/images/14012025/08/24/image_14012025_08_24_14_10462.jpg', '/home/pi/Desktop/images/14012025/08/24/image_14012025_08_24_25_10345.jpg', '/home/pi/Desktop/images/14012025/08/24/image_14012025_08_24_34_9406.jpg', '/home/pi/Desktop/images/14012025/08/24/image_14012025_08_24_45_10342.jpg', '/home/pi/Desktop/images/14012025/08/24/image_14012025_08_24_55_10371.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/23/image_14012025_08_24_04_9364.jpg
/home/pi/Desktop/images/14012025/08/24/image_14012025_08_24_14_10462.jpg
/home/pi/Desktop/images/14012025/08/24/image_14012025_08_24_25_10345.jpg
/home/pi/Desktop/images/14012025/08/24/image_14012025_08_24_34_9406.jpg
/home/pi/Desktop/images/14012025/08/24/image_14012025_08_24_45_10342.jpg
/home/pi/Desktop/images/14012025/08/24/image_14012025_08_24_55_10371.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329135832","1329135835","1329135837","1329135822","1329135816","1329135827"],"photo_ids_order":["1329135816","1329135822","1329135827","1329135832","1329135835","1329135837"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8239dfb7e27b07b69ad9fff226208d29.jpg","text":"TemporaryFile(/tmp/multipartBody723113745741494418asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946755203,"filename":"image_14012025_08_24_34_9406.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cf11f80b99ca8c578e9aac06c7e40f4d.jpg","text":"TemporaryFile(/tmp/multipartBody794698611148929670asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946755203,"filename":"image_14012025_08_24_45_10342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/52533b7c60cf9c543f64bf09ff05b180.jpg","text":"TemporaryFile(/tmp/multipartBody6834059640789792842asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946755203,"filename":"image_14012025_08_24_55_10371.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/98da58c7e15a280b76eed0d6d2e7cda9.jpg","text":"TemporaryFile(/tmp/multipartBody104068073984609382asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946755203,"filename":"image_14012025_08_24_14_10462.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/27a452a522570fb60e6d0f5b3315f320.jpg","text":"TemporaryFile(/tmp/multipartBody2580679290202842321asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946755203,"filename":"image_14012025_08_24_04_9364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2ca2a00a98b899302bcad7e83287fb59.jpg","text":"TemporaryFile(/tmp/multipartBody3921085153758036541asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946755203,"filename":"image_14012025_08_24_25_10345.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329135827","file1":"1329135822","file0":"1329135816","file4":"1329135835","file5":"1329135837","file3":"1329135832"},"map_files_photo_id_array":[{"photo_id":"1329135837","filename":"file5"},{"photo_id":"1329135827","filename":"file2"},{"photo_id":"1329135835","filename":"file4"},{"photo_id":"1329135822","filename":"file1"},{"photo_id":"1329135816","filename":"file0"},{"photo_id":"1329135832","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329135832":["hashtag1","hashtag2"]},{"1329135835":["hashtag1","hashtag2"]},{"1329135837":["hashtag1","hashtag2"]},{"1329135822":["hashtag1","hashtag2"]},{"1329135816":["hashtag1","hashtag2"]},{"1329135827":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329135832, 1329135835, 1329135837, 1329135822, 1329135816, 1329135827)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.64924883842468 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 15 --only_old 1
2025-01-15 14:12:32.833453
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/25/image_14012025_08_25_15_10368.jpg', '/home/pi/Desktop/images/14012025/08/25/image_14012025_08_25_24_9406.jpg', '/home/pi/Desktop/images/14012025/08/25/image_14012025_08_25_34_10350.jpg', '/home/pi/Desktop/images/14012025/08/25/image_14012025_08_25_45_10351.jpg', '/home/pi/Desktop/images/14012025/08/25/image_14012025_08_25_54_9478.jpg', '/home/pi/Desktop/images/14012025/08/26/image_14012025_08_26_15_10326.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/25/image_14012025_08_25_15_10368.jpg
/home/pi/Desktop/images/14012025/08/25/image_14012025_08_25_24_9406.jpg
/home/pi/Desktop/images/14012025/08/25/image_14012025_08_25_34_10350.jpg
/home/pi/Desktop/images/14012025/08/25/image_14012025_08_25_45_10351.jpg
/home/pi/Desktop/images/14012025/08/25/image_14012025_08_25_54_9478.jpg
/home/pi/Desktop/images/14012025/08/26/image_14012025_08_26_15_10326.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329135898","1329135925","1329135888","1329135903","1329135893","1329135920"],"photo_ids_order":["1329135888","1329135893","1329135898","1329135903","1329135920","1329135925"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/555121b2455cb76cb33c465318cbb942.jpg","text":"TemporaryFile(/tmp/multipartBody8434792911246607555asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946815346,"filename":"image_14012025_08_25_34_10350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/360e824a157f4ded39fcca7600862f59.jpg","text":"TemporaryFile(/tmp/multipartBody2396835495501802438asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946815346,"filename":"image_14012025_08_26_15_10326.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c8f237edb7206ef37f910ac6022488a8.jpg","text":"TemporaryFile(/tmp/multipartBody4762969602943485744asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946815346,"filename":"image_14012025_08_25_15_10368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cf090a969343bed3a958657954876cae.jpg","text":"TemporaryFile(/tmp/multipartBody1463521570529474920asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946815346,"filename":"image_14012025_08_25_45_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/563c9e51945fcd243dc04c097e9b7d6e.jpg","text":"TemporaryFile(/tmp/multipartBody3783528530100924104asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946815346,"filename":"image_14012025_08_25_24_9406.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3c8502ac9b8a9d870e49af55567d8c3c.jpg","text":"TemporaryFile(/tmp/multipartBody4196334418923077352asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946815346,"filename":"image_14012025_08_25_54_9478.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329135898","file1":"1329135893","file0":"1329135888","file4":"1329135920","file5":"1329135925","file3":"1329135903"},"map_files_photo_id_array":[{"photo_id":"1329135925","filename":"file5"},{"photo_id":"1329135898","filename":"file2"},{"photo_id":"1329135920","filename":"file4"},{"photo_id":"1329135893","filename":"file1"},{"photo_id":"1329135888","filename":"file0"},{"photo_id":"1329135903","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329135898":["hashtag1","hashtag2"]},{"1329135925":["hashtag1","hashtag2"]},{"1329135888":["hashtag1","hashtag2"]},{"1329135903":["hashtag1","hashtag2"]},{"1329135893":["hashtag1","hashtag2"]},{"1329135920":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329135898, 1329135925, 1329135888, 1329135903, 1329135893, 1329135920)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.9227831363678 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 15 --only_old 1
2025-01-15 14:13:32.255421
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/26/image_14012025_08_26_54_10343.jpg', '/home/pi/Desktop/images/14012025/08/26/image_14012025_08_27_05_10363.jpg', '/home/pi/Desktop/images/14012025/08/27/image_14012025_08_27_25_10343.jpg', '/home/pi/Desktop/images/14012025/08/27/image_14012025_08_27_35_10343.jpg', '/home/pi/Desktop/images/14012025/08/27/image_14012025_08_27_44_9383.jpg', '/home/pi/Desktop/images/14012025/08/27/image_14012025_08_27_55_10352.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/26/image_14012025_08_26_54_10343.jpg
/home/pi/Desktop/images/14012025/08/26/image_14012025_08_27_05_10363.jpg
/home/pi/Desktop/images/14012025/08/27/image_14012025_08_27_25_10343.jpg
/home/pi/Desktop/images/14012025/08/27/image_14012025_08_27_35_10343.jpg
/home/pi/Desktop/images/14012025/08/27/image_14012025_08_27_44_9383.jpg
/home/pi/Desktop/images/14012025/08/27/image_14012025_08_27_55_10352.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329136048","1329136057","1329136000","1329136053","1329136043","1329136037"],"photo_ids_order":["1329136000","1329136037","1329136043","1329136048","1329136053","1329136057"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bd2287fdd6fedc768eb35c6093e3e3d2.jpg","text":"TemporaryFile(/tmp/multipartBody153664213550826958asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946874779,"filename":"image_14012025_08_27_35_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/436ce549a7c24d0847e25fa15c84b43c.jpg","text":"TemporaryFile(/tmp/multipartBody4243082793540173108asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946874779,"filename":"image_14012025_08_27_55_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4fa51eb8236b70dd7de2405a0e6b5c8e.jpg","text":"TemporaryFile(/tmp/multipartBody6647793567582816344asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946874779,"filename":"image_14012025_08_26_54_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ea62436f8b1ff7453e9909185bee756f.jpg","text":"TemporaryFile(/tmp/multipartBody4249580449614779416asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946874779,"filename":"image_14012025_08_27_44_9383.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1a931b69a4f6d2346f412b3ec65b39b9.jpg","text":"TemporaryFile(/tmp/multipartBody6394121700813740315asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946874779,"filename":"image_14012025_08_27_25_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/444b2dbfc013e5bcb842d06e7c471d94.jpg","text":"TemporaryFile(/tmp/multipartBody2238868101500996060asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946874779,"filename":"image_14012025_08_27_05_10363.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329136043","file1":"1329136037","file0":"1329136000","file4":"1329136053","file5":"1329136057","file3":"1329136048"},"map_files_photo_id_array":[{"photo_id":"1329136057","filename":"file5"},{"photo_id":"1329136043","filename":"file2"},{"photo_id":"1329136053","filename":"file4"},{"photo_id":"1329136037","filename":"file1"},{"photo_id":"1329136000","filename":"file0"},{"photo_id":"1329136048","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329136048":["hashtag1","hashtag2"]},{"1329136057":["hashtag1","hashtag2"]},{"1329136000":["hashtag1","hashtag2"]},{"1329136053":["hashtag1","hashtag2"]},{"1329136043":["hashtag1","hashtag2"]},{"1329136037":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329136048, 1329136057, 1329136000, 1329136053, 1329136043, 1329136037)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 48.36242699623108 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 15 --only_old 1
2025-01-15 14:14:32.491634
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/27/image_14012025_08_28_04_9344.jpg', '/home/pi/Desktop/images/14012025/08/28/image_14012025_08_28_14_10414.jpg', '/home/pi/Desktop/images/14012025/08/28/image_14012025_08_28_25_10362.jpg', '/home/pi/Desktop/images/14012025/08/28/image_14012025_08_28_34_9397.jpg', '/home/pi/Desktop/images/14012025/08/28/image_14012025_08_28_55_10341.jpg', '/home/pi/Desktop/images/14012025/08/28/image_14012025_08_29_04_9471.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/27/image_14012025_08_28_04_9344.jpg
/home/pi/Desktop/images/14012025/08/28/image_14012025_08_28_14_10414.jpg
/home/pi/Desktop/images/14012025/08/28/image_14012025_08_28_25_10362.jpg
/home/pi/Desktop/images/14012025/08/28/image_14012025_08_28_34_9397.jpg
/home/pi/Desktop/images/14012025/08/28/image_14012025_08_28_55_10341.jpg
/home/pi/Desktop/images/14012025/08/28/image_14012025_08_29_04_9471.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329136096","1329136101","1329136088","1329136073","1329136067","1329136106"],"photo_ids_order":["1329136067","1329136073","1329136088","1329136096","1329136101","1329136106"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9bc31e76d11e4b3348981a2da1847344.jpg","text":"TemporaryFile(/tmp/multipartBody3805140729026338745asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946934999,"filename":"image_14012025_08_28_34_9397.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0604165e22541548db2f65f2063132a6.jpg","text":"TemporaryFile(/tmp/multipartBody3184010927894414039asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946934999,"filename":"image_14012025_08_28_55_10341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/722a5112f6c731ea0ebae8057dcd4941.jpg","text":"TemporaryFile(/tmp/multipartBody6398613365737557473asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946934999,"filename":"image_14012025_08_28_25_10362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f39b81c66c2b2f30d42ea076fe3a9d87.jpg","text":"TemporaryFile(/tmp/multipartBody3442453878773123308asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946934999,"filename":"image_14012025_08_28_14_10414.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6721f20996b263e97071b4c635779eb2.jpg","text":"TemporaryFile(/tmp/multipartBody8993089759928466890asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946934999,"filename":"image_14012025_08_28_04_9344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4c82e0b29c46e5672df6de288d635286.jpg","text":"TemporaryFile(/tmp/multipartBody952912876995560002asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946934999,"filename":"image_14012025_08_29_04_9471.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329136088","file1":"1329136073","file0":"1329136067","file4":"1329136101","file5":"1329136106","file3":"1329136096"},"map_files_photo_id_array":[{"photo_id":"1329136106","filename":"file5"},{"photo_id":"1329136088","filename":"file2"},{"photo_id":"1329136101","filename":"file4"},{"photo_id":"1329136073","filename":"file1"},{"photo_id":"1329136067","filename":"file0"},{"photo_id":"1329136096","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329136096":["hashtag1","hashtag2"]},{"1329136101":["hashtag1","hashtag2"]},{"1329136088":["hashtag1","hashtag2"]},{"1329136073":["hashtag1","hashtag2"]},{"1329136067":["hashtag1","hashtag2"]},{"1329136106":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329136096, 1329136101, 1329136088, 1329136073, 1329136067, 1329136106)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.65361714363098 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 15 --only_old 1
2025-01-15 14:15:32.767972
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/29/image_14012025_08_29_24_9337.jpg', '/home/pi/Desktop/images/14012025/08/29/image_14012025_08_29_35_10396.jpg', '/home/pi/Desktop/images/14012025/08/29/image_14012025_08_29_44_9774.jpg', '/home/pi/Desktop/images/14012025/08/29/image_14012025_08_29_55_10369.jpg', '/home/pi/Desktop/images/14012025/08/29/image_14012025_08_30_04_9338.jpg', '/home/pi/Desktop/images/14012025/08/30/image_14012025_08_30_25_10339.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/29/image_14012025_08_29_24_9337.jpg
/home/pi/Desktop/images/14012025/08/29/image_14012025_08_29_35_10396.jpg
/home/pi/Desktop/images/14012025/08/29/image_14012025_08_29_44_9774.jpg
/home/pi/Desktop/images/14012025/08/29/image_14012025_08_29_55_10369.jpg
/home/pi/Desktop/images/14012025/08/29/image_14012025_08_30_04_9338.jpg
/home/pi/Desktop/images/14012025/08/30/image_14012025_08_30_25_10339.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329136156","1329136146","1329136140","1329136134","1329136151","1329136124"],"photo_ids_order":["1329136124","1329136134","1329136140","1329136146","1329136151","1329136156"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/99efc70f5d7432b71177227d4cbf849e.jpg","text":"TemporaryFile(/tmp/multipartBody1301457433205375179asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946995295,"filename":"image_14012025_08_30_25_10339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5986edc13c1ad0f4c4ffb4373c4e1c28.jpg","text":"TemporaryFile(/tmp/multipartBody2133304103598745760asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946995295,"filename":"image_14012025_08_29_55_10369.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c5d29824d86fae3581b2c0b7b69448ef.jpg","text":"TemporaryFile(/tmp/multipartBody4484783159191194001asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946995295,"filename":"image_14012025_08_29_44_9774.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/68209a7d0bedd08d667fc5cec7eca3a6.jpg","text":"TemporaryFile(/tmp/multipartBody8653686699137464403asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946995295,"filename":"image_14012025_08_29_35_10396.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ac6a43cb66f7e5eeea4ab5db4e8c7cb7.jpg","text":"TemporaryFile(/tmp/multipartBody6473206612278784636asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946995295,"filename":"image_14012025_08_30_04_9338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/59d0bdfaf58a8dee6e705ff166a276db.jpg","text":"TemporaryFile(/tmp/multipartBody5799339271909296737asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736946995295,"filename":"image_14012025_08_29_24_9337.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329136140","file1":"1329136134","file0":"1329136124","file4":"1329136151","file5":"1329136156","file3":"1329136146"},"map_files_photo_id_array":[{"photo_id":"1329136156","filename":"file5"},{"photo_id":"1329136140","filename":"file2"},{"photo_id":"1329136151","filename":"file4"},{"photo_id":"1329136134","filename":"file1"},{"photo_id":"1329136124","filename":"file0"},{"photo_id":"1329136146","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329136156":["hashtag1","hashtag2"]},{"1329136146":["hashtag1","hashtag2"]},{"1329136140":["hashtag1","hashtag2"]},{"1329136134":["hashtag1","hashtag2"]},{"1329136151":["hashtag1","hashtag2"]},{"1329136124":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329136156, 1329136146, 1329136140, 1329136134, 1329136151, 1329136124)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.12030911445618 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 15 --only_old 1
2025-01-15 14:16:32.939038
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/30/image_14012025_08_30_34_9330.jpg', '/home/pi/Desktop/images/14012025/08/30/image_14012025_08_30_44_10363.jpg', '/home/pi/Desktop/images/14012025/08/31/image_14012025_08_31_15_10337.jpg', '/home/pi/Desktop/images/14012025/08/31/image_14012025_08_31_25_10338.jpg', '/home/pi/Desktop/images/14012025/08/31/image_14012025_08_31_45_10407.jpg', '/home/pi/Desktop/images/14012025/08/31/image_14012025_08_31_54_9330.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/30/image_14012025_08_30_34_9330.jpg
/home/pi/Desktop/images/14012025/08/30/image_14012025_08_30_44_10363.jpg
/home/pi/Desktop/images/14012025/08/31/image_14012025_08_31_15_10337.jpg
/home/pi/Desktop/images/14012025/08/31/image_14012025_08_31_25_10338.jpg
/home/pi/Desktop/images/14012025/08/31/image_14012025_08_31_45_10407.jpg
/home/pi/Desktop/images/14012025/08/31/image_14012025_08_31_54_9330.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329136204","1329136194","1329136215","1329136209","1329136199","1329136220"],"photo_ids_order":["1329136194","1329136199","1329136204","1329136209","1329136215","1329136220"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b42ef14b6828d3f69afccac6b5c788d6.jpg","text":"TemporaryFile(/tmp/multipartBody4267213828194467948asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947055448,"filename":"image_14012025_08_31_15_10337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/86a8a40e860dc587e9451eb677b06d1e.jpg","text":"TemporaryFile(/tmp/multipartBody1448327724942422535asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947055448,"filename":"image_14012025_08_30_34_9330.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0947622db7f01c2de3baf4fd09aba156.jpg","text":"TemporaryFile(/tmp/multipartBody5979635446597964743asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947055448,"filename":"image_14012025_08_31_45_10407.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/57cad59e6434db2232d44696f0d8562d.jpg","text":"TemporaryFile(/tmp/multipartBody4922900043968586811asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947055448,"filename":"image_14012025_08_31_25_10338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9ac96f28bc50835e1b9bd4b95c73736d.jpg","text":"TemporaryFile(/tmp/multipartBody32918844864023345asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947055448,"filename":"image_14012025_08_30_44_10363.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/21bf2adf992939a637f8a4520f91c1c2.jpg","text":"TemporaryFile(/tmp/multipartBody2098658108499624994asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947055448,"filename":"image_14012025_08_31_54_9330.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329136204","file1":"1329136199","file0":"1329136194","file4":"1329136215","file5":"1329136220","file3":"1329136209"},"map_files_photo_id_array":[{"photo_id":"1329136220","filename":"file5"},{"photo_id":"1329136204","filename":"file2"},{"photo_id":"1329136215","filename":"file4"},{"photo_id":"1329136199","filename":"file1"},{"photo_id":"1329136194","filename":"file0"},{"photo_id":"1329136209","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329136204":["hashtag1","hashtag2"]},{"1329136194":["hashtag1","hashtag2"]},{"1329136215":["hashtag1","hashtag2"]},{"1329136209":["hashtag1","hashtag2"]},{"1329136199":["hashtag1","hashtag2"]},{"1329136220":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329136204, 1329136194, 1329136215, 1329136209, 1329136199, 1329136220)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.991180181503296 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 15 --only_old 1
2025-01-15 14:17:32.219971
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/31/image_14012025_08_32_05_10465.jpg', '/home/pi/Desktop/images/14012025/08/32/image_14012025_08_32_15_10362.jpg', '/home/pi/Desktop/images/14012025/08/32/image_14012025_08_32_24_9406.jpg', '/home/pi/Desktop/images/14012025/08/32/image_14012025_08_32_35_10348.jpg', '/home/pi/Desktop/images/14012025/08/32/image_14012025_08_32_54_9426.jpg', '/home/pi/Desktop/images/14012025/08/32/image_14012025_08_33_05_10336.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/31/image_14012025_08_32_05_10465.jpg
/home/pi/Desktop/images/14012025/08/32/image_14012025_08_32_15_10362.jpg
/home/pi/Desktop/images/14012025/08/32/image_14012025_08_32_24_9406.jpg
/home/pi/Desktop/images/14012025/08/32/image_14012025_08_32_35_10348.jpg
/home/pi/Desktop/images/14012025/08/32/image_14012025_08_32_54_9426.jpg
/home/pi/Desktop/images/14012025/08/32/image_14012025_08_33_05_10336.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 2.14107084274292 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
2025-01-15 14:17:42.139575
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/05/image_15012025_00_06_07_10384.jpg', '/home/pi/Desktop/images/15012025/00/06/image_15012025_00_06_27_10372.jpg', '/home/pi/Desktop/images/15012025/00/06/image_15012025_00_06_37_10343.jpg', '/home/pi/Desktop/images/15012025/00/06/image_15012025_00_06_47_9353.jpg', '/home/pi/Desktop/images/15012025/00/06/image_15012025_00_06_57_10462.jpg', '/home/pi/Desktop/images/15012025/00/06/image_15012025_00_07_07_10337.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/05/image_15012025_00_06_07_10384.jpg
/home/pi/Desktop/images/15012025/00/06/image_15012025_00_06_27_10372.jpg
/home/pi/Desktop/images/15012025/00/06/image_15012025_00_06_37_10343.jpg
/home/pi/Desktop/images/15012025/00/06/image_15012025_00_06_47_9353.jpg
/home/pi/Desktop/images/15012025/00/06/image_15012025_00_06_57_10462.jpg
/home/pi/Desktop/images/15012025/00/06/image_15012025_00_07_07_10337.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329136366","1329136354","1329136374","1329136371","1329136332","1329136322"],"photo_ids_order":["1329136322","1329136332","1329136354","1329136366","1329136371","1329136374"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/07be30e6b34276bbbfafcbb858cdcba8.jpg","text":"TemporaryFile(/tmp/multipartBody6220918389250967079asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947123110,"filename":"image_15012025_00_06_47_9353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9ff0ac12eaaf3901d87bba7edd23a315.jpg","text":"TemporaryFile(/tmp/multipartBody4857154461167993067asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947123110,"filename":"image_15012025_00_06_37_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5d14358a044c5abe81c936f80e5128b4.jpg","text":"TemporaryFile(/tmp/multipartBody7922707576865284913asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947123110,"filename":"image_15012025_00_07_07_10337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f4defa1f792fb437600fe56944d085c4.jpg","text":"TemporaryFile(/tmp/multipartBody5298303742585284987asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947123110,"filename":"image_15012025_00_06_57_10462.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/698851131edab2fdf27bce5862782593.jpg","text":"TemporaryFile(/tmp/multipartBody3142229680057216844asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947123110,"filename":"image_15012025_00_06_27_10372.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/48de76215c16e8bace7ba22ff96d0b50.jpg","text":"TemporaryFile(/tmp/multipartBody3675154326008061797asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947123110,"filename":"image_15012025_00_06_07_10384.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329136354","file1":"1329136332","file0":"1329136322","file4":"1329136371","file5":"1329136374","file3":"1329136366"},"map_files_photo_id_array":[{"photo_id":"1329136374","filename":"file5"},{"photo_id":"1329136354","filename":"file2"},{"photo_id":"1329136371","filename":"file4"},{"photo_id":"1329136332","filename":"file1"},{"photo_id":"1329136322","filename":"file0"},{"photo_id":"1329136366","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329136366":["hashtag1","hashtag2"]},{"1329136354":["hashtag1","hashtag2"]},{"1329136374":["hashtag1","hashtag2"]},{"1329136371":["hashtag1","hashtag2"]},{"1329136332":["hashtag1","hashtag2"]},{"1329136322":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329136366, 1329136354, 1329136374, 1329136371, 1329136332, 1329136322)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.718909740448 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 15 --only_old 1
2025-01-15 14:18:32.619742
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/31/image_14012025_08_32_05_10465.jpg', '/home/pi/Desktop/images/14012025/08/32/image_14012025_08_32_15_10362.jpg', '/home/pi/Desktop/images/14012025/08/32/image_14012025_08_32_24_9406.jpg', '/home/pi/Desktop/images/14012025/08/32/image_14012025_08_32_35_10348.jpg', '/home/pi/Desktop/images/14012025/08/32/image_14012025_08_32_54_9426.jpg', '/home/pi/Desktop/images/14012025/08/32/image_14012025_08_33_05_10336.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/31/image_14012025_08_32_05_10465.jpg
/home/pi/Desktop/images/14012025/08/32/image_14012025_08_32_15_10362.jpg
/home/pi/Desktop/images/14012025/08/32/image_14012025_08_32_24_9406.jpg
/home/pi/Desktop/images/14012025/08/32/image_14012025_08_32_35_10348.jpg
/home/pi/Desktop/images/14012025/08/32/image_14012025_08_32_54_9426.jpg
/home/pi/Desktop/images/14012025/08/32/image_14012025_08_33_05_10336.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329136438","1329136411","1329136429","1329136417","1329136425","1329136433"],"photo_ids_order":["1329136411","1329136417","1329136425","1329136429","1329136433","1329136438"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/da80e269c93defea36d417ebbd60bbb1.jpg","text":"TemporaryFile(/tmp/multipartBody2987464963752515816asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947175049,"filename":"image_14012025_08_33_05_10336.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6383965d2b23603114a8c743f84d2409.jpg","text":"TemporaryFile(/tmp/multipartBody2218604962239873427asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947175049,"filename":"image_14012025_08_32_05_10465.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/46aa970578c2aa908529340b6f81b422.jpg","text":"TemporaryFile(/tmp/multipartBody927592141533727614asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947175049,"filename":"image_14012025_08_32_35_10348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c32ef139dc3f620a9d00971f1ca06a7b.jpg","text":"TemporaryFile(/tmp/multipartBody3345240565382592261asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947175049,"filename":"image_14012025_08_32_15_10362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/079b9a4c586397d22fbcfb3c0ea4163d.jpg","text":"TemporaryFile(/tmp/multipartBody4593646444817621614asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947175049,"filename":"image_14012025_08_32_24_9406.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/44a62ee6794b0196c39a68b91d4d0019.jpg","text":"TemporaryFile(/tmp/multipartBody4145031412701043039asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947175049,"filename":"image_14012025_08_32_54_9426.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329136425","file1":"1329136417","file0":"1329136411","file4":"1329136433","file5":"1329136438","file3":"1329136429"},"map_files_photo_id_array":[{"photo_id":"1329136438","filename":"file5"},{"photo_id":"1329136425","filename":"file2"},{"photo_id":"1329136433","filename":"file4"},{"photo_id":"1329136417","filename":"file1"},{"photo_id":"1329136411","filename":"file0"},{"photo_id":"1329136429","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329136438":["hashtag1","hashtag2"]},{"1329136411":["hashtag1","hashtag2"]},{"1329136429":["hashtag1","hashtag2"]},{"1329136417":["hashtag1","hashtag2"]},{"1329136425":["hashtag1","hashtag2"]},{"1329136433":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329136438, 1329136411, 1329136429, 1329136417, 1329136425, 1329136433)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.60423398017883 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 15 --only_old 1
2025-01-15 14:19:32.754298
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/33/image_14012025_08_33_14_9359.jpg', '/home/pi/Desktop/images/14012025/08/33/image_14012025_08_33_24_10357.jpg', '/home/pi/Desktop/images/14012025/08/33/image_14012025_08_33_35_10336.jpg', '/home/pi/Desktop/images/14012025/08/33/image_14012025_08_33_44_9391.jpg', '/home/pi/Desktop/images/14012025/08/33/image_14012025_08_33_55_10363.jpg', '/home/pi/Desktop/images/14012025/08/33/image_14012025_08_34_05_10355.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/33/image_14012025_08_33_14_9359.jpg
/home/pi/Desktop/images/14012025/08/33/image_14012025_08_33_24_10357.jpg
/home/pi/Desktop/images/14012025/08/33/image_14012025_08_33_35_10336.jpg
/home/pi/Desktop/images/14012025/08/33/image_14012025_08_33_44_9391.jpg
/home/pi/Desktop/images/14012025/08/33/image_14012025_08_33_55_10363.jpg
/home/pi/Desktop/images/14012025/08/33/image_14012025_08_34_05_10355.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329137005","1329137559","1329137660","1329137804","1329137764","1329137353"],"photo_ids_order":["1329137005","1329137353","1329137559","1329137660","1329137764","1329137804"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/877ed09b743d7f1405b832a77a206a3b.jpg","text":"TemporaryFile(/tmp/multipartBody6283711407332595261asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947235270,"filename":"image_14012025_08_33_14_9359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/42335706d89a11f06e9d5ea172ad322a.jpg","text":"TemporaryFile(/tmp/multipartBody990375851064942706asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947235270,"filename":"image_14012025_08_33_35_10336.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b8ad0d312c9421ac0a1aacc3db81f131.jpg","text":"TemporaryFile(/tmp/multipartBody6486310213720557369asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947235270,"filename":"image_14012025_08_33_44_9391.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3046ae715c96103a88a0807c3b3fa082.jpg","text":"TemporaryFile(/tmp/multipartBody4348838840840394366asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947235270,"filename":"image_14012025_08_34_05_10355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/594604064124a6f753a7f27e1aeb27b2.jpg","text":"TemporaryFile(/tmp/multipartBody2204724703706088280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947235270,"filename":"image_14012025_08_33_55_10363.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/471928a728727cfec9de9c7bad8a0961.jpg","text":"TemporaryFile(/tmp/multipartBody7347218679434363915asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947235270,"filename":"image_14012025_08_33_24_10357.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329137559","file1":"1329137353","file0":"1329137005","file4":"1329137764","file5":"1329137804","file3":"1329137660"},"map_files_photo_id_array":[{"photo_id":"1329137804","filename":"file5"},{"photo_id":"1329137559","filename":"file2"},{"photo_id":"1329137764","filename":"file4"},{"photo_id":"1329137353","filename":"file1"},{"photo_id":"1329137005","filename":"file0"},{"photo_id":"1329137660","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329137005":["hashtag1","hashtag2"]},{"1329137559":["hashtag1","hashtag2"]},{"1329137660":["hashtag1","hashtag2"]},{"1329137804":["hashtag1","hashtag2"]},{"1329137764":["hashtag1","hashtag2"]},{"1329137353":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329137005, 1329137559, 1329137660, 1329137804, 1329137764, 1329137353)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.91925382614136 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 15 --only_old 1
2025-01-15 14:20:32.971464
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/34/image_14012025_08_34_14_9481.jpg', '/home/pi/Desktop/images/14012025/08/34/image_14012025_08_34_25_10355.jpg', '/home/pi/Desktop/images/14012025/08/34/image_14012025_08_34_34_9340.jpg', '/home/pi/Desktop/images/14012025/08/34/image_14012025_08_34_44_10329.jpg', '/home/pi/Desktop/images/14012025/08/34/image_14012025_08_34_55_10419.jpg', '/home/pi/Desktop/images/14012025/08/34/image_14012025_08_35_04_9436.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/34/image_14012025_08_34_14_9481.jpg
/home/pi/Desktop/images/14012025/08/34/image_14012025_08_34_25_10355.jpg
/home/pi/Desktop/images/14012025/08/34/image_14012025_08_34_34_9340.jpg
/home/pi/Desktop/images/14012025/08/34/image_14012025_08_34_44_10329.jpg
/home/pi/Desktop/images/14012025/08/34/image_14012025_08_34_55_10419.jpg
/home/pi/Desktop/images/14012025/08/34/image_14012025_08_35_04_9436.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329137985","1329138207","1329138274","1329138247","1329138195","1329138291"],"photo_ids_order":["1329137985","1329138195","1329138207","1329138247","1329138274","1329138291"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/81edbc46f05f4757e142f3433425e606.jpg","text":"TemporaryFile(/tmp/multipartBody138466481074717143asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947295479,"filename":"image_14012025_08_34_14_9481.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/abd6bd8c65a34e6d443bdf12c24f3a4e.jpg","text":"TemporaryFile(/tmp/multipartBody5946830638335991688asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947295479,"filename":"image_14012025_08_34_34_9340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f783e117c4778fcd9c9312712f746374.jpg","text":"TemporaryFile(/tmp/multipartBody1464921109802974518asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947295479,"filename":"image_14012025_08_34_55_10419.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/723df044a0f1425bf10ebe567242df68.jpg","text":"TemporaryFile(/tmp/multipartBody4817622808329160629asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947295479,"filename":"image_14012025_08_34_44_10329.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d834bcf6044e78aa6f962577a2b77ea9.jpg","text":"TemporaryFile(/tmp/multipartBody492421489488902197asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947295479,"filename":"image_14012025_08_34_25_10355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5903606e2c91cfb91798405a4f15ea0e.jpg","text":"TemporaryFile(/tmp/multipartBody667338520192191073asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947295479,"filename":"image_14012025_08_35_04_9436.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329138207","file1":"1329138195","file0":"1329137985","file4":"1329138274","file5":"1329138291","file3":"1329138247"},"map_files_photo_id_array":[{"photo_id":"1329138291","filename":"file5"},{"photo_id":"1329138207","filename":"file2"},{"photo_id":"1329138274","filename":"file4"},{"photo_id":"1329138195","filename":"file1"},{"photo_id":"1329137985","filename":"file0"},{"photo_id":"1329138247","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329137985":["hashtag1","hashtag2"]},{"1329138207":["hashtag1","hashtag2"]},{"1329138274":["hashtag1","hashtag2"]},{"1329138247":["hashtag1","hashtag2"]},{"1329138195":["hashtag1","hashtag2"]},{"1329138291":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329137985, 1329138207, 1329138274, 1329138247, 1329138195, 1329138291)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.03652620315552 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 15 --only_old 1
2025-01-15 14:21:33.094211
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/35/image_14012025_08_35_15_10367.jpg', '/home/pi/Desktop/images/14012025/08/35/image_14012025_08_35_24_9450.jpg', '/home/pi/Desktop/images/14012025/08/35/image_14012025_08_35_34_10339.jpg', '/home/pi/Desktop/images/14012025/08/35/image_14012025_08_35_45_10338.jpg', '/home/pi/Desktop/images/14012025/08/35/image_14012025_08_35_54_9355.jpg', '/home/pi/Desktop/images/14012025/08/35/image_14012025_08_36_05_10414.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/35/image_14012025_08_35_15_10367.jpg
/home/pi/Desktop/images/14012025/08/35/image_14012025_08_35_24_9450.jpg
/home/pi/Desktop/images/14012025/08/35/image_14012025_08_35_34_10339.jpg
/home/pi/Desktop/images/14012025/08/35/image_14012025_08_35_45_10338.jpg
/home/pi/Desktop/images/14012025/08/35/image_14012025_08_35_54_9355.jpg
/home/pi/Desktop/images/14012025/08/35/image_14012025_08_36_05_10414.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329138459","1329138473","1329138475","1329138454","1329138477","1329138462"],"photo_ids_order":["1329138454","1329138459","1329138462","1329138473","1329138475","1329138477"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3f27e824da39972ff9e20fa28190384f.jpg","text":"TemporaryFile(/tmp/multipartBody2755560526981306333asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947355610,"filename":"image_14012025_08_35_24_9450.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b581dcc13acb4fedcaa21b121bca279b.jpg","text":"TemporaryFile(/tmp/multipartBody3757112777267683836asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947355610,"filename":"image_14012025_08_35_45_10338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a54acdcea43832a8a45d3725fd71176d.jpg","text":"TemporaryFile(/tmp/multipartBody7235151110530720825asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947355610,"filename":"image_14012025_08_35_54_9355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8a4c4a51d66abc4c0be741d068892103.jpg","text":"TemporaryFile(/tmp/multipartBody3952892907321227268asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947355610,"filename":"image_14012025_08_35_15_10367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7d149b5c8e0c7a66b32f501193669798.jpg","text":"TemporaryFile(/tmp/multipartBody3011354352550511849asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947355610,"filename":"image_14012025_08_36_05_10414.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/99f9f98ec17815c6aa58017796fae24d.jpg","text":"TemporaryFile(/tmp/multipartBody6147508658903288056asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947355610,"filename":"image_14012025_08_35_34_10339.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329138462","file1":"1329138459","file0":"1329138454","file4":"1329138475","file5":"1329138477","file3":"1329138473"},"map_files_photo_id_array":[{"photo_id":"1329138477","filename":"file5"},{"photo_id":"1329138462","filename":"file2"},{"photo_id":"1329138475","filename":"file4"},{"photo_id":"1329138459","filename":"file1"},{"photo_id":"1329138454","filename":"file0"},{"photo_id":"1329138473","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329138459":["hashtag1","hashtag2"]},{"1329138473":["hashtag1","hashtag2"]},{"1329138475":["hashtag1","hashtag2"]},{"1329138454":["hashtag1","hashtag2"]},{"1329138477":["hashtag1","hashtag2"]},{"1329138462":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329138459, 1329138473, 1329138475, 1329138454, 1329138477, 1329138462)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.423882484436035 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 15 --only_old 1
2025-01-15 14:22:32.365135
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/36/image_14012025_08_36_15_10337.jpg', '/home/pi/Desktop/images/14012025/08/36/image_14012025_08_36_24_9476.jpg', '/home/pi/Desktop/images/14012025/08/36/image_14012025_08_36_35_10360.jpg', '/home/pi/Desktop/images/14012025/08/36/image_14012025_08_36_44_9337.jpg', '/home/pi/Desktop/images/14012025/08/36/image_14012025_08_36_55_10459.jpg', '/home/pi/Desktop/images/14012025/08/36/image_14012025_08_37_05_10343.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/36/image_14012025_08_36_15_10337.jpg
/home/pi/Desktop/images/14012025/08/36/image_14012025_08_36_24_9476.jpg
/home/pi/Desktop/images/14012025/08/36/image_14012025_08_36_35_10360.jpg
/home/pi/Desktop/images/14012025/08/36/image_14012025_08_36_44_9337.jpg
/home/pi/Desktop/images/14012025/08/36/image_14012025_08_36_55_10459.jpg
/home/pi/Desktop/images/14012025/08/36/image_14012025_08_37_05_10343.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329138761","1329138740","1329138734","1329138781","1329138775","1329138778"],"photo_ids_order":["1329138734","1329138740","1329138761","1329138775","1329138778","1329138781"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/afaf7341fa3f591b1a8ca901e962ba1c.jpg","text":"TemporaryFile(/tmp/multipartBody1905259517387869101asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947414892,"filename":"image_14012025_08_36_35_10360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bd5bddc9b7518c42ea627b01e80d64fc.jpg","text":"TemporaryFile(/tmp/multipartBody3679927425226221153asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947414892,"filename":"image_14012025_08_36_24_9476.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/17dc38abecb2198147a598b1598a3fd9.jpg","text":"TemporaryFile(/tmp/multipartBody7101070870624326194asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947414892,"filename":"image_14012025_08_36_15_10337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/113358c72bda9d442770d826f74f7112.jpg","text":"TemporaryFile(/tmp/multipartBody4557484388562155949asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947414892,"filename":"image_14012025_08_37_05_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8081473bfdf0ddbe94c89a6a4a30e676.jpg","text":"TemporaryFile(/tmp/multipartBody2710889971522465164asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947414892,"filename":"image_14012025_08_36_44_9337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9c778839801a3b3e061d7e0434df8e9e.jpg","text":"TemporaryFile(/tmp/multipartBody466141219679991049asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947414892,"filename":"image_14012025_08_36_55_10459.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329138761","file1":"1329138740","file0":"1329138734","file4":"1329138778","file5":"1329138781","file3":"1329138775"},"map_files_photo_id_array":[{"photo_id":"1329138781","filename":"file5"},{"photo_id":"1329138761","filename":"file2"},{"photo_id":"1329138778","filename":"file4"},{"photo_id":"1329138740","filename":"file1"},{"photo_id":"1329138734","filename":"file0"},{"photo_id":"1329138775","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329138761":["hashtag1","hashtag2"]},{"1329138740":["hashtag1","hashtag2"]},{"1329138734":["hashtag1","hashtag2"]},{"1329138781":["hashtag1","hashtag2"]},{"1329138775":["hashtag1","hashtag2"]},{"1329138778":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329138761, 1329138740, 1329138734, 1329138781, 1329138775, 1329138778)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.29615545272827 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 15 --only_old 1
2025-01-15 14:23:32.515607
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/37/image_14012025_08_37_14_9386.jpg', '/home/pi/Desktop/images/14012025/08/37/image_14012025_08_37_25_10382.jpg', '/home/pi/Desktop/images/14012025/08/37/image_14012025_08_37_34_9403.jpg', '/home/pi/Desktop/images/14012025/08/37/image_14012025_08_37_44_10356.jpg', '/home/pi/Desktop/images/14012025/08/37/image_14012025_08_37_55_10338.jpg', '/home/pi/Desktop/images/14012025/08/37/image_14012025_08_38_04_9348.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/37/image_14012025_08_37_14_9386.jpg
/home/pi/Desktop/images/14012025/08/37/image_14012025_08_37_25_10382.jpg
/home/pi/Desktop/images/14012025/08/37/image_14012025_08_37_34_9403.jpg
/home/pi/Desktop/images/14012025/08/37/image_14012025_08_37_44_10356.jpg
/home/pi/Desktop/images/14012025/08/37/image_14012025_08_37_55_10338.jpg
/home/pi/Desktop/images/14012025/08/37/image_14012025_08_38_04_9348.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329139073","1329139270","1329139351","1329139174","1329139188","1329139347"],"photo_ids_order":["1329139073","1329139174","1329139188","1329139270","1329139347","1329139351"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a22afc35a7295a42dcbe1197298dc04a.jpg","text":"TemporaryFile(/tmp/multipartBody5259473443370409500asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947475024,"filename":"image_14012025_08_37_14_9386.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5de2199e1c23ff2b9e2eadc0b4cf50b4.jpg","text":"TemporaryFile(/tmp/multipartBody7425764809021423455asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947475024,"filename":"image_14012025_08_37_44_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a165f803c3807586c490d165566019f2.jpg","text":"TemporaryFile(/tmp/multipartBody6301707114539766667asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947475024,"filename":"image_14012025_08_38_04_9348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1edfa818524f6a2584dfed2cc55aa760.jpg","text":"TemporaryFile(/tmp/multipartBody9178120528198995672asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947475024,"filename":"image_14012025_08_37_25_10382.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/21233de26df1f3297579f1c29a2b16a5.jpg","text":"TemporaryFile(/tmp/multipartBody9108731921263324807asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947475024,"filename":"image_14012025_08_37_34_9403.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/068c7c2dfa1e2fd64cf7cc5bf21136b5.jpg","text":"TemporaryFile(/tmp/multipartBody8912214655707254989asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947475024,"filename":"image_14012025_08_37_55_10338.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329139188","file1":"1329139174","file0":"1329139073","file4":"1329139347","file5":"1329139351","file3":"1329139270"},"map_files_photo_id_array":[{"photo_id":"1329139351","filename":"file5"},{"photo_id":"1329139188","filename":"file2"},{"photo_id":"1329139347","filename":"file4"},{"photo_id":"1329139174","filename":"file1"},{"photo_id":"1329139073","filename":"file0"},{"photo_id":"1329139270","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329139073":["hashtag1","hashtag2"]},{"1329139270":["hashtag1","hashtag2"]},{"1329139351":["hashtag1","hashtag2"]},{"1329139174":["hashtag1","hashtag2"]},{"1329139188":["hashtag1","hashtag2"]},{"1329139347":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329139073, 1329139270, 1329139351, 1329139174, 1329139188, 1329139347)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.10004186630249 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 15 --only_old 1
2025-01-15 14:24:32.731204
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/38/image_14012025_08_38_14_10410.jpg', '/home/pi/Desktop/images/14012025/08/38/image_14012025_08_38_25_10360.jpg', '/home/pi/Desktop/images/14012025/08/38/image_14012025_08_38_34_9395.jpg', '/home/pi/Desktop/images/14012025/08/38/image_14012025_08_38_45_10438.jpg', '/home/pi/Desktop/images/14012025/08/38/image_14012025_08_38_54_9352.jpg', '/home/pi/Desktop/images/14012025/08/38/image_14012025_08_39_04_10419.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/38/image_14012025_08_38_14_10410.jpg
/home/pi/Desktop/images/14012025/08/38/image_14012025_08_38_25_10360.jpg
/home/pi/Desktop/images/14012025/08/38/image_14012025_08_38_34_9395.jpg
/home/pi/Desktop/images/14012025/08/38/image_14012025_08_38_45_10438.jpg
/home/pi/Desktop/images/14012025/08/38/image_14012025_08_38_54_9352.jpg
/home/pi/Desktop/images/14012025/08/38/image_14012025_08_39_04_10419.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329139541","1329139535","1329139511","1329139444","1329139548","1329139557"],"photo_ids_order":["1329139444","1329139511","1329139535","1329139541","1329139548","1329139557"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/06df842d9d23c7cb4c8fc62af83da11d.jpg","text":"TemporaryFile(/tmp/multipartBody6717832428882690562asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947535247,"filename":"image_14012025_08_38_45_10438.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5d4c0b14768f8d892e76dae7106754f7.jpg","text":"TemporaryFile(/tmp/multipartBody3167328280164569648asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947535247,"filename":"image_14012025_08_38_34_9395.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/db490faf0b519fdb6c55517663850865.jpg","text":"TemporaryFile(/tmp/multipartBody6824499805406414128asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947535247,"filename":"image_14012025_08_38_25_10360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/060391f9954b7f2db6fbddbfd82a5892.jpg","text":"TemporaryFile(/tmp/multipartBody4737050646819174347asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947535247,"filename":"image_14012025_08_38_14_10410.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/013fd5997d1c13464ceb3de02deefb84.jpg","text":"TemporaryFile(/tmp/multipartBody3643393326623153793asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947535247,"filename":"image_14012025_08_38_54_9352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d04bfa3e123d4b2211acee30eac7c8c6.jpg","text":"TemporaryFile(/tmp/multipartBody6599535140053219263asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947535247,"filename":"image_14012025_08_39_04_10419.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329139535","file1":"1329139511","file0":"1329139444","file4":"1329139548","file5":"1329139557","file3":"1329139541"},"map_files_photo_id_array":[{"photo_id":"1329139557","filename":"file5"},{"photo_id":"1329139535","filename":"file2"},{"photo_id":"1329139548","filename":"file4"},{"photo_id":"1329139511","filename":"file1"},{"photo_id":"1329139444","filename":"file0"},{"photo_id":"1329139541","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329139541":["hashtag1","hashtag2"]},{"1329139535":["hashtag1","hashtag2"]},{"1329139511":["hashtag1","hashtag2"]},{"1329139444":["hashtag1","hashtag2"]},{"1329139548":["hashtag1","hashtag2"]},{"1329139557":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329139541, 1329139535, 1329139511, 1329139444, 1329139548, 1329139557)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.45719027519226 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 15 --only_old 1
2025-01-15 14:25:32.899801
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/39/image_14012025_08_39_15_10344.jpg', '/home/pi/Desktop/images/14012025/08/39/image_14012025_08_39_24_9350.jpg', '/home/pi/Desktop/images/14012025/08/39/image_14012025_08_39_35_10368.jpg', '/home/pi/Desktop/images/14012025/08/39/image_14012025_08_39_45_10344.jpg', '/home/pi/Desktop/images/14012025/08/39/image_14012025_08_39_54_9405.jpg', '/home/pi/Desktop/images/14012025/08/39/image_14012025_08_40_05_10361.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/39/image_14012025_08_39_15_10344.jpg
/home/pi/Desktop/images/14012025/08/39/image_14012025_08_39_24_9350.jpg
/home/pi/Desktop/images/14012025/08/39/image_14012025_08_39_35_10368.jpg
/home/pi/Desktop/images/14012025/08/39/image_14012025_08_39_45_10344.jpg
/home/pi/Desktop/images/14012025/08/39/image_14012025_08_39_54_9405.jpg
/home/pi/Desktop/images/14012025/08/39/image_14012025_08_40_05_10361.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329139688","1329139823","1329139811","1329139845","1329139767","1329139833"],"photo_ids_order":["1329139688","1329139767","1329139811","1329139823","1329139833","1329139845"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/88c2e196ec906daf16b612a8655ce76f.jpg","text":"TemporaryFile(/tmp/multipartBody4998636032397534429asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947595475,"filename":"image_14012025_08_39_15_10344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/83c6964bf9907aa2fe2387b6bbd2f30c.jpg","text":"TemporaryFile(/tmp/multipartBody1985235288882130961asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947595475,"filename":"image_14012025_08_39_45_10344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4fe6df1d88fa85d97d3824736d924087.jpg","text":"TemporaryFile(/tmp/multipartBody657084803950044480asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947595475,"filename":"image_14012025_08_39_35_10368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7b398f002f48928c704983182674546e.jpg","text":"TemporaryFile(/tmp/multipartBody6570507466898109261asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947595475,"filename":"image_14012025_08_40_05_10361.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1d3c84c3b9ce13c628eaa80596fd2e7a.jpg","text":"TemporaryFile(/tmp/multipartBody7356656733979411655asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947595475,"filename":"image_14012025_08_39_24_9350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/02ecc124f988e342db94f5122ec27ae7.jpg","text":"TemporaryFile(/tmp/multipartBody864325067932233480asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947595475,"filename":"image_14012025_08_39_54_9405.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329139811","file1":"1329139767","file0":"1329139688","file4":"1329139833","file5":"1329139845","file3":"1329139823"},"map_files_photo_id_array":[{"photo_id":"1329139845","filename":"file5"},{"photo_id":"1329139811","filename":"file2"},{"photo_id":"1329139833","filename":"file4"},{"photo_id":"1329139767","filename":"file1"},{"photo_id":"1329139688","filename":"file0"},{"photo_id":"1329139823","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329139688":["hashtag1","hashtag2"]},{"1329139823":["hashtag1","hashtag2"]},{"1329139811":["hashtag1","hashtag2"]},{"1329139845":["hashtag1","hashtag2"]},{"1329139767":["hashtag1","hashtag2"]},{"1329139833":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329139688, 1329139823, 1329139811, 1329139845, 1329139767, 1329139833)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 48.868868827819824 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 15 --only_old 1
2025-01-15 14:26:33.017484
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/40/image_14012025_08_40_15_10338.jpg', '/home/pi/Desktop/images/14012025/08/40/image_14012025_08_40_24_9425.jpg', '/home/pi/Desktop/images/14012025/08/40/image_14012025_08_40_35_10346.jpg', '/home/pi/Desktop/images/14012025/08/40/image_14012025_08_40_44_9317.jpg', '/home/pi/Desktop/images/14012025/08/40/image_14012025_08_40_54_10333.jpg', '/home/pi/Desktop/images/14012025/08/40/image_14012025_08_41_05_10352.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/40/image_14012025_08_40_15_10338.jpg
/home/pi/Desktop/images/14012025/08/40/image_14012025_08_40_24_9425.jpg
/home/pi/Desktop/images/14012025/08/40/image_14012025_08_40_35_10346.jpg
/home/pi/Desktop/images/14012025/08/40/image_14012025_08_40_44_9317.jpg
/home/pi/Desktop/images/14012025/08/40/image_14012025_08_40_54_10333.jpg
/home/pi/Desktop/images/14012025/08/40/image_14012025_08_41_05_10352.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329139893","1329139887","1329139884","1329139878","1329139863","1329139872"],"photo_ids_order":["1329139863","1329139872","1329139878","1329139884","1329139887","1329139893"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/913b32a31142a0ce0cbf898d31bb6b51.jpg","text":"TemporaryFile(/tmp/multipartBody4967044948283859865asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947655540,"filename":"image_14012025_08_41_05_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a96f7900e73351f2a8c7cc12cbb572e0.jpg","text":"TemporaryFile(/tmp/multipartBody7500838335071303160asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947655540,"filename":"image_14012025_08_40_54_10333.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/eee9e953dc6ead25363a08320a6b0901.jpg","text":"TemporaryFile(/tmp/multipartBody118390158362723117asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947655540,"filename":"image_14012025_08_40_44_9317.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8c5554b4b28ff3378328eac909a4bce1.jpg","text":"TemporaryFile(/tmp/multipartBody8766377715586500915asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947655540,"filename":"image_14012025_08_40_35_10346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b2cd88b7dcdc00a0c6a2d9bdc69a2e8a.jpg","text":"TemporaryFile(/tmp/multipartBody3990387605679047909asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947655540,"filename":"image_14012025_08_40_15_10338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/904e99cb2d77d60e57eee7972280727b.jpg","text":"TemporaryFile(/tmp/multipartBody2855005647813863908asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947655540,"filename":"image_14012025_08_40_24_9425.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329139878","file1":"1329139872","file0":"1329139863","file4":"1329139887","file5":"1329139893","file3":"1329139884"},"map_files_photo_id_array":[{"photo_id":"1329139893","filename":"file5"},{"photo_id":"1329139878","filename":"file2"},{"photo_id":"1329139887","filename":"file4"},{"photo_id":"1329139872","filename":"file1"},{"photo_id":"1329139863","filename":"file0"},{"photo_id":"1329139884","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329139893":["hashtag1","hashtag2"]},{"1329139887":["hashtag1","hashtag2"]},{"1329139884":["hashtag1","hashtag2"]},{"1329139878":["hashtag1","hashtag2"]},{"1329139863":["hashtag1","hashtag2"]},{"1329139872":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329139893, 1329139887, 1329139884, 1329139878, 1329139863, 1329139872)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.97391104698181 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 15 --only_old 1
2025-01-15 14:27:32.375117
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/41/image_14012025_08_41_14_9327.jpg', '/home/pi/Desktop/images/14012025/08/41/image_14012025_08_41_24_10359.jpg', '/home/pi/Desktop/images/14012025/08/41/image_14012025_08_41_35_10377.jpg', '/home/pi/Desktop/images/14012025/08/41/image_14012025_08_41_44_9448.jpg', '/home/pi/Desktop/images/14012025/08/41/image_14012025_08_41_55_10461.jpg', '/home/pi/Desktop/images/14012025/08/41/image_14012025_08_42_04_9363.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/41/image_14012025_08_41_14_9327.jpg
/home/pi/Desktop/images/14012025/08/41/image_14012025_08_41_24_10359.jpg
/home/pi/Desktop/images/14012025/08/41/image_14012025_08_41_35_10377.jpg
/home/pi/Desktop/images/14012025/08/41/image_14012025_08_41_44_9448.jpg
/home/pi/Desktop/images/14012025/08/41/image_14012025_08_41_55_10461.jpg
/home/pi/Desktop/images/14012025/08/41/image_14012025_08_42_04_9363.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329139940","1329139954","1329139930","1329139924","1329139962","1329139947"],"photo_ids_order":["1329139924","1329139930","1329139940","1329139947","1329139954","1329139962"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1f916ccbdd7aa27601581033b091f594.jpg","text":"TemporaryFile(/tmp/multipartBody3112054931627148606asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947714890,"filename":"image_14012025_08_41_35_10377.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1e0848b85dbb9d7efe3e4fc59bcaa9f0.jpg","text":"TemporaryFile(/tmp/multipartBody9174921539303317641asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947714890,"filename":"image_14012025_08_41_55_10461.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/48dafc86c56740fd9e17c735f5dca1e7.jpg","text":"TemporaryFile(/tmp/multipartBody6599297243038744488asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947714890,"filename":"image_14012025_08_41_24_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dd20f0bc0603bfdf00ca9301d7d34795.jpg","text":"TemporaryFile(/tmp/multipartBody1262645545760723704asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947714890,"filename":"image_14012025_08_41_14_9327.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0b3b97b8c145f6fd3062424f4e63a861.jpg","text":"TemporaryFile(/tmp/multipartBody5207570259688547384asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947714890,"filename":"image_14012025_08_42_04_9363.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/12b0193469c24fd59d0b6537a5be095f.jpg","text":"TemporaryFile(/tmp/multipartBody8917469624273692156asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947714890,"filename":"image_14012025_08_41_44_9448.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329139940","file1":"1329139930","file0":"1329139924","file4":"1329139954","file5":"1329139962","file3":"1329139947"},"map_files_photo_id_array":[{"photo_id":"1329139962","filename":"file5"},{"photo_id":"1329139940","filename":"file2"},{"photo_id":"1329139954","filename":"file4"},{"photo_id":"1329139930","filename":"file1"},{"photo_id":"1329139924","filename":"file0"},{"photo_id":"1329139947","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329139940":["hashtag1","hashtag2"]},{"1329139954":["hashtag1","hashtag2"]},{"1329139930":["hashtag1","hashtag2"]},{"1329139924":["hashtag1","hashtag2"]},{"1329139962":["hashtag1","hashtag2"]},{"1329139947":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329139940, 1329139954, 1329139930, 1329139924, 1329139962, 1329139947)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 48.77863144874573 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 15 --only_old 1
2025-01-15 14:28:32.707504
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/42/image_14012025_08_42_14_10375.jpg', '/home/pi/Desktop/images/14012025/08/42/image_14012025_08_42_25_10353.jpg', '/home/pi/Desktop/images/14012025/08/42/image_14012025_08_42_34_9391.jpg', '/home/pi/Desktop/images/14012025/08/42/image_14012025_08_42_45_10355.jpg', '/home/pi/Desktop/images/14012025/08/42/image_14012025_08_42_55_10352.jpg', '/home/pi/Desktop/images/14012025/08/43/image_14012025_08_43_15_10353.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/42/image_14012025_08_42_14_10375.jpg
/home/pi/Desktop/images/14012025/08/42/image_14012025_08_42_25_10353.jpg
/home/pi/Desktop/images/14012025/08/42/image_14012025_08_42_34_9391.jpg
/home/pi/Desktop/images/14012025/08/42/image_14012025_08_42_45_10355.jpg
/home/pi/Desktop/images/14012025/08/42/image_14012025_08_42_55_10352.jpg
/home/pi/Desktop/images/14012025/08/43/image_14012025_08_43_15_10353.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329140013","1329140022","1329140027","1329140032","1329139998","1329140002"],"photo_ids_order":["1329139998","1329140002","1329140013","1329140022","1329140027","1329140032"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d760106ea0e11b3053d04d5f3cff9557.jpg","text":"TemporaryFile(/tmp/multipartBody954661509203009967asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947775222,"filename":"image_14012025_08_42_34_9391.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/87024eea5365accdc2d49af6c04bc4b8.jpg","text":"TemporaryFile(/tmp/multipartBody1080640544613447736asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947775222,"filename":"image_14012025_08_42_45_10355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/14dd9fc54dc4ba34692d64f1d688f7a3.jpg","text":"TemporaryFile(/tmp/multipartBody1193905081734560290asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947775222,"filename":"image_14012025_08_42_55_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/33770f8afa26dd9868f510e4e2f4c7e5.jpg","text":"TemporaryFile(/tmp/multipartBody590660556912908095asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947775222,"filename":"image_14012025_08_43_15_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c53fd677f425eb285688531d6e13fc5a.jpg","text":"TemporaryFile(/tmp/multipartBody966123875325166301asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947775222,"filename":"image_14012025_08_42_14_10375.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bee5489122cac1444a840f6c0c0cf5f1.jpg","text":"TemporaryFile(/tmp/multipartBody4416013471414969300asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947775222,"filename":"image_14012025_08_42_25_10353.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329140013","file1":"1329140002","file0":"1329139998","file4":"1329140027","file5":"1329140032","file3":"1329140022"},"map_files_photo_id_array":[{"photo_id":"1329140032","filename":"file5"},{"photo_id":"1329140013","filename":"file2"},{"photo_id":"1329140027","filename":"file4"},{"photo_id":"1329140002","filename":"file1"},{"photo_id":"1329139998","filename":"file0"},{"photo_id":"1329140022","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329140013":["hashtag1","hashtag2"]},{"1329140022":["hashtag1","hashtag2"]},{"1329140027":["hashtag1","hashtag2"]},{"1329140032":["hashtag1","hashtag2"]},{"1329139998":["hashtag1","hashtag2"]},{"1329140002":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329140013, 1329140022, 1329140027, 1329140032, 1329139998, 1329140002)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.27615785598755 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 15 --only_old 1
2025-01-15 14:29:32.937788
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/43/image_14012025_08_43_24_9339.jpg', '/home/pi/Desktop/images/14012025/08/43/image_14012025_08_43_34_10373.jpg', '/home/pi/Desktop/images/14012025/08/43/image_14012025_08_43_45_10367.jpg', '/home/pi/Desktop/images/14012025/08/43/image_14012025_08_43_54_9342.jpg', '/home/pi/Desktop/images/14012025/08/43/image_14012025_08_44_04_10341.jpg', '/home/pi/Desktop/images/14012025/08/44/image_14012025_08_44_15_10410.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/43/image_14012025_08_43_24_9339.jpg
/home/pi/Desktop/images/14012025/08/43/image_14012025_08_43_34_10373.jpg
/home/pi/Desktop/images/14012025/08/43/image_14012025_08_43_45_10367.jpg
/home/pi/Desktop/images/14012025/08/43/image_14012025_08_43_54_9342.jpg
/home/pi/Desktop/images/14012025/08/43/image_14012025_08_44_04_10341.jpg
/home/pi/Desktop/images/14012025/08/44/image_14012025_08_44_15_10410.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329140085","1329140070","1329140090","1329140087","1329140081","1329140076"],"photo_ids_order":["1329140070","1329140076","1329140081","1329140085","1329140087","1329140090"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2f5c05566745c03dfad0d401e424e049.jpg","text":"TemporaryFile(/tmp/multipartBody3513380557900697988asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947835460,"filename":"image_14012025_08_43_54_9342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0d42537417f8ff4f7e342cc21fcc32ad.jpg","text":"TemporaryFile(/tmp/multipartBody3971127279540118746asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947835460,"filename":"image_14012025_08_43_24_9339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4b19547d4930d6e1d0159cc8bebae315.jpg","text":"TemporaryFile(/tmp/multipartBody573431364935846015asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947835460,"filename":"image_14012025_08_44_15_10410.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2e34e8b74d7d465efc179cc546fa315b.jpg","text":"TemporaryFile(/tmp/multipartBody7027235807566083014asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947835460,"filename":"image_14012025_08_44_04_10341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0229191cddec8abc174b51ec6ba45dd0.jpg","text":"TemporaryFile(/tmp/multipartBody2008682491434401927asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947835460,"filename":"image_14012025_08_43_45_10367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/68558250203615a20134bd062b8b435c.jpg","text":"TemporaryFile(/tmp/multipartBody3557374637834505167asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947835460,"filename":"image_14012025_08_43_34_10373.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329140081","file1":"1329140076","file0":"1329140070","file4":"1329140087","file5":"1329140090","file3":"1329140085"},"map_files_photo_id_array":[{"photo_id":"1329140090","filename":"file5"},{"photo_id":"1329140081","filename":"file2"},{"photo_id":"1329140087","filename":"file4"},{"photo_id":"1329140076","filename":"file1"},{"photo_id":"1329140070","filename":"file0"},{"photo_id":"1329140085","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329140085":["hashtag1","hashtag2"]},{"1329140070":["hashtag1","hashtag2"]},{"1329140090":["hashtag1","hashtag2"]},{"1329140087":["hashtag1","hashtag2"]},{"1329140081":["hashtag1","hashtag2"]},{"1329140076":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329140085, 1329140070, 1329140090, 1329140087, 1329140081, 1329140076)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.11621832847595 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 15 --only_old 1
2025-01-15 14:30:33.125994
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/44/image_14012025_08_44_24_9432.jpg', '/home/pi/Desktop/images/14012025/08/44/image_14012025_08_44_35_10347.jpg', '/home/pi/Desktop/images/14012025/08/44/image_14012025_08_44_45_10371.jpg', '/home/pi/Desktop/images/14012025/08/44/image_14012025_08_44_54_9351.jpg', '/home/pi/Desktop/images/14012025/08/44/image_14012025_08_45_05_10334.jpg', '/home/pi/Desktop/images/14012025/08/45/image_14012025_08_45_14_9339.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/44/image_14012025_08_44_24_9432.jpg
/home/pi/Desktop/images/14012025/08/44/image_14012025_08_44_35_10347.jpg
/home/pi/Desktop/images/14012025/08/44/image_14012025_08_44_45_10371.jpg
/home/pi/Desktop/images/14012025/08/44/image_14012025_08_44_54_9351.jpg
/home/pi/Desktop/images/14012025/08/44/image_14012025_08_45_05_10334.jpg
/home/pi/Desktop/images/14012025/08/45/image_14012025_08_45_14_9339.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329140844","1329140636","1329140531","1329140732","1329140388","1329140268"],"photo_ids_order":["1329140268","1329140388","1329140531","1329140636","1329140732","1329140844"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/15b1de09d4b31a66fa42a838cb2d6cf6.jpg","text":"TemporaryFile(/tmp/multipartBody349213512254023407asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947895649,"filename":"image_14012025_08_45_14_9339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/929dfdbe680f8e9b1fc585627759345f.jpg","text":"TemporaryFile(/tmp/multipartBody4361196984291357296asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947895649,"filename":"image_14012025_08_44_54_9351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9a7f0d3ac796b08c1086b03a1b59663f.jpg","text":"TemporaryFile(/tmp/multipartBody7782112357528191326asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947895649,"filename":"image_14012025_08_44_45_10371.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0bcb836b5a5d13cab7e44fbed9e0c555.jpg","text":"TemporaryFile(/tmp/multipartBody7011534584727732116asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947895649,"filename":"image_14012025_08_45_05_10334.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1f70f525d1d83b7ab7d61e3d39bc9ca6.jpg","text":"TemporaryFile(/tmp/multipartBody8793752244062918763asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947895649,"filename":"image_14012025_08_44_35_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/057c9f48168703879532a5c69b83ae24.jpg","text":"TemporaryFile(/tmp/multipartBody920185115665283130asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947895649,"filename":"image_14012025_08_44_24_9432.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329140531","file1":"1329140388","file0":"1329140268","file4":"1329140732","file5":"1329140844","file3":"1329140636"},"map_files_photo_id_array":[{"photo_id":"1329140844","filename":"file5"},{"photo_id":"1329140531","filename":"file2"},{"photo_id":"1329140732","filename":"file4"},{"photo_id":"1329140388","filename":"file1"},{"photo_id":"1329140268","filename":"file0"},{"photo_id":"1329140636","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329140844":["hashtag1","hashtag2"]},{"1329140636":["hashtag1","hashtag2"]},{"1329140531":["hashtag1","hashtag2"]},{"1329140732":["hashtag1","hashtag2"]},{"1329140388":["hashtag1","hashtag2"]},{"1329140268":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329140844, 1329140636, 1329140531, 1329140732, 1329140388, 1329140268)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 49.57594299316406 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 15 --only_old 1
2025-01-15 14:31:32.320121
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/45/image_14012025_08_45_24_10463.jpg', '/home/pi/Desktop/images/14012025/08/45/image_14012025_08_45_35_10353.jpg', '/home/pi/Desktop/images/14012025/08/45/image_14012025_08_45_44_9429.jpg', '/home/pi/Desktop/images/14012025/08/45/image_14012025_08_45_55_10322.jpg', '/home/pi/Desktop/images/14012025/08/45/image_14012025_08_46_05_10338.jpg', '/home/pi/Desktop/images/14012025/08/46/image_14012025_08_46_14_9412.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/45/image_14012025_08_45_24_10463.jpg
/home/pi/Desktop/images/14012025/08/45/image_14012025_08_45_35_10353.jpg
/home/pi/Desktop/images/14012025/08/45/image_14012025_08_45_44_9429.jpg
/home/pi/Desktop/images/14012025/08/45/image_14012025_08_45_55_10322.jpg
/home/pi/Desktop/images/14012025/08/45/image_14012025_08_46_05_10338.jpg
/home/pi/Desktop/images/14012025/08/46/image_14012025_08_46_14_9412.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329141158","1329141175","1329141154","1329141178","1329141166","1329141162"],"photo_ids_order":["1329141154","1329141158","1329141162","1329141166","1329141175","1329141178"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/116343e38c40ebb05f30cf4ec8a78541.jpg","text":"TemporaryFile(/tmp/multipartBody2772859308923403550asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947954842,"filename":"image_14012025_08_45_35_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/370481a3c83ce13158d57de1dc279e6e.jpg","text":"TemporaryFile(/tmp/multipartBody604089079857537569asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947954842,"filename":"image_14012025_08_46_05_10338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3ca63c6d8cc1a989fb8634905754c10e.jpg","text":"TemporaryFile(/tmp/multipartBody1331015184695081044asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947954842,"filename":"image_14012025_08_45_24_10463.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2de1d2c06016c64bc52ddeb464dec19e.jpg","text":"TemporaryFile(/tmp/multipartBody8987232203175959032asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947954842,"filename":"image_14012025_08_46_14_9412.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cbf90e1693830f4d89f1161abd66af3c.jpg","text":"TemporaryFile(/tmp/multipartBody5362007599071304311asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947954842,"filename":"image_14012025_08_45_55_10322.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d9058ecdff4a801398347c26352526bc.jpg","text":"TemporaryFile(/tmp/multipartBody5317107666298922576asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736947954842,"filename":"image_14012025_08_45_44_9429.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329141162","file1":"1329141158","file0":"1329141154","file4":"1329141175","file5":"1329141178","file3":"1329141166"},"map_files_photo_id_array":[{"photo_id":"1329141178","filename":"file5"},{"photo_id":"1329141162","filename":"file2"},{"photo_id":"1329141175","filename":"file4"},{"photo_id":"1329141158","filename":"file1"},{"photo_id":"1329141154","filename":"file0"},{"photo_id":"1329141166","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329141158":["hashtag1","hashtag2"]},{"1329141175":["hashtag1","hashtag2"]},{"1329141154":["hashtag1","hashtag2"]},{"1329141178":["hashtag1","hashtag2"]},{"1329141166":["hashtag1","hashtag2"]},{"1329141162":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329141158, 1329141175, 1329141154, 1329141178, 1329141166, 1329141162)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.73116683959961 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 15 --only_old 1
2025-01-15 14:32:32.718031
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/46/image_14012025_08_46_25_10352.jpg', '/home/pi/Desktop/images/14012025/08/46/image_14012025_08_46_34_9333.jpg', '/home/pi/Desktop/images/14012025/08/46/image_14012025_08_47_04_9343.jpg', '/home/pi/Desktop/images/14012025/08/47/image_14012025_08_47_14_10352.jpg', '/home/pi/Desktop/images/14012025/08/47/image_14012025_08_47_25_10357.jpg', '/home/pi/Desktop/images/14012025/08/47/image_14012025_08_47_45_10422.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/46/image_14012025_08_46_25_10352.jpg
/home/pi/Desktop/images/14012025/08/46/image_14012025_08_46_34_9333.jpg
/home/pi/Desktop/images/14012025/08/46/image_14012025_08_47_04_9343.jpg
/home/pi/Desktop/images/14012025/08/47/image_14012025_08_47_14_10352.jpg
/home/pi/Desktop/images/14012025/08/47/image_14012025_08_47_25_10357.jpg
/home/pi/Desktop/images/14012025/08/47/image_14012025_08_47_45_10422.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329141593","1329141467","1329141533","1329141461","1329141449","1329141456"],"photo_ids_order":["1329141449","1329141456","1329141461","1329141467","1329141533","1329141593"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7180d277e00f6305275169604c4c870d.jpg","text":"TemporaryFile(/tmp/multipartBody9070231330851150335asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948015231,"filename":"image_14012025_08_47_45_10422.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c26192ad83fbc057884ff44ea9ad556b.jpg","text":"TemporaryFile(/tmp/multipartBody3826091386788345526asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948015231,"filename":"image_14012025_08_47_14_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/31f65ff8b9e3644b1e6dabfb88391102.jpg","text":"TemporaryFile(/tmp/multipartBody2601063051252674211asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948015231,"filename":"image_14012025_08_47_25_10357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fde38c53cc51556ecf4bea6d47a11b91.jpg","text":"TemporaryFile(/tmp/multipartBody2489691851965764795asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948015231,"filename":"image_14012025_08_47_04_9343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c4a11d963c8caa34757689215822b904.jpg","text":"TemporaryFile(/tmp/multipartBody8651678121183054490asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948015231,"filename":"image_14012025_08_46_25_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9da15705b98fa404fb0a3cf70b0a5290.jpg","text":"TemporaryFile(/tmp/multipartBody3486512049183427029asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948015231,"filename":"image_14012025_08_46_34_9333.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329141461","file1":"1329141456","file0":"1329141449","file4":"1329141533","file5":"1329141593","file3":"1329141467"},"map_files_photo_id_array":[{"photo_id":"1329141593","filename":"file5"},{"photo_id":"1329141461","filename":"file2"},{"photo_id":"1329141533","filename":"file4"},{"photo_id":"1329141456","filename":"file1"},{"photo_id":"1329141449","filename":"file0"},{"photo_id":"1329141467","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329141593":["hashtag1","hashtag2"]},{"1329141467":["hashtag1","hashtag2"]},{"1329141533":["hashtag1","hashtag2"]},{"1329141461":["hashtag1","hashtag2"]},{"1329141449":["hashtag1","hashtag2"]},{"1329141456":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329141593, 1329141467, 1329141533, 1329141461, 1329141449, 1329141456)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.635807037353516 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 15 --only_old 1
2025-01-15 14:33:32.821552
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/47/image_14012025_08_47_59_14008.jpg', '/home/pi/Desktop/images/14012025/08/48/image_14012025_08_48_05_6317.jpg', '/home/pi/Desktop/images/14012025/08/48/image_14012025_08_48_15_9771.jpg', '/home/pi/Desktop/images/14012025/08/48/image_14012025_08_48_45_30489.jpg', '/home/pi/Desktop/images/14012025/08/48/image_14012025_08_48_46_1355.jpg', '/home/pi/Desktop/images/14012025/08/48/image_14012025_08_48_48_1276.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/47/image_14012025_08_47_59_14008.jpg
/home/pi/Desktop/images/14012025/08/48/image_14012025_08_48_05_6317.jpg
/home/pi/Desktop/images/14012025/08/48/image_14012025_08_48_15_9771.jpg
/home/pi/Desktop/images/14012025/08/48/image_14012025_08_48_45_30489.jpg
/home/pi/Desktop/images/14012025/08/48/image_14012025_08_48_46_1355.jpg
/home/pi/Desktop/images/14012025/08/48/image_14012025_08_48_48_1276.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 2.142019271850586 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
2025-01-15 14:33:42.771392
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/07/image_15012025_00_07_17_9331.jpg', '/home/pi/Desktop/images/15012025/00/07/image_15012025_00_07_47_10463.jpg', '/home/pi/Desktop/images/15012025/00/07/image_15012025_00_07_57_10358.jpg', '/home/pi/Desktop/images/15012025/00/08/image_15012025_00_08_27_9344.jpg', '/home/pi/Desktop/images/15012025/00/08/image_15012025_00_08_37_10448.jpg', '/home/pi/Desktop/images/15012025/00/08/image_15012025_00_08_47_10368.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/07/image_15012025_00_07_17_9331.jpg
/home/pi/Desktop/images/15012025/00/07/image_15012025_00_07_47_10463.jpg
/home/pi/Desktop/images/15012025/00/07/image_15012025_00_07_57_10358.jpg
/home/pi/Desktop/images/15012025/00/08/image_15012025_00_08_27_9344.jpg
/home/pi/Desktop/images/15012025/00/08/image_15012025_00_08_37_10448.jpg
/home/pi/Desktop/images/15012025/00/08/image_15012025_00_08_47_10368.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329141656","1329141664","1329141826","1329141660","1329141648","1329141735"],"photo_ids_order":["1329141648","1329141656","1329141660","1329141664","1329141735","1329141826"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ef3b3f554a4d74822495ea2b80d81277.jpg","text":"TemporaryFile(/tmp/multipartBody8077919565524469424asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948083754,"filename":"image_15012025_00_07_47_10463.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/46878fad0382bffae7fe7f4e01f269c7.jpg","text":"TemporaryFile(/tmp/multipartBody1537686300521947577asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948083754,"filename":"image_15012025_00_08_27_9344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/67b35aab109b635a3e37593e36ca3a82.jpg","text":"TemporaryFile(/tmp/multipartBody302553047814945841asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948083754,"filename":"image_15012025_00_08_47_10368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/208098517e076777f051258e27a10e4d.jpg","text":"TemporaryFile(/tmp/multipartBody8965673169652009581asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948083754,"filename":"image_15012025_00_07_57_10358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8b29659ec2d740931663dbf985c9c7b6.jpg","text":"TemporaryFile(/tmp/multipartBody5106375547381340529asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948083754,"filename":"image_15012025_00_07_17_9331.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a7133911667fe7695531356734607655.jpg","text":"TemporaryFile(/tmp/multipartBody2236231973953880197asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948083754,"filename":"image_15012025_00_08_37_10448.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329141660","file1":"1329141656","file0":"1329141648","file4":"1329141735","file5":"1329141826","file3":"1329141664"},"map_files_photo_id_array":[{"photo_id":"1329141826","filename":"file5"},{"photo_id":"1329141660","filename":"file2"},{"photo_id":"1329141735","filename":"file4"},{"photo_id":"1329141656","filename":"file1"},{"photo_id":"1329141648","filename":"file0"},{"photo_id":"1329141664","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329141656":["hashtag1","hashtag2"]},{"1329141664":["hashtag1","hashtag2"]},{"1329141826":["hashtag1","hashtag2"]},{"1329141660":["hashtag1","hashtag2"]},{"1329141648":["hashtag1","hashtag2"]},{"1329141735":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329141656, 1329141664, 1329141826, 1329141660, 1329141648, 1329141735)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.78413009643555 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 15 --only_old 1
2025-01-15 14:34:33.130114
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/47/image_14012025_08_47_59_14008.jpg', '/home/pi/Desktop/images/14012025/08/48/image_14012025_08_48_05_6317.jpg', '/home/pi/Desktop/images/14012025/08/48/image_14012025_08_48_15_9771.jpg', '/home/pi/Desktop/images/14012025/08/48/image_14012025_08_48_45_30489.jpg', '/home/pi/Desktop/images/14012025/08/48/image_14012025_08_48_46_1355.jpg', '/home/pi/Desktop/images/14012025/08/48/image_14012025_08_48_48_1276.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/47/image_14012025_08_47_59_14008.jpg
/home/pi/Desktop/images/14012025/08/48/image_14012025_08_48_05_6317.jpg
/home/pi/Desktop/images/14012025/08/48/image_14012025_08_48_15_9771.jpg
/home/pi/Desktop/images/14012025/08/48/image_14012025_08_48_45_30489.jpg
/home/pi/Desktop/images/14012025/08/48/image_14012025_08_48_46_1355.jpg
/home/pi/Desktop/images/14012025/08/48/image_14012025_08_48_48_1276.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329141985","1329141970","1329141964","1329141981","1329141993","1329141987"],"photo_ids_order":["1329141964","1329141970","1329141981","1329141985","1329141987","1329141993"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/415cc8b433a2d3e97e36374808c9d92e.jpg","text":"TemporaryFile(/tmp/multipartBody8336697483871982541asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948135567,"filename":"image_14012025_08_48_45_30489.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/702dc351b38b1c0970942b8b0e2c3be8.jpg","text":"TemporaryFile(/tmp/multipartBody5929118711938087505asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948135567,"filename":"image_14012025_08_48_05_6317.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7f7df5322ee886d9cbc261487c6921ca.jpg","text":"TemporaryFile(/tmp/multipartBody6673982556106664244asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948135567,"filename":"image_14012025_08_47_59_14008.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/779e1ed289ce5c5535406ee0e06bfdfd.jpg","text":"TemporaryFile(/tmp/multipartBody3745982364869925867asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948135567,"filename":"image_14012025_08_48_15_9771.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a42ad34f5e745941cd6474a53fe3bb02.jpg","text":"TemporaryFile(/tmp/multipartBody1283143733584181081asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948135567,"filename":"image_14012025_08_48_48_1276.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e831685b979ccc18f3804555b6a6576a.jpg","text":"TemporaryFile(/tmp/multipartBody6641657314022039737asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948135567,"filename":"image_14012025_08_48_46_1355.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329141981","file1":"1329141970","file0":"1329141964","file4":"1329141987","file5":"1329141993","file3":"1329141985"},"map_files_photo_id_array":[{"photo_id":"1329141993","filename":"file5"},{"photo_id":"1329141981","filename":"file2"},{"photo_id":"1329141987","filename":"file4"},{"photo_id":"1329141970","filename":"file1"},{"photo_id":"1329141964","filename":"file0"},{"photo_id":"1329141985","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329141985":["hashtag1","hashtag2"]},{"1329141970":["hashtag1","hashtag2"]},{"1329141964":["hashtag1","hashtag2"]},{"1329141981":["hashtag1","hashtag2"]},{"1329141993":["hashtag1","hashtag2"]},{"1329141987":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329141985, 1329141970, 1329141964, 1329141981, 1329141993, 1329141987)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.691731691360474 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 15 --only_old 1
2025-01-15 14:35:32.417687
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/48/image_14012025_08_48_54_6511.jpg', '/home/pi/Desktop/images/14012025/08/48/image_14012025_08_49_05_10353.jpg', '/home/pi/Desktop/images/14012025/08/49/image_14012025_08_49_15_10323.jpg', '/home/pi/Desktop/images/14012025/08/49/image_14012025_08_49_24_9509.jpg', '/home/pi/Desktop/images/14012025/08/49/image_14012025_08_49_35_10410.jpg', '/home/pi/Desktop/images/14012025/08/49/image_14012025_08_49_55_10334.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/48/image_14012025_08_48_54_6511.jpg
/home/pi/Desktop/images/14012025/08/48/image_14012025_08_49_05_10353.jpg
/home/pi/Desktop/images/14012025/08/49/image_14012025_08_49_15_10323.jpg
/home/pi/Desktop/images/14012025/08/49/image_14012025_08_49_24_9509.jpg
/home/pi/Desktop/images/14012025/08/49/image_14012025_08_49_35_10410.jpg
/home/pi/Desktop/images/14012025/08/49/image_14012025_08_49_55_10334.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329142910","1329142495","1329142660","1329142915","1329142900","1329142905"],"photo_ids_order":["1329142495","1329142660","1329142900","1329142905","1329142910","1329142915"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/86cddcb686ef7d8b33839c3c59f4bbea.jpg","text":"TemporaryFile(/tmp/multipartBody9114948817415286803asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948194957,"filename":"image_14012025_08_49_35_10410.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dc9b8b9452c851d79c713c386ea43de4.jpg","text":"TemporaryFile(/tmp/multipartBody8135313299340369818asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948194957,"filename":"image_14012025_08_48_54_6511.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b410eb5270fcdb6dd65722aa9be2138d.jpg","text":"TemporaryFile(/tmp/multipartBody3619308897109094392asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948194957,"filename":"image_14012025_08_49_05_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d87412f653165706eb9a14f190d5f009.jpg","text":"TemporaryFile(/tmp/multipartBody1877724154211279762asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948194957,"filename":"image_14012025_08_49_55_10334.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/87fe0e5e927f70134035b7e75694aa35.jpg","text":"TemporaryFile(/tmp/multipartBody7905007205664379460asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948194957,"filename":"image_14012025_08_49_15_10323.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3bb87276cf7ec8b51629ba398baef4f7.jpg","text":"TemporaryFile(/tmp/multipartBody4378203476849426357asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948194957,"filename":"image_14012025_08_49_24_9509.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329142900","file1":"1329142660","file0":"1329142495","file4":"1329142910","file5":"1329142915","file3":"1329142905"},"map_files_photo_id_array":[{"photo_id":"1329142915","filename":"file5"},{"photo_id":"1329142900","filename":"file2"},{"photo_id":"1329142910","filename":"file4"},{"photo_id":"1329142660","filename":"file1"},{"photo_id":"1329142495","filename":"file0"},{"photo_id":"1329142905","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329142910":["hashtag1","hashtag2"]},{"1329142495":["hashtag1","hashtag2"]},{"1329142660":["hashtag1","hashtag2"]},{"1329142915":["hashtag1","hashtag2"]},{"1329142900":["hashtag1","hashtag2"]},{"1329142905":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329142910, 1329142495, 1329142660, 1329142915, 1329142900, 1329142905)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.562970876693726 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 15 --only_old 1
2025-01-15 14:36:32.749805
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/49/image_14012025_08_50_04_9426.jpg', '/home/pi/Desktop/images/14012025/08/50/image_14012025_08_50_14_10329.jpg', '/home/pi/Desktop/images/14012025/08/50/image_14012025_08_50_25_10329.jpg', '/home/pi/Desktop/images/14012025/08/50/image_14012025_08_50_34_9424.jpg', '/home/pi/Desktop/images/14012025/08/50/image_14012025_08_50_45_10356.jpg', '/home/pi/Desktop/images/14012025/08/50/image_14012025_08_50_55_10363.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/49/image_14012025_08_50_04_9426.jpg
/home/pi/Desktop/images/14012025/08/50/image_14012025_08_50_14_10329.jpg
/home/pi/Desktop/images/14012025/08/50/image_14012025_08_50_25_10329.jpg
/home/pi/Desktop/images/14012025/08/50/image_14012025_08_50_34_9424.jpg
/home/pi/Desktop/images/14012025/08/50/image_14012025_08_50_45_10356.jpg
/home/pi/Desktop/images/14012025/08/50/image_14012025_08_50_55_10363.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329143161","1329143041","1329142951","1329142945","1329142939","1329142934"],"photo_ids_order":["1329142934","1329142939","1329142945","1329142951","1329143041","1329143161"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/04edd02c140baa93078afa30f1c43bc6.jpg","text":"TemporaryFile(/tmp/multipartBody1114616743546306719asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948255262,"filename":"image_14012025_08_50_55_10363.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7431259f7e7b5242aa279a26de7ce197.jpg","text":"TemporaryFile(/tmp/multipartBody4138228512409937866asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948255262,"filename":"image_14012025_08_50_45_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6bc375c3ed8e33c0ab422492e998d942.jpg","text":"TemporaryFile(/tmp/multipartBody3368841958065588481asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948255262,"filename":"image_14012025_08_50_34_9424.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ef8090051e55b0a7b150a30fa639f946.jpg","text":"TemporaryFile(/tmp/multipartBody7929458663208002460asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948255262,"filename":"image_14012025_08_50_25_10329.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/759337a9812438644f2f287ae4393cd1.jpg","text":"TemporaryFile(/tmp/multipartBody4249345070545204138asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948255262,"filename":"image_14012025_08_50_14_10329.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6957d0d42fd3578210f095f02324419b.jpg","text":"TemporaryFile(/tmp/multipartBody342075989987528072asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948255262,"filename":"image_14012025_08_50_04_9426.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329142945","file1":"1329142939","file0":"1329142934","file4":"1329143041","file5":"1329143161","file3":"1329142951"},"map_files_photo_id_array":[{"photo_id":"1329143161","filename":"file5"},{"photo_id":"1329142945","filename":"file2"},{"photo_id":"1329143041","filename":"file4"},{"photo_id":"1329142939","filename":"file1"},{"photo_id":"1329142934","filename":"file0"},{"photo_id":"1329142951","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329143161":["hashtag1","hashtag2"]},{"1329143041":["hashtag1","hashtag2"]},{"1329142951":["hashtag1","hashtag2"]},{"1329142945":["hashtag1","hashtag2"]},{"1329142939":["hashtag1","hashtag2"]},{"1329142934":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329143161, 1329143041, 1329142951, 1329142945, 1329142939, 1329142934)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.758607387542725 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 15 --only_old 1
2025-01-15 14:37:32.904392
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/50/image_14012025_08_51_04_9464.jpg', '/home/pi/Desktop/images/14012025/08/51/image_14012025_08_51_15_10342.jpg', '/home/pi/Desktop/images/14012025/08/51/image_14012025_08_51_24_9353.jpg', '/home/pi/Desktop/images/14012025/08/51/image_14012025_08_51_34_10336.jpg', '/home/pi/Desktop/images/14012025/08/51/image_14012025_08_51_45_10349.jpg', '/home/pi/Desktop/images/14012025/08/51/image_14012025_08_51_54_9333.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/50/image_14012025_08_51_04_9464.jpg
/home/pi/Desktop/images/14012025/08/51/image_14012025_08_51_15_10342.jpg
/home/pi/Desktop/images/14012025/08/51/image_14012025_08_51_24_9353.jpg
/home/pi/Desktop/images/14012025/08/51/image_14012025_08_51_34_10336.jpg
/home/pi/Desktop/images/14012025/08/51/image_14012025_08_51_45_10349.jpg
/home/pi/Desktop/images/14012025/08/51/image_14012025_08_51_54_9333.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329143323","1329143347","1329143340","1329143334","1329143328","1329143343"],"photo_ids_order":["1329143323","1329143328","1329143334","1329143340","1329143343","1329143347"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/67fcc4dc114ce35c821036bef1177ccc.jpg","text":"TemporaryFile(/tmp/multipartBody2726576603336521777asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948315481,"filename":"image_14012025_08_51_04_9464.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b60c99208c7943e9f93fbe86f2a25abd.jpg","text":"TemporaryFile(/tmp/multipartBody2608727806943954677asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948315481,"filename":"image_14012025_08_51_54_9333.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/983e59b99506ed042b5dcbbf573c3ca0.jpg","text":"TemporaryFile(/tmp/multipartBody7848838128398097126asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948315481,"filename":"image_14012025_08_51_34_10336.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9c971456b5ce176a1cdbd948fb180ae2.jpg","text":"TemporaryFile(/tmp/multipartBody7975601637179961839asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948315481,"filename":"image_14012025_08_51_24_9353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e43562fa73ad3a2a49577e54f80e207e.jpg","text":"TemporaryFile(/tmp/multipartBody618409030147876434asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948315481,"filename":"image_14012025_08_51_15_10342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4f3db75b3195b04a6075643c441a4aab.jpg","text":"TemporaryFile(/tmp/multipartBody7097749105734123788asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948315481,"filename":"image_14012025_08_51_45_10349.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329143334","file1":"1329143328","file0":"1329143323","file4":"1329143343","file5":"1329143347","file3":"1329143340"},"map_files_photo_id_array":[{"photo_id":"1329143347","filename":"file5"},{"photo_id":"1329143334","filename":"file2"},{"photo_id":"1329143343","filename":"file4"},{"photo_id":"1329143328","filename":"file1"},{"photo_id":"1329143323","filename":"file0"},{"photo_id":"1329143340","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329143323":["hashtag1","hashtag2"]},{"1329143347":["hashtag1","hashtag2"]},{"1329143340":["hashtag1","hashtag2"]},{"1329143334":["hashtag1","hashtag2"]},{"1329143328":["hashtag1","hashtag2"]},{"1329143343":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329143323, 1329143347, 1329143340, 1329143334, 1329143328, 1329143343)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.37272500991821 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 15 --only_old 1
2025-01-15 14:38:32.319999
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/51/image_14012025_08_52_04_10393.jpg', '/home/pi/Desktop/images/14012025/08/52/image_14012025_08_52_15_10356.jpg', '/home/pi/Desktop/images/14012025/08/52/image_14012025_08_52_24_9427.jpg', '/home/pi/Desktop/images/14012025/08/52/image_14012025_08_52_45_10331.jpg', '/home/pi/Desktop/images/14012025/08/52/image_14012025_08_52_54_9468.jpg', '/home/pi/Desktop/images/14012025/08/52/image_14012025_08_53_05_10344.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/51/image_14012025_08_52_04_10393.jpg
/home/pi/Desktop/images/14012025/08/52/image_14012025_08_52_15_10356.jpg
/home/pi/Desktop/images/14012025/08/52/image_14012025_08_52_24_9427.jpg
/home/pi/Desktop/images/14012025/08/52/image_14012025_08_52_45_10331.jpg
/home/pi/Desktop/images/14012025/08/52/image_14012025_08_52_54_9468.jpg
/home/pi/Desktop/images/14012025/08/52/image_14012025_08_53_05_10344.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329143434","1329143419","1329143445","1329143460","1329143427","1329143474"],"photo_ids_order":["1329143419","1329143427","1329143434","1329143445","1329143460","1329143474"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/302d50f759474b0e38d28cb54822b6b5.jpg","text":"TemporaryFile(/tmp/multipartBody7701191183738482944asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948374840,"filename":"image_14012025_08_52_24_9427.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dcbe522eed9553180fb2fcffd0cb9c23.jpg","text":"TemporaryFile(/tmp/multipartBody5523717370020646389asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948374840,"filename":"image_14012025_08_52_04_10393.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/abb3e94fe5045e5ab41f9206825fa988.jpg","text":"TemporaryFile(/tmp/multipartBody5444157184199406080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948374840,"filename":"image_14012025_08_52_45_10331.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a5dd6253ea9ad5e634a72e4f6f8fba1a.jpg","text":"TemporaryFile(/tmp/multipartBody3860109756554864360asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948374840,"filename":"image_14012025_08_52_54_9468.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/00c5374460e69b74e4d4feedbab966df.jpg","text":"TemporaryFile(/tmp/multipartBody1647352196652393745asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948374840,"filename":"image_14012025_08_52_15_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/abebdb334c69fb1a01e59fac71179abd.jpg","text":"TemporaryFile(/tmp/multipartBody3900044229600644197asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948374840,"filename":"image_14012025_08_53_05_10344.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329143434","file1":"1329143427","file0":"1329143419","file4":"1329143460","file5":"1329143474","file3":"1329143445"},"map_files_photo_id_array":[{"photo_id":"1329143474","filename":"file5"},{"photo_id":"1329143434","filename":"file2"},{"photo_id":"1329143460","filename":"file4"},{"photo_id":"1329143427","filename":"file1"},{"photo_id":"1329143419","filename":"file0"},{"photo_id":"1329143445","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329143434":["hashtag1","hashtag2"]},{"1329143419":["hashtag1","hashtag2"]},{"1329143445":["hashtag1","hashtag2"]},{"1329143460":["hashtag1","hashtag2"]},{"1329143427":["hashtag1","hashtag2"]},{"1329143474":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329143434, 1329143419, 1329143445, 1329143460, 1329143427, 1329143474)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.26884365081787 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 15 --only_old 1
2025-01-15 14:39:32.651265
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/53/image_14012025_08_53_14_9460.jpg', '/home/pi/Desktop/images/14012025/08/53/image_14012025_08_53_25_10352.jpg', '/home/pi/Desktop/images/14012025/08/53/image_14012025_08_53_35_10334.jpg', '/home/pi/Desktop/images/14012025/08/53/image_14012025_08_53_44_9383.jpg', '/home/pi/Desktop/images/14012025/08/53/image_14012025_08_53_55_10359.jpg', '/home/pi/Desktop/images/14012025/08/53/image_14012025_08_54_04_9357.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/53/image_14012025_08_53_14_9460.jpg
/home/pi/Desktop/images/14012025/08/53/image_14012025_08_53_25_10352.jpg
/home/pi/Desktop/images/14012025/08/53/image_14012025_08_53_35_10334.jpg
/home/pi/Desktop/images/14012025/08/53/image_14012025_08_53_44_9383.jpg
/home/pi/Desktop/images/14012025/08/53/image_14012025_08_53_55_10359.jpg
/home/pi/Desktop/images/14012025/08/53/image_14012025_08_54_04_9357.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329143566","1329143529","1329143573","1329143576","1329143525","1329143519"],"photo_ids_order":["1329143519","1329143525","1329143529","1329143566","1329143573","1329143576"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/298eed654d707fc62fbaabcfbcdf7dcc.jpg","text":"TemporaryFile(/tmp/multipartBody5144367676532132709asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948435177,"filename":"image_14012025_08_53_44_9383.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/24db1e73e10417616f580b072b000b15.jpg","text":"TemporaryFile(/tmp/multipartBody1611577734646108240asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948435177,"filename":"image_14012025_08_53_35_10334.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b9599123d8e78a11cab83007c3cec1bc.jpg","text":"TemporaryFile(/tmp/multipartBody5787202873714036518asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948435177,"filename":"image_14012025_08_53_55_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d97affd81cb163e26b4ef49cb9979872.jpg","text":"TemporaryFile(/tmp/multipartBody3286010140334935736asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948435177,"filename":"image_14012025_08_54_04_9357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4e73a18cee26c81494466add5c26c80d.jpg","text":"TemporaryFile(/tmp/multipartBody5909602856727817135asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948435177,"filename":"image_14012025_08_53_25_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d3511d267cde2f3d4fbc7e3637afd343.jpg","text":"TemporaryFile(/tmp/multipartBody8236758359226255001asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948435177,"filename":"image_14012025_08_53_14_9460.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329143529","file1":"1329143525","file0":"1329143519","file4":"1329143573","file5":"1329143576","file3":"1329143566"},"map_files_photo_id_array":[{"photo_id":"1329143576","filename":"file5"},{"photo_id":"1329143529","filename":"file2"},{"photo_id":"1329143573","filename":"file4"},{"photo_id":"1329143525","filename":"file1"},{"photo_id":"1329143519","filename":"file0"},{"photo_id":"1329143566","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329143566":["hashtag1","hashtag2"]},{"1329143529":["hashtag1","hashtag2"]},{"1329143573":["hashtag1","hashtag2"]},{"1329143576":["hashtag1","hashtag2"]},{"1329143525":["hashtag1","hashtag2"]},{"1329143519":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329143566, 1329143529, 1329143573, 1329143576, 1329143525, 1329143519)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.48306226730347 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 15 --only_old 1
2025-01-15 14:40:32.771630
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/54/image_14012025_08_54_14_10368.jpg', '/home/pi/Desktop/images/14012025/08/54/image_14012025_08_54_25_10349.jpg', '/home/pi/Desktop/images/14012025/08/54/image_14012025_08_54_34_9327.jpg', '/home/pi/Desktop/images/14012025/08/54/image_14012025_08_54_44_10416.jpg', '/home/pi/Desktop/images/14012025/08/54/image_14012025_08_54_55_10364.jpg', '/home/pi/Desktop/images/14012025/08/54/image_14012025_08_55_04_9495.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/54/image_14012025_08_54_14_10368.jpg
/home/pi/Desktop/images/14012025/08/54/image_14012025_08_54_25_10349.jpg
/home/pi/Desktop/images/14012025/08/54/image_14012025_08_54_34_9327.jpg
/home/pi/Desktop/images/14012025/08/54/image_14012025_08_54_44_10416.jpg
/home/pi/Desktop/images/14012025/08/54/image_14012025_08_54_55_10364.jpg
/home/pi/Desktop/images/14012025/08/54/image_14012025_08_55_04_9495.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329144355","1329144250","1329144031","1329144134","1329143945","1329144358"],"photo_ids_order":["1329143945","1329144031","1329144134","1329144250","1329144355","1329144358"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cd800355fb23a93f624dd72f02d1a293.jpg","text":"TemporaryFile(/tmp/multipartBody5989217672718894376asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948495311,"filename":"image_14012025_08_54_55_10364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e5d22d55df2003aef59b7df5bb946afb.jpg","text":"TemporaryFile(/tmp/multipartBody2110469705821319001asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948495311,"filename":"image_14012025_08_54_44_10416.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2adeb71b29bb49addf94d6837886d207.jpg","text":"TemporaryFile(/tmp/multipartBody8655962014160660054asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948495311,"filename":"image_14012025_08_54_25_10349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5331412e796285e73851bfeebcf974b3.jpg","text":"TemporaryFile(/tmp/multipartBody6890285344388005502asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948495311,"filename":"image_14012025_08_54_34_9327.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/740d2fdb7a1e8217852c88a1b56e1234.jpg","text":"TemporaryFile(/tmp/multipartBody8086462286396622288asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948495311,"filename":"image_14012025_08_54_14_10368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7476d169246e7f0c31c5ad29f8fa488b.jpg","text":"TemporaryFile(/tmp/multipartBody8841100683175005851asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948495311,"filename":"image_14012025_08_55_04_9495.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329144134","file1":"1329144031","file0":"1329143945","file4":"1329144355","file5":"1329144358","file3":"1329144250"},"map_files_photo_id_array":[{"photo_id":"1329144358","filename":"file5"},{"photo_id":"1329144134","filename":"file2"},{"photo_id":"1329144355","filename":"file4"},{"photo_id":"1329144031","filename":"file1"},{"photo_id":"1329143945","filename":"file0"},{"photo_id":"1329144250","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329144355":["hashtag1","hashtag2"]},{"1329144250":["hashtag1","hashtag2"]},{"1329144031":["hashtag1","hashtag2"]},{"1329144134":["hashtag1","hashtag2"]},{"1329143945":["hashtag1","hashtag2"]},{"1329144358":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329144355, 1329144250, 1329144031, 1329144134, 1329143945, 1329144358)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.36326050758362 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 15 --only_old 1
2025-01-15 14:41:32.964283
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/55/image_14012025_08_55_15_10367.jpg', '/home/pi/Desktop/images/14012025/08/55/image_14012025_08_55_24_9344.jpg', '/home/pi/Desktop/images/14012025/08/55/image_14012025_08_55_34_10380.jpg', '/home/pi/Desktop/images/14012025/08/55/image_14012025_08_55_45_10359.jpg', '/home/pi/Desktop/images/14012025/08/55/image_14012025_08_55_54_9400.jpg', '/home/pi/Desktop/images/14012025/08/55/image_14012025_08_56_05_10414.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/55/image_14012025_08_55_15_10367.jpg
/home/pi/Desktop/images/14012025/08/55/image_14012025_08_55_24_9344.jpg
/home/pi/Desktop/images/14012025/08/55/image_14012025_08_55_34_10380.jpg
/home/pi/Desktop/images/14012025/08/55/image_14012025_08_55_45_10359.jpg
/home/pi/Desktop/images/14012025/08/55/image_14012025_08_55_54_9400.jpg
/home/pi/Desktop/images/14012025/08/55/image_14012025_08_56_05_10414.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329144616","1329144411","1329144405","1329144398","1329144389","1329144484"],"photo_ids_order":["1329144389","1329144398","1329144405","1329144411","1329144484","1329144616"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5323f3bc79657cf3a1b8a220f4c3876f.jpg","text":"TemporaryFile(/tmp/multipartBody9210421168479336546asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948555499,"filename":"image_14012025_08_56_05_10414.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/61735fdcbb8412bca80ea028afa1934a.jpg","text":"TemporaryFile(/tmp/multipartBody4473330097508099173asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948555499,"filename":"image_14012025_08_55_45_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/53089f9f0693a714d2357fb6b6e1b0d9.jpg","text":"TemporaryFile(/tmp/multipartBody7968915903982695191asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948555499,"filename":"image_14012025_08_55_34_10380.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a00eadf7bccb9cfe49c0e600b5be2179.jpg","text":"TemporaryFile(/tmp/multipartBody5252472198941196013asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948555499,"filename":"image_14012025_08_55_24_9344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/52ed1686af244857bc433fae504677b0.jpg","text":"TemporaryFile(/tmp/multipartBody7603195178756588822asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948555499,"filename":"image_14012025_08_55_15_10367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7dc6bc6c6607d5b6736e734e24faae40.jpg","text":"TemporaryFile(/tmp/multipartBody2555222040876701197asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948555499,"filename":"image_14012025_08_55_54_9400.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329144405","file1":"1329144398","file0":"1329144389","file4":"1329144484","file5":"1329144616","file3":"1329144411"},"map_files_photo_id_array":[{"photo_id":"1329144616","filename":"file5"},{"photo_id":"1329144405","filename":"file2"},{"photo_id":"1329144484","filename":"file4"},{"photo_id":"1329144398","filename":"file1"},{"photo_id":"1329144389","filename":"file0"},{"photo_id":"1329144411","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329144616":["hashtag1","hashtag2"]},{"1329144411":["hashtag1","hashtag2"]},{"1329144405":["hashtag1","hashtag2"]},{"1329144398":["hashtag1","hashtag2"]},{"1329144389":["hashtag1","hashtag2"]},{"1329144484":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329144616, 1329144411, 1329144405, 1329144398, 1329144389, 1329144484)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.704949617385864 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 15 --only_old 1
2025-01-15 14:42:32.212639
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/56/image_14012025_08_56_15_10366.jpg', '/home/pi/Desktop/images/14012025/08/56/image_14012025_08_56_24_9474.jpg', '/home/pi/Desktop/images/14012025/08/56/image_14012025_08_56_35_10353.jpg', '/home/pi/Desktop/images/14012025/08/56/image_14012025_08_56_44_9436.jpg', '/home/pi/Desktop/images/14012025/08/56/image_14012025_08_56_55_10370.jpg', '/home/pi/Desktop/images/14012025/08/56/image_14012025_08_57_05_10351.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/56/image_14012025_08_56_15_10366.jpg
/home/pi/Desktop/images/14012025/08/56/image_14012025_08_56_24_9474.jpg
/home/pi/Desktop/images/14012025/08/56/image_14012025_08_56_35_10353.jpg
/home/pi/Desktop/images/14012025/08/56/image_14012025_08_56_44_9436.jpg
/home/pi/Desktop/images/14012025/08/56/image_14012025_08_56_55_10370.jpg
/home/pi/Desktop/images/14012025/08/56/image_14012025_08_57_05_10351.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329144811","1329144897","1329144901","1329144771","1329144890","1329144895"],"photo_ids_order":["1329144771","1329144811","1329144890","1329144895","1329144897","1329144901"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dc485935a9459f3787186855a86d52eb.jpg","text":"TemporaryFile(/tmp/multipartBody3880522223541584318asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948614747,"filename":"image_14012025_08_56_24_9474.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c08a11775728e65dc4f0b8ab50f6028a.jpg","text":"TemporaryFile(/tmp/multipartBody2977525751350678927asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948614747,"filename":"image_14012025_08_56_55_10370.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9f57cd9ccc389c7a73e2b0485f501b95.jpg","text":"TemporaryFile(/tmp/multipartBody3234118940934648199asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948614747,"filename":"image_14012025_08_57_05_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a421350be6bfda90f129473f7812c3e2.jpg","text":"TemporaryFile(/tmp/multipartBody4128006933290127521asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948614747,"filename":"image_14012025_08_56_15_10366.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/60fb0ba9d2120f8e2a79d9beb47062dd.jpg","text":"TemporaryFile(/tmp/multipartBody2399771220655729554asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948614747,"filename":"image_14012025_08_56_35_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1aa27eb19291f50e3930a5b3c903c545.jpg","text":"TemporaryFile(/tmp/multipartBody4719981703905725560asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948614747,"filename":"image_14012025_08_56_44_9436.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329144890","file1":"1329144811","file0":"1329144771","file4":"1329144897","file5":"1329144901","file3":"1329144895"},"map_files_photo_id_array":[{"photo_id":"1329144901","filename":"file5"},{"photo_id":"1329144890","filename":"file2"},{"photo_id":"1329144897","filename":"file4"},{"photo_id":"1329144811","filename":"file1"},{"photo_id":"1329144771","filename":"file0"},{"photo_id":"1329144895","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329144811":["hashtag1","hashtag2"]},{"1329144897":["hashtag1","hashtag2"]},{"1329144901":["hashtag1","hashtag2"]},{"1329144771":["hashtag1","hashtag2"]},{"1329144890":["hashtag1","hashtag2"]},{"1329144895":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329144811, 1329144897, 1329144901, 1329144771, 1329144890, 1329144895)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.63450241088867 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 15 --only_old 1
2025-01-15 14:43:32.462669
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/57/image_14012025_08_57_14_9429.jpg', '/home/pi/Desktop/images/14012025/08/57/image_14012025_08_57_25_10340.jpg', '/home/pi/Desktop/images/14012025/08/57/image_14012025_08_57_34_9338.jpg', '/home/pi/Desktop/images/14012025/08/57/image_14012025_08_57_44_10333.jpg', '/home/pi/Desktop/images/14012025/08/57/image_14012025_08_58_04_9486.jpg', '/home/pi/Desktop/images/14012025/08/58/image_14012025_08_58_15_10335.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/57/image_14012025_08_57_14_9429.jpg
/home/pi/Desktop/images/14012025/08/57/image_14012025_08_57_25_10340.jpg
/home/pi/Desktop/images/14012025/08/57/image_14012025_08_57_34_9338.jpg
/home/pi/Desktop/images/14012025/08/57/image_14012025_08_57_44_10333.jpg
/home/pi/Desktop/images/14012025/08/57/image_14012025_08_58_04_9486.jpg
/home/pi/Desktop/images/14012025/08/58/image_14012025_08_58_15_10335.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 2.15091609954834 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
2025-01-15 14:43:42.571230
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/08/image_15012025_00_08_57_9356.jpg', '/home/pi/Desktop/images/15012025/00/08/image_15012025_00_09_07_10358.jpg', '/home/pi/Desktop/images/15012025/00/09/image_15012025_00_09_18_10366.jpg', '/home/pi/Desktop/images/15012025/00/09/image_15012025_00_09_27_9354.jpg', '/home/pi/Desktop/images/15012025/00/09/image_15012025_00_09_37_10405.jpg', '/home/pi/Desktop/images/15012025/00/09/image_15012025_00_09_47_9344.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/08/image_15012025_00_08_57_9356.jpg
/home/pi/Desktop/images/15012025/00/08/image_15012025_00_09_07_10358.jpg
/home/pi/Desktop/images/15012025/00/09/image_15012025_00_09_18_10366.jpg
/home/pi/Desktop/images/15012025/00/09/image_15012025_00_09_27_9354.jpg
/home/pi/Desktop/images/15012025/00/09/image_15012025_00_09_37_10405.jpg
/home/pi/Desktop/images/15012025/00/09/image_15012025_00_09_47_9344.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329145014","1329144944","1329145285","1329145132","1329145249","1329144949"],"photo_ids_order":["1329144944","1329144949","1329145014","1329145132","1329145249","1329145285"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/67dd61fea641634e093167214714df48.jpg","text":"TemporaryFile(/tmp/multipartBody5478644572884422930asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948683540,"filename":"image_15012025_00_09_18_10366.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9b05e6a761bae1707a22b2c95141a1a7.jpg","text":"TemporaryFile(/tmp/multipartBody6288795420984984399asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948683540,"filename":"image_15012025_00_08_57_9356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c20d841fc4594e5bdd1e89649159f5f5.jpg","text":"TemporaryFile(/tmp/multipartBody3608836985302146218asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948683540,"filename":"image_15012025_00_09_47_9344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ecbcf3e06b3c433a29b921940c587c13.jpg","text":"TemporaryFile(/tmp/multipartBody3524095055418344082asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948683540,"filename":"image_15012025_00_09_27_9354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/88434993b2ea23a730166f996712fa34.jpg","text":"TemporaryFile(/tmp/multipartBody1461416150838766093asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948683540,"filename":"image_15012025_00_09_37_10405.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5cf80735ef7630a97f9cfddfc33dcd3d.jpg","text":"TemporaryFile(/tmp/multipartBody6575814294832875844asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948683540,"filename":"image_15012025_00_09_07_10358.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329145014","file1":"1329144949","file0":"1329144944","file4":"1329145249","file5":"1329145285","file3":"1329145132"},"map_files_photo_id_array":[{"photo_id":"1329145285","filename":"file5"},{"photo_id":"1329145014","filename":"file2"},{"photo_id":"1329145249","filename":"file4"},{"photo_id":"1329144949","filename":"file1"},{"photo_id":"1329144944","filename":"file0"},{"photo_id":"1329145132","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329145014":["hashtag1","hashtag2"]},{"1329144944":["hashtag1","hashtag2"]},{"1329145285":["hashtag1","hashtag2"]},{"1329145132":["hashtag1","hashtag2"]},{"1329145249":["hashtag1","hashtag2"]},{"1329144949":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329145014, 1329144944, 1329145285, 1329145132, 1329145249, 1329144949)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.81855249404907 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 15 --only_old 1
2025-01-15 14:44:32.621565
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/57/image_14012025_08_57_14_9429.jpg', '/home/pi/Desktop/images/14012025/08/57/image_14012025_08_57_25_10340.jpg', '/home/pi/Desktop/images/14012025/08/57/image_14012025_08_57_34_9338.jpg', '/home/pi/Desktop/images/14012025/08/57/image_14012025_08_57_44_10333.jpg', '/home/pi/Desktop/images/14012025/08/57/image_14012025_08_58_04_9486.jpg', '/home/pi/Desktop/images/14012025/08/58/image_14012025_08_58_15_10335.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/57/image_14012025_08_57_14_9429.jpg
/home/pi/Desktop/images/14012025/08/57/image_14012025_08_57_25_10340.jpg
/home/pi/Desktop/images/14012025/08/57/image_14012025_08_57_34_9338.jpg
/home/pi/Desktop/images/14012025/08/57/image_14012025_08_57_44_10333.jpg
/home/pi/Desktop/images/14012025/08/57/image_14012025_08_58_04_9486.jpg
/home/pi/Desktop/images/14012025/08/58/image_14012025_08_58_15_10335.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329145509","1329145457","1329145514","1329145465","1329145531","1329145513"],"photo_ids_order":["1329145457","1329145465","1329145509","1329145513","1329145514","1329145531"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7aad22d066716c08b12817eca3bec959.jpg","text":"TemporaryFile(/tmp/multipartBody613062095428692500asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948735069,"filename":"image_14012025_08_57_34_9338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6c03a0bc82988a727f7de897b973b77e.jpg","text":"TemporaryFile(/tmp/multipartBody5139061568373848376asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948735069,"filename":"image_14012025_08_57_14_9429.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6ca09b59db50cfec41d931f4aeefb0e0.jpg","text":"TemporaryFile(/tmp/multipartBody7663925769978264065asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948735069,"filename":"image_14012025_08_58_04_9486.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fb8dc8106afa30f00e17799950d9a8ed.jpg","text":"TemporaryFile(/tmp/multipartBody2663205613620915420asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948735069,"filename":"image_14012025_08_57_25_10340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/82dc3b3c093bf9ef5f16bf1d5d5b7fc6.jpg","text":"TemporaryFile(/tmp/multipartBody2106260441481342242asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948735069,"filename":"image_14012025_08_58_15_10335.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8efee284cefe091f1602714c8eefe778.jpg","text":"TemporaryFile(/tmp/multipartBody2748793743647422665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948735069,"filename":"image_14012025_08_57_44_10333.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329145509","file1":"1329145465","file0":"1329145457","file4":"1329145514","file5":"1329145531","file3":"1329145513"},"map_files_photo_id_array":[{"photo_id":"1329145531","filename":"file5"},{"photo_id":"1329145509","filename":"file2"},{"photo_id":"1329145514","filename":"file4"},{"photo_id":"1329145465","filename":"file1"},{"photo_id":"1329145457","filename":"file0"},{"photo_id":"1329145513","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329145509":["hashtag1","hashtag2"]},{"1329145457":["hashtag1","hashtag2"]},{"1329145514":["hashtag1","hashtag2"]},{"1329145465":["hashtag1","hashtag2"]},{"1329145531":["hashtag1","hashtag2"]},{"1329145513":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329145509, 1329145457, 1329145514, 1329145465, 1329145531, 1329145513)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.3924605846405 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 15 --only_old 1
2025-01-15 14:45:32.774465
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/58/image_14012025_08_58_25_10364.jpg', '/home/pi/Desktop/images/14012025/08/58/image_14012025_08_58_34_9343.jpg', '/home/pi/Desktop/images/14012025/08/58/image_14012025_08_58_45_10457.jpg', '/home/pi/Desktop/images/14012025/08/58/image_14012025_08_58_54_9359.jpg', '/home/pi/Desktop/images/14012025/08/58/image_14012025_08_59_04_10348.jpg', '/home/pi/Desktop/images/14012025/08/59/image_14012025_08_59_15_10342.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/58/image_14012025_08_58_25_10364.jpg
/home/pi/Desktop/images/14012025/08/58/image_14012025_08_58_34_9343.jpg
/home/pi/Desktop/images/14012025/08/58/image_14012025_08_58_45_10457.jpg
/home/pi/Desktop/images/14012025/08/58/image_14012025_08_58_54_9359.jpg
/home/pi/Desktop/images/14012025/08/58/image_14012025_08_59_04_10348.jpg
/home/pi/Desktop/images/14012025/08/59/image_14012025_08_59_15_10342.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329145737","1329145772","1329145710","1329145673","1329145775","1329145778"],"photo_ids_order":["1329145673","1329145710","1329145737","1329145772","1329145775","1329145778"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fcb0094f53125620c2d04f1cf53b463b.jpg","text":"TemporaryFile(/tmp/multipartBody7924492866820398630asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948795320,"filename":"image_14012025_08_58_45_10457.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1ebd90305b823eb2d8e5f1e9bda2d7f2.jpg","text":"TemporaryFile(/tmp/multipartBody5983516207015216467asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948795320,"filename":"image_14012025_08_58_54_9359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/87ce8122734cddb75c3540dd6d0cd6bd.jpg","text":"TemporaryFile(/tmp/multipartBody2607623925412626847asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948795320,"filename":"image_14012025_08_58_34_9343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fca9f81525faf550351414f2fc790c56.jpg","text":"TemporaryFile(/tmp/multipartBody2882732664304644606asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948795320,"filename":"image_14012025_08_58_25_10364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/578e8746bb3f23fde024523bde9ddf0e.jpg","text":"TemporaryFile(/tmp/multipartBody1117459423912888735asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948795320,"filename":"image_14012025_08_59_04_10348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2806aaab66b1055a3d29ad59e38f812b.jpg","text":"TemporaryFile(/tmp/multipartBody9135483558075339232asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948795320,"filename":"image_14012025_08_59_15_10342.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329145737","file1":"1329145710","file0":"1329145673","file4":"1329145775","file5":"1329145778","file3":"1329145772"},"map_files_photo_id_array":[{"photo_id":"1329145778","filename":"file5"},{"photo_id":"1329145737","filename":"file2"},{"photo_id":"1329145775","filename":"file4"},{"photo_id":"1329145710","filename":"file1"},{"photo_id":"1329145673","filename":"file0"},{"photo_id":"1329145772","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329145737":["hashtag1","hashtag2"]},{"1329145772":["hashtag1","hashtag2"]},{"1329145710":["hashtag1","hashtag2"]},{"1329145673":["hashtag1","hashtag2"]},{"1329145775":["hashtag1","hashtag2"]},{"1329145778":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329145737, 1329145772, 1329145710, 1329145673, 1329145775, 1329145778)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 48.27304148674011 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 15 --only_old 1
2025-01-15 14:46:32.911585
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/59/image_14012025_08_59_24_9520.jpg', '/home/pi/Desktop/images/14012025/08/59/image_14012025_08_59_35_10355.jpg', '/home/pi/Desktop/images/14012025/08/59/image_14012025_08_59_44_9346.jpg', '/home/pi/Desktop/images/14012025/08/59/image_14012025_08_59_55_10486.jpg', '/home/pi/Desktop/images/14012025/09/00/image_14012025_09_00_16_10073.jpg', '/home/pi/Desktop/images/14012025/09/00/image_14012025_09_00_26_10463.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/59/image_14012025_08_59_24_9520.jpg
/home/pi/Desktop/images/14012025/08/59/image_14012025_08_59_35_10355.jpg
/home/pi/Desktop/images/14012025/08/59/image_14012025_08_59_44_9346.jpg
/home/pi/Desktop/images/14012025/08/59/image_14012025_08_59_55_10486.jpg
/home/pi/Desktop/images/14012025/09/00/image_14012025_09_00_16_10073.jpg
/home/pi/Desktop/images/14012025/09/00/image_14012025_09_00_26_10463.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 2.1398839950561523 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
2025-01-15 14:46:43.001668
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/09/image_15012025_00_09_57_10460.jpg', '/home/pi/Desktop/images/15012025/00/09/image_15012025_00_10_07_10343.jpg', '/home/pi/Desktop/images/15012025/00/10/image_15012025_00_10_17_9345.jpg', '/home/pi/Desktop/images/15012025/00/10/image_15012025_00_10_27_10415.jpg', '/home/pi/Desktop/images/15012025/00/10/image_15012025_00_10_38_10370.jpg', '/home/pi/Desktop/images/15012025/00/10/image_15012025_00_10_47_9347.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/09/image_15012025_00_09_57_10460.jpg
/home/pi/Desktop/images/15012025/00/09/image_15012025_00_10_07_10343.jpg
/home/pi/Desktop/images/15012025/00/10/image_15012025_00_10_17_9345.jpg
/home/pi/Desktop/images/15012025/00/10/image_15012025_00_10_27_10415.jpg
/home/pi/Desktop/images/15012025/00/10/image_15012025_00_10_38_10370.jpg
/home/pi/Desktop/images/15012025/00/10/image_15012025_00_10_47_9347.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329145845","1329145856","1329145841","1329145852","1329145855","1329145849"],"photo_ids_order":["1329145841","1329145845","1329145849","1329145852","1329145855","1329145856"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a0ba83628fa947ee313685d99180bba9.jpg","text":"TemporaryFile(/tmp/multipartBody5688109414863601980asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948863997,"filename":"image_15012025_00_10_07_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f891f0d956bb1ebf46da35e86bc4538f.jpg","text":"TemporaryFile(/tmp/multipartBody2562343269467385828asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948863997,"filename":"image_15012025_00_10_47_9347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b37300396e1243364fe76d4f0aeef12b.jpg","text":"TemporaryFile(/tmp/multipartBody6649151561244182133asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948863997,"filename":"image_15012025_00_09_57_10460.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e74d5b32ec890476d2f07ee299cbb697.jpg","text":"TemporaryFile(/tmp/multipartBody8147054811854561050asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948863997,"filename":"image_15012025_00_10_27_10415.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/410079189d723d8b9a8ccf3fbe13fa8f.jpg","text":"TemporaryFile(/tmp/multipartBody4247766666944996245asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948863997,"filename":"image_15012025_00_10_38_10370.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b96d0263f799822381dd4bc1a2bcdf61.jpg","text":"TemporaryFile(/tmp/multipartBody5222576022043787042asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948863997,"filename":"image_15012025_00_10_17_9345.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329145849","file1":"1329145845","file0":"1329145841","file4":"1329145855","file5":"1329145856","file3":"1329145852"},"map_files_photo_id_array":[{"photo_id":"1329145856","filename":"file5"},{"photo_id":"1329145849","filename":"file2"},{"photo_id":"1329145855","filename":"file4"},{"photo_id":"1329145845","filename":"file1"},{"photo_id":"1329145841","filename":"file0"},{"photo_id":"1329145852","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329145845":["hashtag1","hashtag2"]},{"1329145856":["hashtag1","hashtag2"]},{"1329145841":["hashtag1","hashtag2"]},{"1329145852":["hashtag1","hashtag2"]},{"1329145855":["hashtag1","hashtag2"]},{"1329145849":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329145845, 1329145856, 1329145841, 1329145852, 1329145855, 1329145849)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.93346667289734 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 15 --only_old 1
2025-01-15 14:47:33.087485
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/08/59/image_14012025_08_59_24_9520.jpg', '/home/pi/Desktop/images/14012025/08/59/image_14012025_08_59_35_10355.jpg', '/home/pi/Desktop/images/14012025/08/59/image_14012025_08_59_44_9346.jpg', '/home/pi/Desktop/images/14012025/08/59/image_14012025_08_59_55_10486.jpg', '/home/pi/Desktop/images/14012025/09/00/image_14012025_09_00_16_10073.jpg', '/home/pi/Desktop/images/14012025/09/00/image_14012025_09_00_26_10463.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/08/59/image_14012025_08_59_24_9520.jpg
/home/pi/Desktop/images/14012025/08/59/image_14012025_08_59_35_10355.jpg
/home/pi/Desktop/images/14012025/08/59/image_14012025_08_59_44_9346.jpg
/home/pi/Desktop/images/14012025/08/59/image_14012025_08_59_55_10486.jpg
/home/pi/Desktop/images/14012025/09/00/image_14012025_09_00_16_10073.jpg
/home/pi/Desktop/images/14012025/09/00/image_14012025_09_00_26_10463.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329145881","1329145911","1329145905","1329145902","1329145897","1329145909"],"photo_ids_order":["1329145881","1329145897","1329145902","1329145905","1329145909","1329145911"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2eac80370cf6c2bfd887d69d95babf86.jpg","text":"TemporaryFile(/tmp/multipartBody2117602310218703693asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948915548,"filename":"image_14012025_08_59_24_9520.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d9f0ffd01a9ffefbee8187ea85216f6a.jpg","text":"TemporaryFile(/tmp/multipartBody4188787518337947761asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948915548,"filename":"image_14012025_09_00_26_10463.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/61c4f6846874402932ef065ed092fc12.jpg","text":"TemporaryFile(/tmp/multipartBody2225275860653616537asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948915548,"filename":"image_14012025_08_59_55_10486.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4bd7027cabbafc9a30c39dcf6ddda478.jpg","text":"TemporaryFile(/tmp/multipartBody6736869985387342400asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948915548,"filename":"image_14012025_08_59_44_9346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2cbbb5660507a9a7acd32cb211b92dca.jpg","text":"TemporaryFile(/tmp/multipartBody609687280901159327asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948915548,"filename":"image_14012025_08_59_35_10355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2d848770b051d0294a68c0ed73e2792a.jpg","text":"TemporaryFile(/tmp/multipartBody6188504947685494719asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948915548,"filename":"image_14012025_09_00_16_10073.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329145902","file1":"1329145897","file0":"1329145881","file4":"1329145909","file5":"1329145911","file3":"1329145905"},"map_files_photo_id_array":[{"photo_id":"1329145911","filename":"file5"},{"photo_id":"1329145902","filename":"file2"},{"photo_id":"1329145909","filename":"file4"},{"photo_id":"1329145897","filename":"file1"},{"photo_id":"1329145881","filename":"file0"},{"photo_id":"1329145905","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329145881":["hashtag1","hashtag2"]},{"1329145911":["hashtag1","hashtag2"]},{"1329145905":["hashtag1","hashtag2"]},{"1329145902":["hashtag1","hashtag2"]},{"1329145897":["hashtag1","hashtag2"]},{"1329145909":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329145881, 1329145911, 1329145905, 1329145902, 1329145897, 1329145909)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.234572887420654 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 15 --only_old 1
2025-01-15 14:48:32.486325
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/00/image_14012025_09_00_46_9347.jpg', '/home/pi/Desktop/images/14012025/09/00/image_14012025_09_01_07_10329.jpg', '/home/pi/Desktop/images/14012025/09/01/image_14012025_09_01_16_9325.jpg', '/home/pi/Desktop/images/14012025/09/01/image_14012025_09_01_26_10380.jpg', '/home/pi/Desktop/images/14012025/09/01/image_14012025_09_01_37_10347.jpg', '/home/pi/Desktop/images/14012025/09/01/image_14012025_09_01_46_9427.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/00/image_14012025_09_00_46_9347.jpg
/home/pi/Desktop/images/14012025/09/00/image_14012025_09_01_07_10329.jpg
/home/pi/Desktop/images/14012025/09/01/image_14012025_09_01_16_9325.jpg
/home/pi/Desktop/images/14012025/09/01/image_14012025_09_01_26_10380.jpg
/home/pi/Desktop/images/14012025/09/01/image_14012025_09_01_37_10347.jpg
/home/pi/Desktop/images/14012025/09/01/image_14012025_09_01_46_9427.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329145989","1329146001","1329145985","1329146000","1329145993","1329145999"],"photo_ids_order":["1329145985","1329145989","1329145993","1329145999","1329146000","1329146001"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a75d725fae3c23c669ba0b0357c73abe.jpg","text":"TemporaryFile(/tmp/multipartBody5469695721268682225asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948975032,"filename":"image_14012025_09_01_07_10329.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6bc5aeb6902aeb64d76648a0efbd8557.jpg","text":"TemporaryFile(/tmp/multipartBody7159054671816692006asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948975032,"filename":"image_14012025_09_01_46_9427.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9025b3d03eb7583964b30d69acd8d7c4.jpg","text":"TemporaryFile(/tmp/multipartBody3556542633408844668asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948975032,"filename":"image_14012025_09_00_46_9347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/696183126e601467df7479b60b344a12.jpg","text":"TemporaryFile(/tmp/multipartBody691481977969831521asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948975032,"filename":"image_14012025_09_01_37_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fa823a42d8c6057d5e2a2ecffc60df81.jpg","text":"TemporaryFile(/tmp/multipartBody4394733997846004449asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948975032,"filename":"image_14012025_09_01_16_9325.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/acc7c34a670435cce7f3d1157ef3744b.jpg","text":"TemporaryFile(/tmp/multipartBody8465429065638693971asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736948975032,"filename":"image_14012025_09_01_26_10380.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329145993","file1":"1329145989","file0":"1329145985","file4":"1329146000","file5":"1329146001","file3":"1329145999"},"map_files_photo_id_array":[{"photo_id":"1329146001","filename":"file5"},{"photo_id":"1329145993","filename":"file2"},{"photo_id":"1329146000","filename":"file4"},{"photo_id":"1329145989","filename":"file1"},{"photo_id":"1329145985","filename":"file0"},{"photo_id":"1329145999","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329145989":["hashtag1","hashtag2"]},{"1329146001":["hashtag1","hashtag2"]},{"1329145985":["hashtag1","hashtag2"]},{"1329146000":["hashtag1","hashtag2"]},{"1329145993":["hashtag1","hashtag2"]},{"1329145999":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329145989, 1329146001, 1329145985, 1329146000, 1329145993, 1329145999)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.881280183792114 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 15 --only_old 1
2025-01-15 14:49:32.750180
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/01/image_14012025_09_01_57_10367.jpg', '/home/pi/Desktop/images/14012025/09/01/image_14012025_09_02_06_9354.jpg', '/home/pi/Desktop/images/14012025/09/02/image_14012025_09_02_16_10395.jpg', '/home/pi/Desktop/images/14012025/09/02/image_14012025_09_02_27_10362.jpg', '/home/pi/Desktop/images/14012025/09/02/image_14012025_09_02_36_9322.jpg', '/home/pi/Desktop/images/14012025/09/02/image_14012025_09_02_46_10450.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/01/image_14012025_09_01_57_10367.jpg
/home/pi/Desktop/images/14012025/09/01/image_14012025_09_02_06_9354.jpg
/home/pi/Desktop/images/14012025/09/02/image_14012025_09_02_16_10395.jpg
/home/pi/Desktop/images/14012025/09/02/image_14012025_09_02_27_10362.jpg
/home/pi/Desktop/images/14012025/09/02/image_14012025_09_02_36_9322.jpg
/home/pi/Desktop/images/14012025/09/02/image_14012025_09_02_46_10450.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329146046","1329146080","1329146062","1329146071","1329146053","1329146076"],"photo_ids_order":["1329146046","1329146053","1329146062","1329146071","1329146076","1329146080"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/efce877ab138ee33d76f8d308e7376ef.jpg","text":"TemporaryFile(/tmp/multipartBody5097551637408911500asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949035261,"filename":"image_14012025_09_01_57_10367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c2a48239945b9a9b4b63e9bb85813f11.jpg","text":"TemporaryFile(/tmp/multipartBody5671143985434192425asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949035261,"filename":"image_14012025_09_02_46_10450.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/50f9e68a323d6fa16f89211e008456da.jpg","text":"TemporaryFile(/tmp/multipartBody3526932524546567047asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949035261,"filename":"image_14012025_09_02_16_10395.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f9644da8038ebeec5fef6fab27c5bc20.jpg","text":"TemporaryFile(/tmp/multipartBody983187733785255253asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949035261,"filename":"image_14012025_09_02_27_10362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fe02c637c72bc70231b0db54b572c10c.jpg","text":"TemporaryFile(/tmp/multipartBody7379243445190104446asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949035261,"filename":"image_14012025_09_02_06_9354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5c0458a8170ad447e7fca25b3a991040.jpg","text":"TemporaryFile(/tmp/multipartBody7248304587097382208asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949035261,"filename":"image_14012025_09_02_36_9322.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329146062","file1":"1329146053","file0":"1329146046","file4":"1329146076","file5":"1329146080","file3":"1329146071"},"map_files_photo_id_array":[{"photo_id":"1329146080","filename":"file5"},{"photo_id":"1329146062","filename":"file2"},{"photo_id":"1329146076","filename":"file4"},{"photo_id":"1329146053","filename":"file1"},{"photo_id":"1329146046","filename":"file0"},{"photo_id":"1329146071","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329146046":["hashtag1","hashtag2"]},{"1329146080":["hashtag1","hashtag2"]},{"1329146062":["hashtag1","hashtag2"]},{"1329146071":["hashtag1","hashtag2"]},{"1329146053":["hashtag1","hashtag2"]},{"1329146076":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329146046, 1329146080, 1329146062, 1329146071, 1329146053, 1329146076)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.353224992752075 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 15 --only_old 1
2025-01-15 14:50:32.809108
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/02/image_14012025_09_02_56_9359.jpg', '/home/pi/Desktop/images/14012025/09/02/image_14012025_09_03_06_10386.jpg', '/home/pi/Desktop/images/14012025/09/03/image_14012025_09_03_17_10460.jpg', '/home/pi/Desktop/images/14012025/09/03/image_14012025_09_03_26_9354.jpg', '/home/pi/Desktop/images/14012025/09/03/image_14012025_09_03_36_10358.jpg', '/home/pi/Desktop/images/14012025/09/03/image_14012025_09_03_47_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/02/image_14012025_09_02_56_9359.jpg
/home/pi/Desktop/images/14012025/09/02/image_14012025_09_03_06_10386.jpg
/home/pi/Desktop/images/14012025/09/03/image_14012025_09_03_17_10460.jpg
/home/pi/Desktop/images/14012025/09/03/image_14012025_09_03_26_9354.jpg
/home/pi/Desktop/images/14012025/09/03/image_14012025_09_03_36_10358.jpg
/home/pi/Desktop/images/14012025/09/03/image_14012025_09_03_47_10356.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329146130","1329146118","1329146133","1329146099","1329146125","1329146110"],"photo_ids_order":["1329146099","1329146110","1329146118","1329146125","1329146130","1329146133"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c5ec86021d6a6f2ba382b8e5c53b4c3f.jpg","text":"TemporaryFile(/tmp/multipartBody2908083630644619696asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949095316,"filename":"image_14012025_09_03_36_10358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b2abc9ef567d04230b62cb9876e3ee81.jpg","text":"TemporaryFile(/tmp/multipartBody6552066076847991441asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949095316,"filename":"image_14012025_09_03_17_10460.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/09e0b987458f23cbfbd7f8f5b95871ed.jpg","text":"TemporaryFile(/tmp/multipartBody7819458644378681397asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949095316,"filename":"image_14012025_09_03_47_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/968146bff20e449679dd81099f5fbc62.jpg","text":"TemporaryFile(/tmp/multipartBody944115622336530723asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949095316,"filename":"image_14012025_09_02_56_9359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/282aa45c37b0f7553649bc53cf1ccf65.jpg","text":"TemporaryFile(/tmp/multipartBody2894074258572205572asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949095316,"filename":"image_14012025_09_03_26_9354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/413aefdbe61762220d2fcb702d37351a.jpg","text":"TemporaryFile(/tmp/multipartBody162168818049336318asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949095316,"filename":"image_14012025_09_03_06_10386.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329146118","file1":"1329146110","file0":"1329146099","file4":"1329146130","file5":"1329146133","file3":"1329146125"},"map_files_photo_id_array":[{"photo_id":"1329146133","filename":"file5"},{"photo_id":"1329146118","filename":"file2"},{"photo_id":"1329146130","filename":"file4"},{"photo_id":"1329146110","filename":"file1"},{"photo_id":"1329146099","filename":"file0"},{"photo_id":"1329146125","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329146130":["hashtag1","hashtag2"]},{"1329146118":["hashtag1","hashtag2"]},{"1329146133":["hashtag1","hashtag2"]},{"1329146099":["hashtag1","hashtag2"]},{"1329146125":["hashtag1","hashtag2"]},{"1329146110":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329146130, 1329146118, 1329146133, 1329146099, 1329146125, 1329146110)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.97444987297058 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 15 --only_old 1
2025-01-15 14:51:33.031239
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/03/image_14012025_09_03_56_9356.jpg', '/home/pi/Desktop/images/14012025/09/03/image_14012025_09_04_06_10349.jpg', '/home/pi/Desktop/images/14012025/09/04/image_14012025_09_04_17_10346.jpg', '/home/pi/Desktop/images/14012025/09/04/image_14012025_09_04_26_9446.jpg', '/home/pi/Desktop/images/14012025/09/04/image_14012025_09_04_37_10353.jpg', '/home/pi/Desktop/images/14012025/09/04/image_14012025_09_04_46_9357.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/03/image_14012025_09_03_56_9356.jpg
/home/pi/Desktop/images/14012025/09/03/image_14012025_09_04_06_10349.jpg
/home/pi/Desktop/images/14012025/09/04/image_14012025_09_04_17_10346.jpg
/home/pi/Desktop/images/14012025/09/04/image_14012025_09_04_26_9446.jpg
/home/pi/Desktop/images/14012025/09/04/image_14012025_09_04_37_10353.jpg
/home/pi/Desktop/images/14012025/09/04/image_14012025_09_04_46_9357.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329146163","1329146189","1329146183","1329146192","1329146176","1329146169"],"photo_ids_order":["1329146163","1329146169","1329146176","1329146183","1329146189","1329146192"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/65197e2ed2e435ef9fa3f310f0b63d17.jpg","text":"TemporaryFile(/tmp/multipartBody8669888696103718046asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949155577,"filename":"image_14012025_09_03_56_9356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f0b072ee7a37f07b749c20acc567de28.jpg","text":"TemporaryFile(/tmp/multipartBody1077460170634308479asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949155577,"filename":"image_14012025_09_04_37_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ec85b13b81972cc91b39306bcc1685d5.jpg","text":"TemporaryFile(/tmp/multipartBody6251504030324428050asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949155577,"filename":"image_14012025_09_04_26_9446.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f920646085b70380e61283e7ec749171.jpg","text":"TemporaryFile(/tmp/multipartBody3721042200411964201asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949155577,"filename":"image_14012025_09_04_46_9357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/188ab86caabcf8fee6db6cc51559974e.jpg","text":"TemporaryFile(/tmp/multipartBody7620690763679691233asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949155577,"filename":"image_14012025_09_04_17_10346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bd14e933d95f682489bea321df6dee2f.jpg","text":"TemporaryFile(/tmp/multipartBody791306534453129327asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949155577,"filename":"image_14012025_09_04_06_10349.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329146176","file1":"1329146169","file0":"1329146163","file4":"1329146189","file5":"1329146192","file3":"1329146183"},"map_files_photo_id_array":[{"photo_id":"1329146192","filename":"file5"},{"photo_id":"1329146176","filename":"file2"},{"photo_id":"1329146189","filename":"file4"},{"photo_id":"1329146169","filename":"file1"},{"photo_id":"1329146163","filename":"file0"},{"photo_id":"1329146183","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329146163":["hashtag1","hashtag2"]},{"1329146189":["hashtag1","hashtag2"]},{"1329146183":["hashtag1","hashtag2"]},{"1329146192":["hashtag1","hashtag2"]},{"1329146176":["hashtag1","hashtag2"]},{"1329146169":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329146163, 1329146189, 1329146183, 1329146192, 1329146176, 1329146169)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.450618505477905 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 15 --only_old 1
2025-01-15 14:52:32.264867
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/04/image_14012025_09_04_56_10446.jpg', '/home/pi/Desktop/images/14012025/09/04/image_14012025_09_05_07_10335.jpg', '/home/pi/Desktop/images/14012025/09/05/image_14012025_09_05_16_9327.jpg', '/home/pi/Desktop/images/14012025/09/05/image_14012025_09_05_27_10446.jpg', '/home/pi/Desktop/images/14012025/09/05/image_14012025_09_05_36_9344.jpg', '/home/pi/Desktop/images/14012025/09/05/image_14012025_09_05_46_10406.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/04/image_14012025_09_04_56_10446.jpg
/home/pi/Desktop/images/14012025/09/04/image_14012025_09_05_07_10335.jpg
/home/pi/Desktop/images/14012025/09/05/image_14012025_09_05_16_9327.jpg
/home/pi/Desktop/images/14012025/09/05/image_14012025_09_05_27_10446.jpg
/home/pi/Desktop/images/14012025/09/05/image_14012025_09_05_36_9344.jpg
/home/pi/Desktop/images/14012025/09/05/image_14012025_09_05_46_10406.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329146307","1329146315","1329146299","1329146290","1329146271","1329146280"],"photo_ids_order":["1329146271","1329146280","1329146290","1329146299","1329146307","1329146315"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f07bdb54e8025367b8421af829d7b7ed.jpg","text":"TemporaryFile(/tmp/multipartBody3025036912505050624asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949214768,"filename":"image_14012025_09_05_36_9344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/65342161b5b5b0b2f778f96d79c50ea1.jpg","text":"TemporaryFile(/tmp/multipartBody7772106233888014203asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949214768,"filename":"image_14012025_09_05_46_10406.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5fa69ab7125ec0050f1907ab42a9d5b6.jpg","text":"TemporaryFile(/tmp/multipartBody6802813878828919641asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949214768,"filename":"image_14012025_09_05_27_10446.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/74c2ca3f325fd552d4a223dcff2dbd27.jpg","text":"TemporaryFile(/tmp/multipartBody5789800762817547596asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949214768,"filename":"image_14012025_09_05_16_9327.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/72986f2a744cfb61f45ee25e79c1abfc.jpg","text":"TemporaryFile(/tmp/multipartBody203539117171299901asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949214768,"filename":"image_14012025_09_04_56_10446.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8b815e306b52a16864e5f6180b34663f.jpg","text":"TemporaryFile(/tmp/multipartBody7264847262196448834asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949214768,"filename":"image_14012025_09_05_07_10335.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329146290","file1":"1329146280","file0":"1329146271","file4":"1329146307","file5":"1329146315","file3":"1329146299"},"map_files_photo_id_array":[{"photo_id":"1329146315","filename":"file5"},{"photo_id":"1329146290","filename":"file2"},{"photo_id":"1329146307","filename":"file4"},{"photo_id":"1329146280","filename":"file1"},{"photo_id":"1329146271","filename":"file0"},{"photo_id":"1329146299","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329146307":["hashtag1","hashtag2"]},{"1329146315":["hashtag1","hashtag2"]},{"1329146299":["hashtag1","hashtag2"]},{"1329146290":["hashtag1","hashtag2"]},{"1329146271":["hashtag1","hashtag2"]},{"1329146280":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329146307, 1329146315, 1329146299, 1329146290, 1329146271, 1329146280)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.06794238090515 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 15 --only_old 1
2025-01-15 14:53:32.436486
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/05/image_14012025_09_05_57_10388.jpg', '/home/pi/Desktop/images/14012025/09/05/image_14012025_09_06_06_9320.jpg', '/home/pi/Desktop/images/14012025/09/06/image_14012025_09_06_16_10349.jpg', '/home/pi/Desktop/images/14012025/09/06/image_14012025_09_06_27_10347.jpg', '/home/pi/Desktop/images/14012025/09/06/image_14012025_09_06_36_9354.jpg', '/home/pi/Desktop/images/14012025/09/06/image_14012025_09_06_46_10414.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/05/image_14012025_09_05_57_10388.jpg
/home/pi/Desktop/images/14012025/09/05/image_14012025_09_06_06_9320.jpg
/home/pi/Desktop/images/14012025/09/06/image_14012025_09_06_16_10349.jpg
/home/pi/Desktop/images/14012025/09/06/image_14012025_09_06_27_10347.jpg
/home/pi/Desktop/images/14012025/09/06/image_14012025_09_06_36_9354.jpg
/home/pi/Desktop/images/14012025/09/06/image_14012025_09_06_46_10414.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329146340","1329146348","1329146333","1329146362","1329146356","1329146367"],"photo_ids_order":["1329146333","1329146340","1329146348","1329146356","1329146362","1329146367"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/33ec38d596dd3239053c2458e55cebcf.jpg","text":"TemporaryFile(/tmp/multipartBody2477459427262581268asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949274969,"filename":"image_14012025_09_06_06_9320.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0075075e1064c3523777fa48cc9d9b07.jpg","text":"TemporaryFile(/tmp/multipartBody4203603755675123775asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949274969,"filename":"image_14012025_09_06_16_10349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/eaba47af06485888723aa5856320c4a1.jpg","text":"TemporaryFile(/tmp/multipartBody3663794840453926311asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949274969,"filename":"image_14012025_09_05_57_10388.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c0cfcbc73f36e7f836e23c8a24088dbd.jpg","text":"TemporaryFile(/tmp/multipartBody5033690086108364542asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949274969,"filename":"image_14012025_09_06_36_9354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/159537ee179ea97fe86c221868fec268.jpg","text":"TemporaryFile(/tmp/multipartBody872879464613134875asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949274969,"filename":"image_14012025_09_06_27_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/01e80a7eb97fdd4c2629db058ee3ee04.jpg","text":"TemporaryFile(/tmp/multipartBody927109075357071335asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949274969,"filename":"image_14012025_09_06_46_10414.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329146348","file1":"1329146340","file0":"1329146333","file4":"1329146362","file5":"1329146367","file3":"1329146356"},"map_files_photo_id_array":[{"photo_id":"1329146367","filename":"file5"},{"photo_id":"1329146348","filename":"file2"},{"photo_id":"1329146362","filename":"file4"},{"photo_id":"1329146340","filename":"file1"},{"photo_id":"1329146333","filename":"file0"},{"photo_id":"1329146356","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329146340":["hashtag1","hashtag2"]},{"1329146348":["hashtag1","hashtag2"]},{"1329146333":["hashtag1","hashtag2"]},{"1329146362":["hashtag1","hashtag2"]},{"1329146356":["hashtag1","hashtag2"]},{"1329146367":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329146340, 1329146348, 1329146333, 1329146362, 1329146356, 1329146367)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.61621308326721 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 15 --only_old 1
2025-01-15 14:54:32.753008
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/06/image_14012025_09_06_57_10352.jpg', '/home/pi/Desktop/images/14012025/09/06/image_14012025_09_07_06_9416.jpg', '/home/pi/Desktop/images/14012025/09/07/image_14012025_09_07_17_10374.jpg', '/home/pi/Desktop/images/14012025/09/07/image_14012025_09_07_26_9374.jpg', '/home/pi/Desktop/images/14012025/09/07/image_14012025_09_07_36_10433.jpg', '/home/pi/Desktop/images/14012025/09/07/image_14012025_09_07_46_9424.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/06/image_14012025_09_06_57_10352.jpg
/home/pi/Desktop/images/14012025/09/06/image_14012025_09_07_06_9416.jpg
/home/pi/Desktop/images/14012025/09/07/image_14012025_09_07_17_10374.jpg
/home/pi/Desktop/images/14012025/09/07/image_14012025_09_07_26_9374.jpg
/home/pi/Desktop/images/14012025/09/07/image_14012025_09_07_36_10433.jpg
/home/pi/Desktop/images/14012025/09/07/image_14012025_09_07_46_9424.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329146438","1329146405","1329146429","1329146417","1329146434","1329146397"],"photo_ids_order":["1329146397","1329146405","1329146417","1329146429","1329146434","1329146438"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d6e33b2896889f672c793f7c7360f534.jpg","text":"TemporaryFile(/tmp/multipartBody931674694021241494asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949335266,"filename":"image_14012025_09_07_46_9424.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/522fee30d0412ea8c3fafd1577297b44.jpg","text":"TemporaryFile(/tmp/multipartBody3583767515912155663asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949335266,"filename":"image_14012025_09_07_06_9416.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/863d038474b1c46d1f6ff278bc471cad.jpg","text":"TemporaryFile(/tmp/multipartBody2835709431549547494asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949335266,"filename":"image_14012025_09_07_26_9374.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/07b0e611abc3a6c0e5135a7277e6ab02.jpg","text":"TemporaryFile(/tmp/multipartBody3434357646410985779asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949335266,"filename":"image_14012025_09_07_17_10374.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d0f7ebb9fb26e2c132c5ec97de9c2368.jpg","text":"TemporaryFile(/tmp/multipartBody7626500052965551548asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949335266,"filename":"image_14012025_09_07_36_10433.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b900dafb620a4f8a879e29d4eb53c55c.jpg","text":"TemporaryFile(/tmp/multipartBody4665660101969345302asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949335266,"filename":"image_14012025_09_06_57_10352.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329146417","file1":"1329146405","file0":"1329146397","file4":"1329146434","file5":"1329146438","file3":"1329146429"},"map_files_photo_id_array":[{"photo_id":"1329146438","filename":"file5"},{"photo_id":"1329146417","filename":"file2"},{"photo_id":"1329146434","filename":"file4"},{"photo_id":"1329146405","filename":"file1"},{"photo_id":"1329146397","filename":"file0"},{"photo_id":"1329146429","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329146438":["hashtag1","hashtag2"]},{"1329146405":["hashtag1","hashtag2"]},{"1329146429":["hashtag1","hashtag2"]},{"1329146417":["hashtag1","hashtag2"]},{"1329146434":["hashtag1","hashtag2"]},{"1329146397":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329146438, 1329146405, 1329146429, 1329146417, 1329146434, 1329146397)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.74235415458679 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 15 --only_old 1
2025-01-15 14:55:33.144138
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/07/image_14012025_09_07_56_10411.jpg', '/home/pi/Desktop/images/14012025/09/07/image_14012025_09_08_07_10361.jpg', '/home/pi/Desktop/images/14012025/09/08/image_14012025_09_08_16_9353.jpg', '/home/pi/Desktop/images/14012025/09/08/image_14012025_09_08_26_10446.jpg', '/home/pi/Desktop/images/14012025/09/08/image_14012025_09_08_37_10355.jpg', '/home/pi/Desktop/images/14012025/09/08/image_14012025_09_08_46_9350.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/07/image_14012025_09_07_56_10411.jpg
/home/pi/Desktop/images/14012025/09/07/image_14012025_09_08_07_10361.jpg
/home/pi/Desktop/images/14012025/09/08/image_14012025_09_08_16_9353.jpg
/home/pi/Desktop/images/14012025/09/08/image_14012025_09_08_26_10446.jpg
/home/pi/Desktop/images/14012025/09/08/image_14012025_09_08_37_10355.jpg
/home/pi/Desktop/images/14012025/09/08/image_14012025_09_08_46_9350.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329146480","1329146510","1329146504","1329146497","1329146515","1329146487"],"photo_ids_order":["1329146480","1329146487","1329146497","1329146504","1329146510","1329146515"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e6c4653cc6114c34ff9b4818f61bc0f3.jpg","text":"TemporaryFile(/tmp/multipartBody2678463210985389718asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949395667,"filename":"image_14012025_09_07_56_10411.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9bb03a485a3420ae22dcf1a643c0ec05.jpg","text":"TemporaryFile(/tmp/multipartBody1714918881797034869asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949395667,"filename":"image_14012025_09_08_37_10355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5e9d130aad5f34331ebdcde8e440e186.jpg","text":"TemporaryFile(/tmp/multipartBody5137605751292913716asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949395667,"filename":"image_14012025_09_08_26_10446.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0e5d218b33b366e6390eeda6a1ccfbb6.jpg","text":"TemporaryFile(/tmp/multipartBody7052360841853505933asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949395667,"filename":"image_14012025_09_08_16_9353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0c4172e3d82c65a923b8d3090897533d.jpg","text":"TemporaryFile(/tmp/multipartBody2544288887481153707asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949395667,"filename":"image_14012025_09_08_46_9350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/684bcb107a4bb58d5da6743d02e5ebcf.jpg","text":"TemporaryFile(/tmp/multipartBody3671387054565353090asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949395667,"filename":"image_14012025_09_08_07_10361.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329146497","file1":"1329146487","file0":"1329146480","file4":"1329146510","file5":"1329146515","file3":"1329146504"},"map_files_photo_id_array":[{"photo_id":"1329146515","filename":"file5"},{"photo_id":"1329146497","filename":"file2"},{"photo_id":"1329146510","filename":"file4"},{"photo_id":"1329146487","filename":"file1"},{"photo_id":"1329146480","filename":"file0"},{"photo_id":"1329146504","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329146480":["hashtag1","hashtag2"]},{"1329146510":["hashtag1","hashtag2"]},{"1329146504":["hashtag1","hashtag2"]},{"1329146497":["hashtag1","hashtag2"]},{"1329146515":["hashtag1","hashtag2"]},{"1329146487":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329146480, 1329146510, 1329146504, 1329146497, 1329146515, 1329146487)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.82208466529846 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 15 --only_old 1
2025-01-15 14:56:32.330896
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/08/image_14012025_09_08_56_10325.jpg', '/home/pi/Desktop/images/14012025/09/08/image_14012025_09_09_06_9390.jpg', '/home/pi/Desktop/images/14012025/09/09/image_14012025_09_09_16_10469.jpg', '/home/pi/Desktop/images/14012025/09/09/image_14012025_09_09_27_10435.jpg', '/home/pi/Desktop/images/14012025/09/09/image_14012025_09_09_36_9371.jpg', '/home/pi/Desktop/images/14012025/09/09/image_14012025_09_09_47_10433.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/08/image_14012025_09_08_56_10325.jpg
/home/pi/Desktop/images/14012025/09/08/image_14012025_09_09_06_9390.jpg
/home/pi/Desktop/images/14012025/09/09/image_14012025_09_09_16_10469.jpg
/home/pi/Desktop/images/14012025/09/09/image_14012025_09_09_27_10435.jpg
/home/pi/Desktop/images/14012025/09/09/image_14012025_09_09_36_9371.jpg
/home/pi/Desktop/images/14012025/09/09/image_14012025_09_09_47_10433.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329146547","1329146555","1329146572","1329146539","1329146577","1329146565"],"photo_ids_order":["1329146539","1329146547","1329146555","1329146565","1329146572","1329146577"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f62b806244620a111717e4b816b7aeb5.jpg","text":"TemporaryFile(/tmp/multipartBody8886585387050400409asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949454842,"filename":"image_14012025_09_09_06_9390.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/eb0f5d2ea4ec6b86b137df5599b25f51.jpg","text":"TemporaryFile(/tmp/multipartBody4225172408796562246asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949454842,"filename":"image_14012025_09_09_16_10469.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a24d927eb268121a5fa3f7bb76b571ff.jpg","text":"TemporaryFile(/tmp/multipartBody7136940681597742814asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949454842,"filename":"image_14012025_09_09_36_9371.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8646dac877e925f202e77f9001ffadf1.jpg","text":"TemporaryFile(/tmp/multipartBody685006734894209324asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949454842,"filename":"image_14012025_09_08_56_10325.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e79454003d171d8694f8cf95cdf995bf.jpg","text":"TemporaryFile(/tmp/multipartBody877864524925014271asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949454842,"filename":"image_14012025_09_09_47_10433.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/36a4fa40d9bf9fcb0bbb10b27c3329c2.jpg","text":"TemporaryFile(/tmp/multipartBody2900367060216830861asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949454842,"filename":"image_14012025_09_09_27_10435.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329146555","file1":"1329146547","file0":"1329146539","file4":"1329146572","file5":"1329146577","file3":"1329146565"},"map_files_photo_id_array":[{"photo_id":"1329146577","filename":"file5"},{"photo_id":"1329146555","filename":"file2"},{"photo_id":"1329146572","filename":"file4"},{"photo_id":"1329146547","filename":"file1"},{"photo_id":"1329146539","filename":"file0"},{"photo_id":"1329146565","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329146547":["hashtag1","hashtag2"]},{"1329146555":["hashtag1","hashtag2"]},{"1329146572":["hashtag1","hashtag2"]},{"1329146539":["hashtag1","hashtag2"]},{"1329146577":["hashtag1","hashtag2"]},{"1329146565":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329146547, 1329146555, 1329146572, 1329146539, 1329146577, 1329146565)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.428651094436646 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 15 --only_old 1
2025-01-15 14:57:32.551622
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/09/image_14012025_09_09_56_9330.jpg', '/home/pi/Desktop/images/14012025/09/09/image_14012025_09_10_06_10420.jpg', '/home/pi/Desktop/images/14012025/09/10/image_14012025_09_10_17_10352.jpg', '/home/pi/Desktop/images/14012025/09/10/image_14012025_09_10_26_9407.jpg', '/home/pi/Desktop/images/14012025/09/10/image_14012025_09_10_47_10385.jpg', '/home/pi/Desktop/images/14012025/09/10/image_14012025_09_10_56_9330.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/09/image_14012025_09_09_56_9330.jpg
/home/pi/Desktop/images/14012025/09/09/image_14012025_09_10_06_10420.jpg
/home/pi/Desktop/images/14012025/09/10/image_14012025_09_10_17_10352.jpg
/home/pi/Desktop/images/14012025/09/10/image_14012025_09_10_26_9407.jpg
/home/pi/Desktop/images/14012025/09/10/image_14012025_09_10_47_10385.jpg
/home/pi/Desktop/images/14012025/09/10/image_14012025_09_10_56_9330.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
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
2025-01-15 14:59:04.286469
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/10/image_15012025_00_11_07_9343.jpg', '/home/pi/Desktop/images/15012025/00/11/image_15012025_00_11_17_10495.jpg', '/home/pi/Desktop/images/15012025/00/11/image_15012025_00_11_37_10488.jpg', '/home/pi/Desktop/images/15012025/00/11/image_15012025_00_11_47_10385.jpg', '/home/pi/Desktop/images/15012025/00/11/image_15012025_00_11_57_9405.jpg', '/home/pi/Desktop/images/15012025/00/12/image_15012025_00_12_17_9345.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/10/image_15012025_00_11_07_9343.jpg
/home/pi/Desktop/images/15012025/00/11/image_15012025_00_11_17_10495.jpg
/home/pi/Desktop/images/15012025/00/11/image_15012025_00_11_37_10488.jpg
/home/pi/Desktop/images/15012025/00/11/image_15012025_00_11_47_10385.jpg
/home/pi/Desktop/images/15012025/00/11/image_15012025_00_11_57_9405.jpg
/home/pi/Desktop/images/15012025/00/12/image_15012025_00_12_17_9345.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329146732","1329146720","1329146725","1329146749","1329146740","1329146757"],"photo_ids_order":["1329146720","1329146725","1329146732","1329146740","1329146749","1329146757"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c8a1d80de0857b42cf1cc294ca7c1d0b.jpg","text":"TemporaryFile(/tmp/multipartBody7929595832884328069asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949605351,"filename":"image_15012025_00_11_37_10488.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e9002f7728f70e764d89f31355a8e7a8.jpg","text":"TemporaryFile(/tmp/multipartBody4787454618193847043asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949605351,"filename":"image_15012025_00_11_07_9343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e4ad23055809e4a9cb6d445b637bc57a.jpg","text":"TemporaryFile(/tmp/multipartBody3021373607370812467asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949605351,"filename":"image_15012025_00_11_17_10495.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/54524d647b89836ea91852713c4b3b13.jpg","text":"TemporaryFile(/tmp/multipartBody1083922122543526451asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949605351,"filename":"image_15012025_00_11_57_9405.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/70e1483ed193aae7b6413d7cce412791.jpg","text":"TemporaryFile(/tmp/multipartBody16124327654293361asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949605351,"filename":"image_15012025_00_11_47_10385.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/efb7764ecef28a94b393465681980295.jpg","text":"TemporaryFile(/tmp/multipartBody8735480510001590433asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949605351,"filename":"image_15012025_00_12_17_9345.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329146732","file1":"1329146725","file0":"1329146720","file4":"1329146749","file5":"1329146757","file3":"1329146740"},"map_files_photo_id_array":[{"photo_id":"1329146757","filename":"file5"},{"photo_id":"1329146732","filename":"file2"},{"photo_id":"1329146749","filename":"file4"},{"photo_id":"1329146725","filename":"file1"},{"photo_id":"1329146720","filename":"file0"},{"photo_id":"1329146740","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329146732":["hashtag1","hashtag2"]},{"1329146720":["hashtag1","hashtag2"]},{"1329146725":["hashtag1","hashtag2"]},{"1329146749":["hashtag1","hashtag2"]},{"1329146740":["hashtag1","hashtag2"]},{"1329146757":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329146732, 1329146720, 1329146725, 1329146749, 1329146740, 1329146757)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.286975145339966 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 15 --only_old 1
2025-01-15 14:59:53.117990
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/09/image_14012025_09_09_56_9330.jpg', '/home/pi/Desktop/images/14012025/09/09/image_14012025_09_10_06_10420.jpg', '/home/pi/Desktop/images/14012025/09/10/image_14012025_09_10_17_10352.jpg', '/home/pi/Desktop/images/14012025/09/10/image_14012025_09_10_26_9407.jpg', '/home/pi/Desktop/images/14012025/09/10/image_14012025_09_10_47_10385.jpg', '/home/pi/Desktop/images/14012025/09/10/image_14012025_09_10_56_9330.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/09/image_14012025_09_09_56_9330.jpg
/home/pi/Desktop/images/14012025/09/09/image_14012025_09_10_06_10420.jpg
/home/pi/Desktop/images/14012025/09/10/image_14012025_09_10_17_10352.jpg
/home/pi/Desktop/images/14012025/09/10/image_14012025_09_10_26_9407.jpg
/home/pi/Desktop/images/14012025/09/10/image_14012025_09_10_47_10385.jpg
/home/pi/Desktop/images/14012025/09/10/image_14012025_09_10_56_9330.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329146792","1329146788","1329146782","1329146773","1329146800","1329146796"],"photo_ids_order":["1329146773","1329146782","1329146788","1329146792","1329146796","1329146800"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/754cb340a59b1912c2b07d1a12709496.jpg","text":"TemporaryFile(/tmp/multipartBody1837481477364971048asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949655579,"filename":"image_14012025_09_10_26_9407.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e9b77cda90c8ea474d620ce9dc1665e0.jpg","text":"TemporaryFile(/tmp/multipartBody3837836791882046899asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949655579,"filename":"image_14012025_09_10_17_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7e20fedfc69716ecaab08272a2c3aafc.jpg","text":"TemporaryFile(/tmp/multipartBody4842875339168518743asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949655579,"filename":"image_14012025_09_10_06_10420.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c1176c8888bdf97385b9c099a32b523f.jpg","text":"TemporaryFile(/tmp/multipartBody1469693093628747535asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949655579,"filename":"image_14012025_09_09_56_9330.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/61ab647d54f62c8ea463d57bf77c6a8a.jpg","text":"TemporaryFile(/tmp/multipartBody7669684231058858652asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949655579,"filename":"image_14012025_09_10_56_9330.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8f77966d3e79f5b18bf3dabaccd7c73f.jpg","text":"TemporaryFile(/tmp/multipartBody4059098050559852157asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949655579,"filename":"image_14012025_09_10_47_10385.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329146788","file1":"1329146782","file0":"1329146773","file4":"1329146796","file5":"1329146800","file3":"1329146792"},"map_files_photo_id_array":[{"photo_id":"1329146800","filename":"file5"},{"photo_id":"1329146788","filename":"file2"},{"photo_id":"1329146796","filename":"file4"},{"photo_id":"1329146782","filename":"file1"},{"photo_id":"1329146773","filename":"file0"},{"photo_id":"1329146792","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329146792":["hashtag1","hashtag2"]},{"1329146788":["hashtag1","hashtag2"]},{"1329146782":["hashtag1","hashtag2"]},{"1329146773":["hashtag1","hashtag2"]},{"1329146800":["hashtag1","hashtag2"]},{"1329146796":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329146792, 1329146788, 1329146782, 1329146773, 1329146800, 1329146796)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.00411772727966 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
2025-01-15 15:00:42.470709
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/12/image_15012025_00_12_27_10480.jpg', '/home/pi/Desktop/images/15012025/00/12/image_15012025_00_12_37_10372.jpg', '/home/pi/Desktop/images/15012025/00/12/image_15012025_00_13_08_10356.jpg', '/home/pi/Desktop/images/15012025/00/13/image_15012025_00_13_17_9339.jpg', '/home/pi/Desktop/images/15012025/00/13/image_15012025_00_13_27_10473.jpg', '/home/pi/Desktop/images/15012025/00/13/image_15012025_00_13_37_9331.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/12/image_15012025_00_12_27_10480.jpg
/home/pi/Desktop/images/15012025/00/12/image_15012025_00_12_37_10372.jpg
/home/pi/Desktop/images/15012025/00/12/image_15012025_00_13_08_10356.jpg
/home/pi/Desktop/images/15012025/00/13/image_15012025_00_13_17_9339.jpg
/home/pi/Desktop/images/15012025/00/13/image_15012025_00_13_27_10473.jpg
/home/pi/Desktop/images/15012025/00/13/image_15012025_00_13_37_9331.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329146828","1329146810","1329146842","1329146836","1329146848","1329146820"],"photo_ids_order":["1329146810","1329146820","1329146828","1329146836","1329146842","1329146848"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0bb36daeb3e818fd6b91d06d89758624.jpg","text":"TemporaryFile(/tmp/multipartBody7579312033449361218asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949703469,"filename":"image_15012025_00_13_08_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2aa3bb721110acbc763190e00eadaf35.jpg","text":"TemporaryFile(/tmp/multipartBody4570821816983679263asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949703469,"filename":"image_15012025_00_12_27_10480.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ae6963615a227e95b2f8388004bd635b.jpg","text":"TemporaryFile(/tmp/multipartBody2429745948061877403asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949703469,"filename":"image_15012025_00_13_27_10473.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4ec6d48edac81f9f4b89052073417355.jpg","text":"TemporaryFile(/tmp/multipartBody217743057353261717asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949703469,"filename":"image_15012025_00_13_17_9339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2bb2660ffd5fed72bc4dd2431aeb6a85.jpg","text":"TemporaryFile(/tmp/multipartBody1888757171784573676asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949703469,"filename":"image_15012025_00_13_37_9331.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e385810704634a8f4e3a4fb693d2d6a2.jpg","text":"TemporaryFile(/tmp/multipartBody5356426898662418435asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949703469,"filename":"image_15012025_00_12_37_10372.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329146828","file1":"1329146820","file0":"1329146810","file4":"1329146842","file5":"1329146848","file3":"1329146836"},"map_files_photo_id_array":[{"photo_id":"1329146848","filename":"file5"},{"photo_id":"1329146828","filename":"file2"},{"photo_id":"1329146842","filename":"file4"},{"photo_id":"1329146820","filename":"file1"},{"photo_id":"1329146810","filename":"file0"},{"photo_id":"1329146836","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329146828":["hashtag1","hashtag2"]},{"1329146810":["hashtag1","hashtag2"]},{"1329146842":["hashtag1","hashtag2"]},{"1329146836":["hashtag1","hashtag2"]},{"1329146848":["hashtag1","hashtag2"]},{"1329146820":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329146828, 1329146810, 1329146842, 1329146836, 1329146848, 1329146820)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.143381118774414 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 15 --only_old 1
2025-01-15 15:01:32.610013
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/10/image_14012025_09_11_06_10367.jpg', '/home/pi/Desktop/images/14012025/09/11/image_14012025_09_11_16_9346.jpg', '/home/pi/Desktop/images/14012025/09/11/image_14012025_09_11_26_10430.jpg', '/home/pi/Desktop/images/14012025/09/11/image_14012025_09_11_37_10353.jpg', '/home/pi/Desktop/images/14012025/09/11/image_14012025_09_11_46_9352.jpg', '/home/pi/Desktop/images/14012025/09/11/image_14012025_09_11_56_10367.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/10/image_14012025_09_11_06_10367.jpg
/home/pi/Desktop/images/14012025/09/11/image_14012025_09_11_16_9346.jpg
/home/pi/Desktop/images/14012025/09/11/image_14012025_09_11_26_10430.jpg
/home/pi/Desktop/images/14012025/09/11/image_14012025_09_11_37_10353.jpg
/home/pi/Desktop/images/14012025/09/11/image_14012025_09_11_46_9352.jpg
/home/pi/Desktop/images/14012025/09/11/image_14012025_09_11_56_10367.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329146897","1329146888","1329146927","1329146909","1329146923","1329146905"],"photo_ids_order":["1329146888","1329146897","1329146905","1329146909","1329146923","1329146927"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9acd87f41211cd486c0f80dacf019fab.jpg","text":"TemporaryFile(/tmp/multipartBody3937388721511309314asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949755148,"filename":"image_14012025_09_11_16_9346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6ceb744fe8bc9c7fb0e7be0cc76355f6.jpg","text":"TemporaryFile(/tmp/multipartBody6881173290821098199asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949755148,"filename":"image_14012025_09_11_06_10367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c9e2d282dc4af9a0025ef9d3ce4f5212.jpg","text":"TemporaryFile(/tmp/multipartBody6045284295038297884asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949755148,"filename":"image_14012025_09_11_56_10367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/17357f8460e5c8d22702a4b685ad3c66.jpg","text":"TemporaryFile(/tmp/multipartBody1540063448190540125asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949755148,"filename":"image_14012025_09_11_37_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e457d0c7ffe811319464d3ec0adee494.jpg","text":"TemporaryFile(/tmp/multipartBody6189256401413094638asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949755148,"filename":"image_14012025_09_11_46_9352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2dab53f137313b35915e30073543fe90.jpg","text":"TemporaryFile(/tmp/multipartBody1866476587173120825asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949755148,"filename":"image_14012025_09_11_26_10430.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329146905","file1":"1329146897","file0":"1329146888","file4":"1329146923","file5":"1329146927","file3":"1329146909"},"map_files_photo_id_array":[{"photo_id":"1329146927","filename":"file5"},{"photo_id":"1329146905","filename":"file2"},{"photo_id":"1329146923","filename":"file4"},{"photo_id":"1329146897","filename":"file1"},{"photo_id":"1329146888","filename":"file0"},{"photo_id":"1329146909","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329146897":["hashtag1","hashtag2"]},{"1329146888":["hashtag1","hashtag2"]},{"1329146927":["hashtag1","hashtag2"]},{"1329146909":["hashtag1","hashtag2"]},{"1329146923":["hashtag1","hashtag2"]},{"1329146905":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329146897, 1329146888, 1329146927, 1329146909, 1329146923, 1329146905)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 49.741939306259155 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 15 --only_old 1
2025-01-15 15:02:32.784919
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/11/image_14012025_09_12_07_10336.jpg', '/home/pi/Desktop/images/14012025/09/12/image_14012025_09_12_16_9341.jpg', '/home/pi/Desktop/images/14012025/09/12/image_14012025_09_12_26_10455.jpg', '/home/pi/Desktop/images/14012025/09/12/image_14012025_09_12_37_10349.jpg', '/home/pi/Desktop/images/14012025/09/12/image_14012025_09_12_46_9400.jpg', '/home/pi/Desktop/images/14012025/09/12/image_14012025_09_12_57_10451.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/11/image_14012025_09_12_07_10336.jpg
/home/pi/Desktop/images/14012025/09/12/image_14012025_09_12_16_9341.jpg
/home/pi/Desktop/images/14012025/09/12/image_14012025_09_12_26_10455.jpg
/home/pi/Desktop/images/14012025/09/12/image_14012025_09_12_37_10349.jpg
/home/pi/Desktop/images/14012025/09/12/image_14012025_09_12_46_9400.jpg
/home/pi/Desktop/images/14012025/09/12/image_14012025_09_12_57_10451.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329146993","1329146987","1329146965","1329146997","1329146979","1329146970"],"photo_ids_order":["1329146965","1329146970","1329146979","1329146987","1329146993","1329146997"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3cf5aaeef4264cf57cb4952130374d57.jpg","text":"TemporaryFile(/tmp/multipartBody6291624318119406379asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949815307,"filename":"image_14012025_09_12_46_9400.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/67c9d0dc796331ea0b999a0c0204ccc6.jpg","text":"TemporaryFile(/tmp/multipartBody5758529759297577160asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949815307,"filename":"image_14012025_09_12_37_10349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/33aa2b535e3d945383d9ae3557888370.jpg","text":"TemporaryFile(/tmp/multipartBody8924459374442170333asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949815307,"filename":"image_14012025_09_12_07_10336.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9055b42b8716b4aad6d0259b70845ac0.jpg","text":"TemporaryFile(/tmp/multipartBody3587330087073622710asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949815307,"filename":"image_14012025_09_12_57_10451.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/537798e36e84ccd2659097ca12e93ea9.jpg","text":"TemporaryFile(/tmp/multipartBody5746572617833520029asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949815307,"filename":"image_14012025_09_12_26_10455.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/34b04cd1fd728dd87748937ef896bbf5.jpg","text":"TemporaryFile(/tmp/multipartBody9015024918454960103asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949815307,"filename":"image_14012025_09_12_16_9341.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329146979","file1":"1329146970","file0":"1329146965","file4":"1329146993","file5":"1329146997","file3":"1329146987"},"map_files_photo_id_array":[{"photo_id":"1329146997","filename":"file5"},{"photo_id":"1329146979","filename":"file2"},{"photo_id":"1329146993","filename":"file4"},{"photo_id":"1329146970","filename":"file1"},{"photo_id":"1329146965","filename":"file0"},{"photo_id":"1329146987","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329146993":["hashtag1","hashtag2"]},{"1329146987":["hashtag1","hashtag2"]},{"1329146965":["hashtag1","hashtag2"]},{"1329146997":["hashtag1","hashtag2"]},{"1329146979":["hashtag1","hashtag2"]},{"1329146970":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329146993, 1329146987, 1329146965, 1329146997, 1329146979, 1329146970)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.6943154335022 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 15 --only_old 1
2025-01-15 15:03:32.900437
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/12/image_14012025_09_13_06_9393.jpg', '/home/pi/Desktop/images/14012025/09/13/image_14012025_09_13_16_10404.jpg', '/home/pi/Desktop/images/14012025/09/13/image_14012025_09_13_27_10363.jpg', '/home/pi/Desktop/images/14012025/09/13/image_14012025_09_13_36_9431.jpg', '/home/pi/Desktop/images/14012025/09/13/image_14012025_09_13_56_9329.jpg', '/home/pi/Desktop/images/14012025/09/13/image_14012025_09_14_06_10463.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/12/image_14012025_09_13_06_9393.jpg
/home/pi/Desktop/images/14012025/09/13/image_14012025_09_13_16_10404.jpg
/home/pi/Desktop/images/14012025/09/13/image_14012025_09_13_27_10363.jpg
/home/pi/Desktop/images/14012025/09/13/image_14012025_09_13_36_9431.jpg
/home/pi/Desktop/images/14012025/09/13/image_14012025_09_13_56_9329.jpg
/home/pi/Desktop/images/14012025/09/13/image_14012025_09_14_06_10463.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329147032","1329147041","1329147046","1329147051","1329147021","1329147024"],"photo_ids_order":["1329147021","1329147024","1329147032","1329147041","1329147046","1329147051"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/45ebcd16c487f9fbc47976b0896fc4bc.jpg","text":"TemporaryFile(/tmp/multipartBody2231012539900958919asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949875434,"filename":"image_14012025_09_13_27_10363.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/83883a64764e2dbaee2c60d368075e1f.jpg","text":"TemporaryFile(/tmp/multipartBody7632364525137094893asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949875434,"filename":"image_14012025_09_13_36_9431.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/df2c13b667aaea02f12831e6cc3ee5b9.jpg","text":"TemporaryFile(/tmp/multipartBody2750593945892390274asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949875434,"filename":"image_14012025_09_13_56_9329.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3cd75447481bd7c10d666e24d0073ebd.jpg","text":"TemporaryFile(/tmp/multipartBody6298518323859270567asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949875434,"filename":"image_14012025_09_14_06_10463.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2cf5c33ea5a00f7527a24702c470b6ca.jpg","text":"TemporaryFile(/tmp/multipartBody2077756789418221402asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949875434,"filename":"image_14012025_09_13_06_9393.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b832fe9b3e6f676a29c455dce420bb04.jpg","text":"TemporaryFile(/tmp/multipartBody7511428703716734275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949875434,"filename":"image_14012025_09_13_16_10404.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329147032","file1":"1329147024","file0":"1329147021","file4":"1329147046","file5":"1329147051","file3":"1329147041"},"map_files_photo_id_array":[{"photo_id":"1329147051","filename":"file5"},{"photo_id":"1329147032","filename":"file2"},{"photo_id":"1329147046","filename":"file4"},{"photo_id":"1329147024","filename":"file1"},{"photo_id":"1329147021","filename":"file0"},{"photo_id":"1329147041","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329147032":["hashtag1","hashtag2"]},{"1329147041":["hashtag1","hashtag2"]},{"1329147046":["hashtag1","hashtag2"]},{"1329147051":["hashtag1","hashtag2"]},{"1329147021":["hashtag1","hashtag2"]},{"1329147024":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329147032, 1329147041, 1329147046, 1329147051, 1329147021, 1329147024)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.716418504714966 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 15 --only_old 1
2025-01-15 15:04:32.276890
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/14/image_14012025_09_14_17_10351.jpg', '/home/pi/Desktop/images/14012025/09/14/image_14012025_09_14_47_10338.jpg', '/home/pi/Desktop/images/14012025/09/14/image_14012025_09_14_56_9403.jpg', '/home/pi/Desktop/images/14012025/09/14/image_14012025_09_15_07_10356.jpg', '/home/pi/Desktop/images/14012025/09/15/image_14012025_09_15_16_9349.jpg', '/home/pi/Desktop/images/14012025/09/15/image_14012025_09_15_37_10328.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/14/image_14012025_09_14_17_10351.jpg
/home/pi/Desktop/images/14012025/09/14/image_14012025_09_14_47_10338.jpg
/home/pi/Desktop/images/14012025/09/14/image_14012025_09_14_56_9403.jpg
/home/pi/Desktop/images/14012025/09/14/image_14012025_09_15_07_10356.jpg
/home/pi/Desktop/images/14012025/09/15/image_14012025_09_15_16_9349.jpg
/home/pi/Desktop/images/14012025/09/15/image_14012025_09_15_37_10328.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 2.1640937328338623 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
2025-01-15 15:04:42.159732
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/13/image_15012025_00_13_47_10410.jpg', '/home/pi/Desktop/images/15012025/00/13/image_15012025_00_14_07_9341.jpg', '/home/pi/Desktop/images/15012025/00/14/image_15012025_00_14_17_10425.jpg', '/home/pi/Desktop/images/15012025/00/14/image_15012025_00_14_28_10372.jpg', '/home/pi/Desktop/images/15012025/00/14/image_15012025_00_14_37_9351.jpg', '/home/pi/Desktop/images/15012025/00/14/image_15012025_00_14_47_10425.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/13/image_15012025_00_13_47_10410.jpg
/home/pi/Desktop/images/15012025/00/13/image_15012025_00_14_07_9341.jpg
/home/pi/Desktop/images/15012025/00/14/image_15012025_00_14_17_10425.jpg
/home/pi/Desktop/images/15012025/00/14/image_15012025_00_14_28_10372.jpg
/home/pi/Desktop/images/15012025/00/14/image_15012025_00_14_37_9351.jpg
/home/pi/Desktop/images/15012025/00/14/image_15012025_00_14_47_10425.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329147111","1329147149","1329147152","1329147081","1329147147","1329147129"],"photo_ids_order":["1329147081","1329147111","1329147129","1329147147","1329147149","1329147152"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e6edad405f58c552dd940efa61554d04.jpg","text":"TemporaryFile(/tmp/multipartBody8116870935323197482asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949943142,"filename":"image_15012025_00_14_07_9341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/36014934992e7a26cd42d72b8b9b690c.jpg","text":"TemporaryFile(/tmp/multipartBody8140003874920704024asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949943142,"filename":"image_15012025_00_14_37_9351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/eac796f4207f015d66191e12c79b3417.jpg","text":"TemporaryFile(/tmp/multipartBody8390703203911590516asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949943142,"filename":"image_15012025_00_14_47_10425.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/997a3edb2a2d16cd90b0d8ffcca69cd9.jpg","text":"TemporaryFile(/tmp/multipartBody2901838327786609899asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949943142,"filename":"image_15012025_00_13_47_10410.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/334e6230eb65f99c76dd13a92ce99a35.jpg","text":"TemporaryFile(/tmp/multipartBody6494304344394049844asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949943142,"filename":"image_15012025_00_14_28_10372.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9144c5d72c861076835b91a3c7920873.jpg","text":"TemporaryFile(/tmp/multipartBody3144062943652744827asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949943142,"filename":"image_15012025_00_14_17_10425.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329147129","file1":"1329147111","file0":"1329147081","file4":"1329147149","file5":"1329147152","file3":"1329147147"},"map_files_photo_id_array":[{"photo_id":"1329147152","filename":"file5"},{"photo_id":"1329147129","filename":"file2"},{"photo_id":"1329147149","filename":"file4"},{"photo_id":"1329147111","filename":"file1"},{"photo_id":"1329147081","filename":"file0"},{"photo_id":"1329147147","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329147111":["hashtag1","hashtag2"]},{"1329147149":["hashtag1","hashtag2"]},{"1329147152":["hashtag1","hashtag2"]},{"1329147081":["hashtag1","hashtag2"]},{"1329147147":["hashtag1","hashtag2"]},{"1329147129":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329147111, 1329147149, 1329147152, 1329147081, 1329147147, 1329147129)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.14422273635864 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 15 --only_old 1
2025-01-15 15:05:32.490053
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/14/image_14012025_09_14_17_10351.jpg', '/home/pi/Desktop/images/14012025/09/14/image_14012025_09_14_47_10338.jpg', '/home/pi/Desktop/images/14012025/09/14/image_14012025_09_14_56_9403.jpg', '/home/pi/Desktop/images/14012025/09/14/image_14012025_09_15_07_10356.jpg', '/home/pi/Desktop/images/14012025/09/15/image_14012025_09_15_16_9349.jpg', '/home/pi/Desktop/images/14012025/09/15/image_14012025_09_15_37_10328.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/14/image_14012025_09_14_17_10351.jpg
/home/pi/Desktop/images/14012025/09/14/image_14012025_09_14_47_10338.jpg
/home/pi/Desktop/images/14012025/09/14/image_14012025_09_14_56_9403.jpg
/home/pi/Desktop/images/14012025/09/14/image_14012025_09_15_07_10356.jpg
/home/pi/Desktop/images/14012025/09/15/image_14012025_09_15_16_9349.jpg
/home/pi/Desktop/images/14012025/09/15/image_14012025_09_15_37_10328.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329147210","1329147218","1329147221","1329147199","1329147181","1329147189"],"photo_ids_order":["1329147181","1329147189","1329147199","1329147210","1329147218","1329147221"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bab897086f8991b1a9116046c01a37e1.jpg","text":"TemporaryFile(/tmp/multipartBody2525906875783703163asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949994940,"filename":"image_14012025_09_15_07_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dc9198b86b53fdbdaa4b54d5a9abf284.jpg","text":"TemporaryFile(/tmp/multipartBody9207179958688273154asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949994940,"filename":"image_14012025_09_15_16_9349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/705f753b48a307d8549f5bf0514bc885.jpg","text":"TemporaryFile(/tmp/multipartBody8447149706037954222asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949994940,"filename":"image_14012025_09_15_37_10328.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/78facf8276338945f828593bef3a2bc2.jpg","text":"TemporaryFile(/tmp/multipartBody4360102855362729100asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949994940,"filename":"image_14012025_09_14_56_9403.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/636faa488000de5f99c7c5313c60060a.jpg","text":"TemporaryFile(/tmp/multipartBody8911881253400684905asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949994940,"filename":"image_14012025_09_14_17_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b36cc7b148c6fde12d41fd12719c6131.jpg","text":"TemporaryFile(/tmp/multipartBody6109741137845327665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736949994940,"filename":"image_14012025_09_14_47_10338.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329147199","file1":"1329147189","file0":"1329147181","file4":"1329147218","file5":"1329147221","file3":"1329147210"},"map_files_photo_id_array":[{"photo_id":"1329147221","filename":"file5"},{"photo_id":"1329147199","filename":"file2"},{"photo_id":"1329147218","filename":"file4"},{"photo_id":"1329147189","filename":"file1"},{"photo_id":"1329147181","filename":"file0"},{"photo_id":"1329147210","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329147210":["hashtag1","hashtag2"]},{"1329147218":["hashtag1","hashtag2"]},{"1329147221":["hashtag1","hashtag2"]},{"1329147199":["hashtag1","hashtag2"]},{"1329147181":["hashtag1","hashtag2"]},{"1329147189":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329147210, 1329147218, 1329147221, 1329147199, 1329147181, 1329147189)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.44729423522949 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 15 --only_old 1
2025-01-15 15:06:32.660805
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/15/image_14012025_09_15_46_9438.jpg', '/home/pi/Desktop/images/14012025/09/15/image_14012025_09_15_56_10398.jpg', '/home/pi/Desktop/images/14012025/09/15/image_14012025_09_16_07_10343.jpg', '/home/pi/Desktop/images/14012025/09/16/image_14012025_09_16_16_9342.jpg', '/home/pi/Desktop/images/14012025/09/16/image_14012025_09_16_26_10377.jpg', '/home/pi/Desktop/images/14012025/09/16/image_14012025_09_16_36_9355.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/15/image_14012025_09_15_46_9438.jpg
/home/pi/Desktop/images/14012025/09/15/image_14012025_09_15_56_10398.jpg
/home/pi/Desktop/images/14012025/09/15/image_14012025_09_16_07_10343.jpg
/home/pi/Desktop/images/14012025/09/16/image_14012025_09_16_16_9342.jpg
/home/pi/Desktop/images/14012025/09/16/image_14012025_09_16_26_10377.jpg
/home/pi/Desktop/images/14012025/09/16/image_14012025_09_16_36_9355.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329148063","1329147478","1329148123","1329147763","1329147274","1329147267"],"photo_ids_order":["1329147267","1329147274","1329147478","1329147763","1329148063","1329148123"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/67f826cb77b219e3a9bb131cd51d4e75.jpg","text":"TemporaryFile(/tmp/multipartBody3109168498887639115asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950055186,"filename":"image_14012025_09_16_26_10377.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/55792c222e5f5d5ba091e1d63f96f8f5.jpg","text":"TemporaryFile(/tmp/multipartBody6207230986241560014asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950055186,"filename":"image_14012025_09_16_07_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e3476cdca8e00c8e63fc527ebea3ba2a.jpg","text":"TemporaryFile(/tmp/multipartBody8542526287724058506asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950055186,"filename":"image_14012025_09_16_36_9355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/63b72d723a4e868b0bf3dc276610d14e.jpg","text":"TemporaryFile(/tmp/multipartBody3758470736808012801asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950055186,"filename":"image_14012025_09_16_16_9342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b5e5ac5097e56b812bbe9b285c90f167.jpg","text":"TemporaryFile(/tmp/multipartBody2054488855281899199asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950055186,"filename":"image_14012025_09_15_56_10398.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a1b64bd093e295c7ee2c9bdad552a3e3.jpg","text":"TemporaryFile(/tmp/multipartBody3999111217826358420asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950055186,"filename":"image_14012025_09_15_46_9438.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329147478","file1":"1329147274","file0":"1329147267","file4":"1329148063","file5":"1329148123","file3":"1329147763"},"map_files_photo_id_array":[{"photo_id":"1329148123","filename":"file5"},{"photo_id":"1329147478","filename":"file2"},{"photo_id":"1329148063","filename":"file4"},{"photo_id":"1329147274","filename":"file1"},{"photo_id":"1329147267","filename":"file0"},{"photo_id":"1329147763","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329148063":["hashtag1","hashtag2"]},{"1329147478":["hashtag1","hashtag2"]},{"1329148123":["hashtag1","hashtag2"]},{"1329147763":["hashtag1","hashtag2"]},{"1329147274":["hashtag1","hashtag2"]},{"1329147267":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329148063, 1329147478, 1329148123, 1329147763, 1329147274, 1329147267)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.90864300727844 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 15 --only_old 1
2025-01-15 15:07:32.810017
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/16/image_14012025_09_16_46_10464.jpg', '/home/pi/Desktop/images/14012025/09/16/image_14012025_09_16_57_10352.jpg', '/home/pi/Desktop/images/14012025/09/16/image_14012025_09_17_06_9341.jpg', '/home/pi/Desktop/images/14012025/09/17/image_14012025_09_17_16_10389.jpg', '/home/pi/Desktop/images/14012025/09/17/image_14012025_09_17_27_10348.jpg', '/home/pi/Desktop/images/14012025/09/17/image_14012025_09_17_36_9325.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/16/image_14012025_09_16_46_10464.jpg
/home/pi/Desktop/images/14012025/09/16/image_14012025_09_16_57_10352.jpg
/home/pi/Desktop/images/14012025/09/16/image_14012025_09_17_06_9341.jpg
/home/pi/Desktop/images/14012025/09/17/image_14012025_09_17_16_10389.jpg
/home/pi/Desktop/images/14012025/09/17/image_14012025_09_17_27_10348.jpg
/home/pi/Desktop/images/14012025/09/17/image_14012025_09_17_36_9325.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329148418","1329148297","1329148774","1329148290","1329148658","1329148538"],"photo_ids_order":["1329148290","1329148297","1329148418","1329148538","1329148658","1329148774"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e1117d1e44b1149ee4c3be3bbba69577.jpg","text":"TemporaryFile(/tmp/multipartBody5181322909489889389asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950115348,"filename":"image_14012025_09_17_06_9341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7b823f455f56bdfcf9471c72eb585c5e.jpg","text":"TemporaryFile(/tmp/multipartBody8892323948785077692asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950115348,"filename":"image_14012025_09_16_57_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7739db4f2c36d66b0365e8178c289559.jpg","text":"TemporaryFile(/tmp/multipartBody5943446681207986678asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950115348,"filename":"image_14012025_09_17_36_9325.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3259fdb682787ee1b2ff28ea3c690e63.jpg","text":"TemporaryFile(/tmp/multipartBody7909058553270552565asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950115348,"filename":"image_14012025_09_16_46_10464.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c546ae9a4d21e9bfe3282a9a172584a0.jpg","text":"TemporaryFile(/tmp/multipartBody4497443618390927894asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950115348,"filename":"image_14012025_09_17_27_10348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c85b86030aa42d46f5f268d72e419613.jpg","text":"TemporaryFile(/tmp/multipartBody4742102597009886375asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950115348,"filename":"image_14012025_09_17_16_10389.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329148418","file1":"1329148297","file0":"1329148290","file4":"1329148658","file5":"1329148774","file3":"1329148538"},"map_files_photo_id_array":[{"photo_id":"1329148774","filename":"file5"},{"photo_id":"1329148418","filename":"file2"},{"photo_id":"1329148658","filename":"file4"},{"photo_id":"1329148297","filename":"file1"},{"photo_id":"1329148290","filename":"file0"},{"photo_id":"1329148538","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329148418":["hashtag1","hashtag2"]},{"1329148297":["hashtag1","hashtag2"]},{"1329148774":["hashtag1","hashtag2"]},{"1329148290":["hashtag1","hashtag2"]},{"1329148658":["hashtag1","hashtag2"]},{"1329148538":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329148418, 1329148297, 1329148774, 1329148290, 1329148658, 1329148538)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.895517349243164 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 15 --only_old 1
2025-01-15 15:08:33.111941
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/17/image_14012025_09_17_46_10390.jpg', '/home/pi/Desktop/images/14012025/09/17/image_14012025_09_18_06_10410.jpg', '/home/pi/Desktop/images/14012025/09/18/image_14012025_09_18_16_9560.jpg', '/home/pi/Desktop/images/14012025/09/18/image_14012025_09_18_26_10406.jpg', '/home/pi/Desktop/images/14012025/09/18/image_14012025_09_18_37_10338.jpg', '/home/pi/Desktop/images/14012025/09/18/image_14012025_09_18_46_9351.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/17/image_14012025_09_17_46_10390.jpg
/home/pi/Desktop/images/14012025/09/17/image_14012025_09_18_06_10410.jpg
/home/pi/Desktop/images/14012025/09/18/image_14012025_09_18_16_9560.jpg
/home/pi/Desktop/images/14012025/09/18/image_14012025_09_18_26_10406.jpg
/home/pi/Desktop/images/14012025/09/18/image_14012025_09_18_37_10338.jpg
/home/pi/Desktop/images/14012025/09/18/image_14012025_09_18_46_9351.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 2.125861644744873 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
2025-01-15 15:08:43.073162
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/14/image_15012025_00_14_57_9358.jpg', '/home/pi/Desktop/images/15012025/00/14/image_15012025_00_15_07_10385.jpg', '/home/pi/Desktop/images/15012025/00/15/image_15012025_00_15_17_10335.jpg', '/home/pi/Desktop/images/15012025/00/15/image_15012025_00_15_27_9368.jpg', '/home/pi/Desktop/images/15012025/00/15/image_15012025_00_15_37_10430.jpg', '/home/pi/Desktop/images/15012025/00/15/image_15012025_00_15_47_9348.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/14/image_15012025_00_14_57_9358.jpg
/home/pi/Desktop/images/15012025/00/14/image_15012025_00_15_07_10385.jpg
/home/pi/Desktop/images/15012025/00/15/image_15012025_00_15_17_10335.jpg
/home/pi/Desktop/images/15012025/00/15/image_15012025_00_15_27_9368.jpg
/home/pi/Desktop/images/15012025/00/15/image_15012025_00_15_37_10430.jpg
/home/pi/Desktop/images/15012025/00/15/image_15012025_00_15_47_9348.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329150008","1329150076","1329150090","1329150016","1329150087","1329150095"],"photo_ids_order":["1329150008","1329150016","1329150076","1329150087","1329150090","1329150095"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/657156f9bdf54dc7126acd946d1b448a.jpg","text":"TemporaryFile(/tmp/multipartBody294245911322874412asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950184078,"filename":"image_15012025_00_14_57_9358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f154f8e5ed450d1ba71448ac21af5570.jpg","text":"TemporaryFile(/tmp/multipartBody2946598498117930324asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950184078,"filename":"image_15012025_00_15_17_10335.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/677481143e065d9a08e706e559d73770.jpg","text":"TemporaryFile(/tmp/multipartBody5303231450070163066asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950184078,"filename":"image_15012025_00_15_37_10430.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/927de03b01f755f0dfa4f0b54b9e688a.jpg","text":"TemporaryFile(/tmp/multipartBody3671119670134794130asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950184078,"filename":"image_15012025_00_15_07_10385.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6639a1f9bf7ed72f6d5697ac67dbd310.jpg","text":"TemporaryFile(/tmp/multipartBody3107805032181310652asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950184078,"filename":"image_15012025_00_15_27_9368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cfe3f330f1e053ae93b42c17a188e481.jpg","text":"TemporaryFile(/tmp/multipartBody4820146529984797706asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950184078,"filename":"image_15012025_00_15_47_9348.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329150076","file1":"1329150016","file0":"1329150008","file4":"1329150090","file5":"1329150095","file3":"1329150087"},"map_files_photo_id_array":[{"photo_id":"1329150095","filename":"file5"},{"photo_id":"1329150076","filename":"file2"},{"photo_id":"1329150090","filename":"file4"},{"photo_id":"1329150016","filename":"file1"},{"photo_id":"1329150008","filename":"file0"},{"photo_id":"1329150087","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329150008":["hashtag1","hashtag2"]},{"1329150076":["hashtag1","hashtag2"]},{"1329150090":["hashtag1","hashtag2"]},{"1329150016":["hashtag1","hashtag2"]},{"1329150087":["hashtag1","hashtag2"]},{"1329150095":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329150008, 1329150076, 1329150090, 1329150016, 1329150087, 1329150095)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.140920877456665 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 15 --only_old 1
2025-01-15 15:09:32.323843
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/17/image_14012025_09_17_46_10390.jpg', '/home/pi/Desktop/images/14012025/09/17/image_14012025_09_18_06_10410.jpg', '/home/pi/Desktop/images/14012025/09/18/image_14012025_09_18_16_9560.jpg', '/home/pi/Desktop/images/14012025/09/18/image_14012025_09_18_26_10406.jpg', '/home/pi/Desktop/images/14012025/09/18/image_14012025_09_18_37_10338.jpg', '/home/pi/Desktop/images/14012025/09/18/image_14012025_09_18_46_9351.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/17/image_14012025_09_17_46_10390.jpg
/home/pi/Desktop/images/14012025/09/17/image_14012025_09_18_06_10410.jpg
/home/pi/Desktop/images/14012025/09/18/image_14012025_09_18_16_9560.jpg
/home/pi/Desktop/images/14012025/09/18/image_14012025_09_18_26_10406.jpg
/home/pi/Desktop/images/14012025/09/18/image_14012025_09_18_37_10338.jpg
/home/pi/Desktop/images/14012025/09/18/image_14012025_09_18_46_9351.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329150140","1329150151","1329150229","1329150327","1329150156","1329150420"],"photo_ids_order":["1329150140","1329150151","1329150156","1329150229","1329150327","1329150420"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b838a84eec189d12993ea11397bd8b95.jpg","text":"TemporaryFile(/tmp/multipartBody6350229341555485330asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950234768,"filename":"image_14012025_09_17_46_10390.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/87445cfd235b50c05d3491cbbf6edc07.jpg","text":"TemporaryFile(/tmp/multipartBody5887350195461807281asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950234768,"filename":"image_14012025_09_18_06_10410.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/70d3e0cd9c2602b284a4005e5d40a9d8.jpg","text":"TemporaryFile(/tmp/multipartBody527442950950100232asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950234768,"filename":"image_14012025_09_18_26_10406.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9ac8fb40851f557cd0608a42035e2481.jpg","text":"TemporaryFile(/tmp/multipartBody1375693487106339668asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950234768,"filename":"image_14012025_09_18_37_10338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/006ac31eec134cc22710da68c943cb5a.jpg","text":"TemporaryFile(/tmp/multipartBody2472872273116006893asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950234768,"filename":"image_14012025_09_18_16_9560.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/af02bccd581695e56538ad3a0bce4e47.jpg","text":"TemporaryFile(/tmp/multipartBody8652444898309321193asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950234768,"filename":"image_14012025_09_18_46_9351.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329150156","file1":"1329150151","file0":"1329150140","file4":"1329150327","file5":"1329150420","file3":"1329150229"},"map_files_photo_id_array":[{"photo_id":"1329150420","filename":"file5"},{"photo_id":"1329150156","filename":"file2"},{"photo_id":"1329150327","filename":"file4"},{"photo_id":"1329150151","filename":"file1"},{"photo_id":"1329150140","filename":"file0"},{"photo_id":"1329150229","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329150140":["hashtag1","hashtag2"]},{"1329150151":["hashtag1","hashtag2"]},{"1329150229":["hashtag1","hashtag2"]},{"1329150327":["hashtag1","hashtag2"]},{"1329150156":["hashtag1","hashtag2"]},{"1329150420":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329150140, 1329150151, 1329150229, 1329150327, 1329150156, 1329150420)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.85909581184387 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 15 --only_old 1
2025-01-15 15:10:32.522660
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/18/image_14012025_09_18_56_10369.jpg', '/home/pi/Desktop/images/14012025/09/18/image_14012025_09_19_07_10346.jpg', '/home/pi/Desktop/images/14012025/09/19/image_14012025_09_19_16_9331.jpg', '/home/pi/Desktop/images/14012025/09/19/image_14012025_09_19_26_10359.jpg', '/home/pi/Desktop/images/14012025/09/19/image_14012025_09_19_37_10335.jpg', '/home/pi/Desktop/images/14012025/09/19/image_14012025_09_19_46_9346.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/18/image_14012025_09_18_56_10369.jpg
/home/pi/Desktop/images/14012025/09/18/image_14012025_09_19_07_10346.jpg
/home/pi/Desktop/images/14012025/09/19/image_14012025_09_19_16_9331.jpg
/home/pi/Desktop/images/14012025/09/19/image_14012025_09_19_26_10359.jpg
/home/pi/Desktop/images/14012025/09/19/image_14012025_09_19_37_10335.jpg
/home/pi/Desktop/images/14012025/09/19/image_14012025_09_19_46_9346.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329150559","1329150544","1329150631","1329150735","1329150729","1329150551"],"photo_ids_order":["1329150544","1329150551","1329150559","1329150631","1329150729","1329150735"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3bbe681248830cd241a093b0571891f1.jpg","text":"TemporaryFile(/tmp/multipartBody4396928398933695840asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950298371,"filename":"image_14012025_09_19_16_9331.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e61671da166c6bf5e1de379e2276c316.jpg","text":"TemporaryFile(/tmp/multipartBody3720648078485611790asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950298371,"filename":"image_14012025_09_18_56_10369.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dd7e07e8f39cbfabb0a345b8f09bac19.jpg","text":"TemporaryFile(/tmp/multipartBody4272642333630856515asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950298371,"filename":"image_14012025_09_19_26_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f86b6570126cc99c8a3767f20d2f6096.jpg","text":"TemporaryFile(/tmp/multipartBody2875215797835639636asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950298371,"filename":"image_14012025_09_19_46_9346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/376a464e1271a4a8837f1509ba4e5bc5.jpg","text":"TemporaryFile(/tmp/multipartBody215099673210877937asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950298371,"filename":"image_14012025_09_19_37_10335.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9a59d010bdf192c8e30778fce61a0157.jpg","text":"TemporaryFile(/tmp/multipartBody6031613274090951103asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950298371,"filename":"image_14012025_09_19_07_10346.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329150559","file1":"1329150551","file0":"1329150544","file4":"1329150729","file5":"1329150735","file3":"1329150631"},"map_files_photo_id_array":[{"photo_id":"1329150735","filename":"file5"},{"photo_id":"1329150559","filename":"file2"},{"photo_id":"1329150729","filename":"file4"},{"photo_id":"1329150551","filename":"file1"},{"photo_id":"1329150544","filename":"file0"},{"photo_id":"1329150631","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329150559":["hashtag1","hashtag2"]},{"1329150544":["hashtag1","hashtag2"]},{"1329150631":["hashtag1","hashtag2"]},{"1329150735":["hashtag1","hashtag2"]},{"1329150729":["hashtag1","hashtag2"]},{"1329150551":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329150559, 1329150544, 1329150631, 1329150735, 1329150729, 1329150551)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.59645318984985 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 15 --only_old 1
2025-01-15 15:11:32.888502
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/19/image_14012025_09_19_56_10467.jpg', '/home/pi/Desktop/images/14012025/09/19/image_14012025_09_20_06_9346.jpg', '/home/pi/Desktop/images/14012025/09/20/image_14012025_09_20_16_10408.jpg', '/home/pi/Desktop/images/14012025/09/20/image_14012025_09_20_27_10361.jpg', '/home/pi/Desktop/images/14012025/09/20/image_14012025_09_20_36_9324.jpg', '/home/pi/Desktop/images/14012025/09/20/image_14012025_09_20_46_10358.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/19/image_14012025_09_19_56_10467.jpg
/home/pi/Desktop/images/14012025/09/19/image_14012025_09_20_06_9346.jpg
/home/pi/Desktop/images/14012025/09/20/image_14012025_09_20_16_10408.jpg
/home/pi/Desktop/images/14012025/09/20/image_14012025_09_20_27_10361.jpg
/home/pi/Desktop/images/14012025/09/20/image_14012025_09_20_36_9324.jpg
/home/pi/Desktop/images/14012025/09/20/image_14012025_09_20_46_10358.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329150800","1329150784","1329150805","1329150808","1329150771","1329150779"],"photo_ids_order":["1329150771","1329150779","1329150784","1329150800","1329150805","1329150808"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/40cb5e324570612433c1a03f119b463d.jpg","text":"TemporaryFile(/tmp/multipartBody5698515344197443438asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950355406,"filename":"image_14012025_09_20_27_10361.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/927e238187f2a565011d888d1f519608.jpg","text":"TemporaryFile(/tmp/multipartBody2422953755682424688asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950355406,"filename":"image_14012025_09_20_16_10408.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/83114a52c7cbc7641fe4219d5bea8b05.jpg","text":"TemporaryFile(/tmp/multipartBody1667727714019469731asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950355406,"filename":"image_14012025_09_20_36_9324.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/83ad954f4eb9da2e3d1ba5e287f9c9cc.jpg","text":"TemporaryFile(/tmp/multipartBody4150898203525702402asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950355406,"filename":"image_14012025_09_20_46_10358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b24d7272916993050412e7b3657b41a4.jpg","text":"TemporaryFile(/tmp/multipartBody2712348769601346947asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950355406,"filename":"image_14012025_09_19_56_10467.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/77cb2e8cb55af313804cbbe90a610999.jpg","text":"TemporaryFile(/tmp/multipartBody7270737952910521154asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950355406,"filename":"image_14012025_09_20_06_9346.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329150784","file1":"1329150779","file0":"1329150771","file4":"1329150805","file5":"1329150808","file3":"1329150800"},"map_files_photo_id_array":[{"photo_id":"1329150808","filename":"file5"},{"photo_id":"1329150784","filename":"file2"},{"photo_id":"1329150805","filename":"file4"},{"photo_id":"1329150779","filename":"file1"},{"photo_id":"1329150771","filename":"file0"},{"photo_id":"1329150800","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329150800":["hashtag1","hashtag2"]},{"1329150784":["hashtag1","hashtag2"]},{"1329150805":["hashtag1","hashtag2"]},{"1329150808":["hashtag1","hashtag2"]},{"1329150771":["hashtag1","hashtag2"]},{"1329150779":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329150800, 1329150784, 1329150805, 1329150808, 1329150771, 1329150779)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.22489809989929 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 15 --only_old 1
2025-01-15 15:12:33.027553
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/20/image_14012025_09_20_57_10353.jpg', '/home/pi/Desktop/images/14012025/09/20/image_14012025_09_21_06_9397.jpg', '/home/pi/Desktop/images/14012025/09/21/image_14012025_09_21_16_10340.jpg', '/home/pi/Desktop/images/14012025/09/21/image_14012025_09_21_27_10354.jpg', '/home/pi/Desktop/images/14012025/09/21/image_14012025_09_21_36_9336.jpg', '/home/pi/Desktop/images/14012025/09/21/image_14012025_09_21_46_10357.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/20/image_14012025_09_20_57_10353.jpg
/home/pi/Desktop/images/14012025/09/20/image_14012025_09_21_06_9397.jpg
/home/pi/Desktop/images/14012025/09/21/image_14012025_09_21_16_10340.jpg
/home/pi/Desktop/images/14012025/09/21/image_14012025_09_21_27_10354.jpg
/home/pi/Desktop/images/14012025/09/21/image_14012025_09_21_36_9336.jpg
/home/pi/Desktop/images/14012025/09/21/image_14012025_09_21_46_10357.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 2.1971991062164307 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
2025-01-15 15:12:42.871688
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/15/image_15012025_00_15_57_10564.jpg', '/home/pi/Desktop/images/15012025/00/15/image_15012025_00_16_08_10360.jpg', '/home/pi/Desktop/images/15012025/00/16/image_15012025_00_16_27_9870.jpg', '/home/pi/Desktop/images/15012025/00/16/image_15012025_00_16_37_10465.jpg', '/home/pi/Desktop/images/15012025/00/16/image_15012025_00_16_48_10388.jpg', '/home/pi/Desktop/images/15012025/00/16/image_15012025_00_17_07_10427.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/15/image_15012025_00_15_57_10564.jpg
/home/pi/Desktop/images/15012025/00/15/image_15012025_00_16_08_10360.jpg
/home/pi/Desktop/images/15012025/00/16/image_15012025_00_16_27_9870.jpg
/home/pi/Desktop/images/15012025/00/16/image_15012025_00_16_37_10465.jpg
/home/pi/Desktop/images/15012025/00/16/image_15012025_00_16_48_10388.jpg
/home/pi/Desktop/images/15012025/00/16/image_15012025_00_17_07_10427.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329151333","1329151356","1329151344","1329151338","1329151326","1329151314"],"photo_ids_order":["1329151314","1329151326","1329151333","1329151338","1329151344","1329151356"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a02ef07a15253c3cb7635506fb741aec.jpg","text":"TemporaryFile(/tmp/multipartBody1566612414416505742asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950423849,"filename":"image_15012025_00_16_27_9870.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c9adface6188db985454820135f9e940.jpg","text":"TemporaryFile(/tmp/multipartBody5142651546543696313asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950423849,"filename":"image_15012025_00_17_07_10427.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b6a0cca61ba7937bb4305e67c9e9715a.jpg","text":"TemporaryFile(/tmp/multipartBody7286357833977650421asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950423849,"filename":"image_15012025_00_16_48_10388.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a7cc0e8f9768caacc17c199cbe064bf3.jpg","text":"TemporaryFile(/tmp/multipartBody2088490559011754986asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950423849,"filename":"image_15012025_00_16_37_10465.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e59c8575083fdf57809b80ad0678ee61.jpg","text":"TemporaryFile(/tmp/multipartBody692922527292033555asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950423849,"filename":"image_15012025_00_16_08_10360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/32f566ac4501654d716b3276db1efa37.jpg","text":"TemporaryFile(/tmp/multipartBody3281604692214699190asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950423849,"filename":"image_15012025_00_15_57_10564.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329151333","file1":"1329151326","file0":"1329151314","file4":"1329151344","file5":"1329151356","file3":"1329151338"},"map_files_photo_id_array":[{"photo_id":"1329151356","filename":"file5"},{"photo_id":"1329151333","filename":"file2"},{"photo_id":"1329151344","filename":"file4"},{"photo_id":"1329151326","filename":"file1"},{"photo_id":"1329151314","filename":"file0"},{"photo_id":"1329151338","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329151333":["hashtag1","hashtag2"]},{"1329151356":["hashtag1","hashtag2"]},{"1329151344":["hashtag1","hashtag2"]},{"1329151338":["hashtag1","hashtag2"]},{"1329151326":["hashtag1","hashtag2"]},{"1329151314":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329151333, 1329151356, 1329151344, 1329151338, 1329151326, 1329151314)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.71741461753845 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 15 --only_old 1
2025-01-15 15:13:32.173949
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/20/image_14012025_09_20_57_10353.jpg', '/home/pi/Desktop/images/14012025/09/20/image_14012025_09_21_06_9397.jpg', '/home/pi/Desktop/images/14012025/09/21/image_14012025_09_21_16_10340.jpg', '/home/pi/Desktop/images/14012025/09/21/image_14012025_09_21_27_10354.jpg', '/home/pi/Desktop/images/14012025/09/21/image_14012025_09_21_36_9336.jpg', '/home/pi/Desktop/images/14012025/09/21/image_14012025_09_21_46_10357.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/20/image_14012025_09_20_57_10353.jpg
/home/pi/Desktop/images/14012025/09/20/image_14012025_09_21_06_9397.jpg
/home/pi/Desktop/images/14012025/09/21/image_14012025_09_21_16_10340.jpg
/home/pi/Desktop/images/14012025/09/21/image_14012025_09_21_27_10354.jpg
/home/pi/Desktop/images/14012025/09/21/image_14012025_09_21_36_9336.jpg
/home/pi/Desktop/images/14012025/09/21/image_14012025_09_21_46_10357.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329151396","1329151408","1329151386","1329151404","1329151391","1329151400"],"photo_ids_order":["1329151386","1329151391","1329151396","1329151400","1329151404","1329151408"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/884573d232671ffc77c0094359f84c1a.jpg","text":"TemporaryFile(/tmp/multipartBody6784487233060606324asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950474620,"filename":"image_14012025_09_21_16_10340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5e85ebf03c95ee0778032f646d3cb76a.jpg","text":"TemporaryFile(/tmp/multipartBody994485407914268376asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950474620,"filename":"image_14012025_09_21_46_10357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8492efa9ddb9de6c462ffe16aa6f3941.jpg","text":"TemporaryFile(/tmp/multipartBody1744967878094226449asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950474620,"filename":"image_14012025_09_20_57_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7f324e0ee436d512d58a446a149a1941.jpg","text":"TemporaryFile(/tmp/multipartBody1712680452722379952asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950474620,"filename":"image_14012025_09_21_36_9336.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/595a99fb59987c31f3129bf4e463b9b5.jpg","text":"TemporaryFile(/tmp/multipartBody6749568964270972725asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950474620,"filename":"image_14012025_09_21_06_9397.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/89be28fd690e79c577b8854dc642f4a9.jpg","text":"TemporaryFile(/tmp/multipartBody8179394387631517429asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950474620,"filename":"image_14012025_09_21_27_10354.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329151396","file1":"1329151391","file0":"1329151386","file4":"1329151404","file5":"1329151408","file3":"1329151400"},"map_files_photo_id_array":[{"photo_id":"1329151408","filename":"file5"},{"photo_id":"1329151396","filename":"file2"},{"photo_id":"1329151404","filename":"file4"},{"photo_id":"1329151391","filename":"file1"},{"photo_id":"1329151386","filename":"file0"},{"photo_id":"1329151400","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329151396":["hashtag1","hashtag2"]},{"1329151408":["hashtag1","hashtag2"]},{"1329151386":["hashtag1","hashtag2"]},{"1329151404":["hashtag1","hashtag2"]},{"1329151391":["hashtag1","hashtag2"]},{"1329151400":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329151396, 1329151408, 1329151386, 1329151404, 1329151391, 1329151400)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.24769926071167 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 15 --only_old 1
2025-01-15 15:14:32.464436
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/21/image_14012025_09_21_57_10354.jpg', '/home/pi/Desktop/images/14012025/09/21/image_14012025_09_22_06_9408.jpg', '/home/pi/Desktop/images/14012025/09/22/image_14012025_09_22_17_10351.jpg', '/home/pi/Desktop/images/14012025/09/22/image_14012025_09_22_36_10472.jpg', '/home/pi/Desktop/images/14012025/09/22/image_14012025_09_22_56_9351.jpg', '/home/pi/Desktop/images/14012025/09/22/image_14012025_09_23_06_10369.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/21/image_14012025_09_21_57_10354.jpg
/home/pi/Desktop/images/14012025/09/21/image_14012025_09_22_06_9408.jpg
/home/pi/Desktop/images/14012025/09/22/image_14012025_09_22_17_10351.jpg
/home/pi/Desktop/images/14012025/09/22/image_14012025_09_22_36_10472.jpg
/home/pi/Desktop/images/14012025/09/22/image_14012025_09_22_56_9351.jpg
/home/pi/Desktop/images/14012025/09/22/image_14012025_09_23_06_10369.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329151444","1329151470","1329151452","1329151466","1329151460","1329151471"],"photo_ids_order":["1329151444","1329151452","1329151460","1329151466","1329151470","1329151471"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/10342d4b2e57500727d7ac3c8173274a.jpg","text":"TemporaryFile(/tmp/multipartBody2423856357638389750asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950535012,"filename":"image_14012025_09_21_57_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/aaff0b032de6963eeffdc3c8c9953d24.jpg","text":"TemporaryFile(/tmp/multipartBody4224465856370263598asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950535012,"filename":"image_14012025_09_22_56_9351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ffc8298d9390086f7957fac504b39b3f.jpg","text":"TemporaryFile(/tmp/multipartBody8773143989783358637asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950535012,"filename":"image_14012025_09_22_06_9408.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d31fd506c4446e65cec1f156dc32dc5a.jpg","text":"TemporaryFile(/tmp/multipartBody7239066928729124971asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950535012,"filename":"image_14012025_09_22_36_10472.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/801e17d72f0904cedf58f294eb6c40a8.jpg","text":"TemporaryFile(/tmp/multipartBody2524295900902702067asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950535012,"filename":"image_14012025_09_22_17_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7d8aba19dada22ff49dc17443bdc7495.jpg","text":"TemporaryFile(/tmp/multipartBody2793935193221677176asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950535012,"filename":"image_14012025_09_23_06_10369.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329151460","file1":"1329151452","file0":"1329151444","file4":"1329151470","file5":"1329151471","file3":"1329151466"},"map_files_photo_id_array":[{"photo_id":"1329151471","filename":"file5"},{"photo_id":"1329151460","filename":"file2"},{"photo_id":"1329151470","filename":"file4"},{"photo_id":"1329151452","filename":"file1"},{"photo_id":"1329151444","filename":"file0"},{"photo_id":"1329151466","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329151444":["hashtag1","hashtag2"]},{"1329151470":["hashtag1","hashtag2"]},{"1329151452":["hashtag1","hashtag2"]},{"1329151466":["hashtag1","hashtag2"]},{"1329151460":["hashtag1","hashtag2"]},{"1329151471":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329151444, 1329151470, 1329151452, 1329151466, 1329151460, 1329151471)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.32718014717102 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 15 --only_old 1
2025-01-15 15:15:32.718140
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/23/image_14012025_09_23_17_10368.jpg', '/home/pi/Desktop/images/14012025/09/23/image_14012025_09_23_26_9402.jpg', '/home/pi/Desktop/images/14012025/09/23/image_14012025_09_23_37_10339.jpg', '/home/pi/Desktop/images/14012025/09/23/image_14012025_09_23_46_9371.jpg', '/home/pi/Desktop/images/14012025/09/23/image_14012025_09_23_56_10399.jpg', '/home/pi/Desktop/images/14012025/09/23/image_14012025_09_24_07_10345.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/23/image_14012025_09_23_17_10368.jpg
/home/pi/Desktop/images/14012025/09/23/image_14012025_09_23_26_9402.jpg
/home/pi/Desktop/images/14012025/09/23/image_14012025_09_23_37_10339.jpg
/home/pi/Desktop/images/14012025/09/23/image_14012025_09_23_46_9371.jpg
/home/pi/Desktop/images/14012025/09/23/image_14012025_09_23_56_10399.jpg
/home/pi/Desktop/images/14012025/09/23/image_14012025_09_24_07_10345.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329151516","1329151536","1329151509","1329151539","1329151530","1329151553"],"photo_ids_order":["1329151509","1329151516","1329151530","1329151536","1329151539","1329151553"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0a81614e234983da981008d7b9cb7518.jpg","text":"TemporaryFile(/tmp/multipartBody2773827134785132921asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950595251,"filename":"image_14012025_09_23_26_9402.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3c019a4a0ce4804f984e643c2e410a1d.jpg","text":"TemporaryFile(/tmp/multipartBody1490445006662777192asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950595251,"filename":"image_14012025_09_23_46_9371.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3ffc142fdd1e27011f16b1eeacd9238e.jpg","text":"TemporaryFile(/tmp/multipartBody2238410968037737956asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950595251,"filename":"image_14012025_09_23_17_10368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/09dcce92808646d80bd10ecf9a128b8b.jpg","text":"TemporaryFile(/tmp/multipartBody5773442391176998226asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950595251,"filename":"image_14012025_09_23_56_10399.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8ddf45897d9674debd50420b20873d94.jpg","text":"TemporaryFile(/tmp/multipartBody429833463866549800asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950595251,"filename":"image_14012025_09_23_37_10339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a4a5451c8802e2b0193984c62628860b.jpg","text":"TemporaryFile(/tmp/multipartBody7597657815723824823asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950595251,"filename":"image_14012025_09_24_07_10345.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329151530","file1":"1329151516","file0":"1329151509","file4":"1329151539","file5":"1329151553","file3":"1329151536"},"map_files_photo_id_array":[{"photo_id":"1329151553","filename":"file5"},{"photo_id":"1329151530","filename":"file2"},{"photo_id":"1329151539","filename":"file4"},{"photo_id":"1329151516","filename":"file1"},{"photo_id":"1329151509","filename":"file0"},{"photo_id":"1329151536","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329151516":["hashtag1","hashtag2"]},{"1329151536":["hashtag1","hashtag2"]},{"1329151509":["hashtag1","hashtag2"]},{"1329151539":["hashtag1","hashtag2"]},{"1329151530":["hashtag1","hashtag2"]},{"1329151553":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329151516, 1329151536, 1329151509, 1329151539, 1329151530, 1329151553)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.82190227508545 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 15 --only_old 1
2025-01-15 15:16:32.817764
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/24/image_14012025_09_24_16_9355.jpg', '/home/pi/Desktop/images/14012025/09/24/image_14012025_09_24_26_10467.jpg', '/home/pi/Desktop/images/14012025/09/24/image_14012025_09_24_36_9336.jpg', '/home/pi/Desktop/images/14012025/09/24/image_14012025_09_24_46_10389.jpg', '/home/pi/Desktop/images/14012025/09/24/image_14012025_09_24_57_10347.jpg', '/home/pi/Desktop/images/14012025/09/24/image_14012025_09_25_06_9364.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/24/image_14012025_09_24_16_9355.jpg
/home/pi/Desktop/images/14012025/09/24/image_14012025_09_24_26_10467.jpg
/home/pi/Desktop/images/14012025/09/24/image_14012025_09_24_36_9336.jpg
/home/pi/Desktop/images/14012025/09/24/image_14012025_09_24_46_10389.jpg
/home/pi/Desktop/images/14012025/09/24/image_14012025_09_24_57_10347.jpg
/home/pi/Desktop/images/14012025/09/24/image_14012025_09_25_06_9364.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329151624","1329151612","1329151596","1329151590","1329151638","1329151605"],"photo_ids_order":["1329151590","1329151596","1329151605","1329151612","1329151624","1329151638"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7e1c04834052a58c24a7dcce85b68ad5.jpg","text":"TemporaryFile(/tmp/multipartBody5078353060279333427asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950655352,"filename":"image_14012025_09_24_57_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2badd04b34aa3e212bce80e53862109a.jpg","text":"TemporaryFile(/tmp/multipartBody713731534457333621asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950655352,"filename":"image_14012025_09_24_46_10389.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/395eda8e6e126028df5a18b5a219a28a.jpg","text":"TemporaryFile(/tmp/multipartBody2568722830518580288asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950655352,"filename":"image_14012025_09_24_26_10467.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ac130f8bcaa6cd5e8de23aae0bd42b18.jpg","text":"TemporaryFile(/tmp/multipartBody3469741715569315926asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950655352,"filename":"image_14012025_09_24_16_9355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/43a442f8dfeb8f6f429b16adaeb0618f.jpg","text":"TemporaryFile(/tmp/multipartBody1368049015741273281asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950655352,"filename":"image_14012025_09_25_06_9364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b0696b52dea6166856d1dcaa8e804107.jpg","text":"TemporaryFile(/tmp/multipartBody5327736432489372101asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950655352,"filename":"image_14012025_09_24_36_9336.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329151605","file1":"1329151596","file0":"1329151590","file4":"1329151624","file5":"1329151638","file3":"1329151612"},"map_files_photo_id_array":[{"photo_id":"1329151638","filename":"file5"},{"photo_id":"1329151605","filename":"file2"},{"photo_id":"1329151624","filename":"file4"},{"photo_id":"1329151596","filename":"file1"},{"photo_id":"1329151590","filename":"file0"},{"photo_id":"1329151612","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329151624":["hashtag1","hashtag2"]},{"1329151612":["hashtag1","hashtag2"]},{"1329151596":["hashtag1","hashtag2"]},{"1329151590":["hashtag1","hashtag2"]},{"1329151638":["hashtag1","hashtag2"]},{"1329151605":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329151624, 1329151612, 1329151596, 1329151590, 1329151638, 1329151605)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.22969126701355 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 15 --only_old 1
2025-01-15 15:17:33.058363
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/25/image_14012025_09_25_16_10506.jpg', '/home/pi/Desktop/images/14012025/09/25/image_14012025_09_25_27_10357.jpg', '/home/pi/Desktop/images/14012025/09/25/image_14012025_09_25_47_10393.jpg', '/home/pi/Desktop/images/14012025/09/25/image_14012025_09_25_56_9354.jpg', '/home/pi/Desktop/images/14012025/09/25/image_14012025_09_26_06_10355.jpg', '/home/pi/Desktop/images/14012025/09/26/image_14012025_09_26_17_10337.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/25/image_14012025_09_25_16_10506.jpg
/home/pi/Desktop/images/14012025/09/25/image_14012025_09_25_27_10357.jpg
/home/pi/Desktop/images/14012025/09/25/image_14012025_09_25_47_10393.jpg
/home/pi/Desktop/images/14012025/09/25/image_14012025_09_25_56_9354.jpg
/home/pi/Desktop/images/14012025/09/25/image_14012025_09_26_06_10355.jpg
/home/pi/Desktop/images/14012025/09/26/image_14012025_09_26_17_10337.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329151672","1329151686","1329151917","1329151964","1329151679","1329151727"],"photo_ids_order":["1329151672","1329151679","1329151686","1329151727","1329151917","1329151964"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/53e43b86c7899bcc1ca768dc7275a108.jpg","text":"TemporaryFile(/tmp/multipartBody5873507241754209892asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950715572,"filename":"image_14012025_09_25_16_10506.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/35dc5153f3eb1c57ac58574a5726a8ae.jpg","text":"TemporaryFile(/tmp/multipartBody6882093539211392755asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950715572,"filename":"image_14012025_09_25_47_10393.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a8a3576c0126ff7faca2d5e5c67fd841.jpg","text":"TemporaryFile(/tmp/multipartBody976612594346067963asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950715572,"filename":"image_14012025_09_26_06_10355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9090ab03e0f1c38af04f89d173b6e2e9.jpg","text":"TemporaryFile(/tmp/multipartBody6190109697982653427asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950715572,"filename":"image_14012025_09_26_17_10337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ba1195b8f64f6118bb6f919001da5d03.jpg","text":"TemporaryFile(/tmp/multipartBody2071642119342248913asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950715572,"filename":"image_14012025_09_25_27_10357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/745c453fac4fe449454ccf3fe56de334.jpg","text":"TemporaryFile(/tmp/multipartBody8972078002177782419asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950715572,"filename":"image_14012025_09_25_56_9354.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329151686","file1":"1329151679","file0":"1329151672","file4":"1329151917","file5":"1329151964","file3":"1329151727"},"map_files_photo_id_array":[{"photo_id":"1329151964","filename":"file5"},{"photo_id":"1329151686","filename":"file2"},{"photo_id":"1329151917","filename":"file4"},{"photo_id":"1329151679","filename":"file1"},{"photo_id":"1329151672","filename":"file0"},{"photo_id":"1329151727","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329151672":["hashtag1","hashtag2"]},{"1329151686":["hashtag1","hashtag2"]},{"1329151917":["hashtag1","hashtag2"]},{"1329151964":["hashtag1","hashtag2"]},{"1329151679":["hashtag1","hashtag2"]},{"1329151727":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329151672, 1329151686, 1329151917, 1329151964, 1329151679, 1329151727)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 61.45159578323364 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
2025-01-15 15:18:42.243534
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/17/image_15012025_00_17_17_9355.jpg', '/home/pi/Desktop/images/15012025/00/17/image_15012025_00_17_27_10507.jpg', '/home/pi/Desktop/images/15012025/00/17/image_15012025_00_17_37_9459.jpg', '/home/pi/Desktop/images/15012025/00/17/image_15012025_00_17_47_10405.jpg', '/home/pi/Desktop/images/15012025/00/17/image_15012025_00_17_57_10359.jpg', '/home/pi/Desktop/images/15012025/00/17/image_15012025_00_18_07_9340.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/17/image_15012025_00_17_17_9355.jpg
/home/pi/Desktop/images/15012025/00/17/image_15012025_00_17_27_10507.jpg
/home/pi/Desktop/images/15012025/00/17/image_15012025_00_17_37_9459.jpg
/home/pi/Desktop/images/15012025/00/17/image_15012025_00_17_47_10405.jpg
/home/pi/Desktop/images/15012025/00/17/image_15012025_00_17_57_10359.jpg
/home/pi/Desktop/images/15012025/00/17/image_15012025_00_18_07_9340.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329152344","1329152352","1329152361","1329152355","1329152349","1329152365"],"photo_ids_order":["1329152344","1329152349","1329152352","1329152355","1329152361","1329152365"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a66305959fdb33771952caf31200af4b.jpg","text":"TemporaryFile(/tmp/multipartBody8314144832646370281asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950783248,"filename":"image_15012025_00_17_17_9355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7bf15771086ecdf29f27a34877fba5b2.jpg","text":"TemporaryFile(/tmp/multipartBody9018605031613912462asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950783248,"filename":"image_15012025_00_17_37_9459.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a3a0415b700b2d6b42157d3d5340996f.jpg","text":"TemporaryFile(/tmp/multipartBody4930583306896154200asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950783248,"filename":"image_15012025_00_17_57_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c34e21fa97754b1574a09f795e3d76b6.jpg","text":"TemporaryFile(/tmp/multipartBody4508332923188954747asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950783248,"filename":"image_15012025_00_17_47_10405.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d7da7a499a74b1815c5bb9a0ec521ee5.jpg","text":"TemporaryFile(/tmp/multipartBody4427930200973062059asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950783248,"filename":"image_15012025_00_17_27_10507.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4a4e27b5553a901357b92789746b6500.jpg","text":"TemporaryFile(/tmp/multipartBody6094664673970798017asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950783248,"filename":"image_15012025_00_18_07_9340.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329152352","file1":"1329152349","file0":"1329152344","file4":"1329152361","file5":"1329152365","file3":"1329152355"},"map_files_photo_id_array":[{"photo_id":"1329152365","filename":"file5"},{"photo_id":"1329152352","filename":"file2"},{"photo_id":"1329152361","filename":"file4"},{"photo_id":"1329152349","filename":"file1"},{"photo_id":"1329152344","filename":"file0"},{"photo_id":"1329152355","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329152344":["hashtag1","hashtag2"]},{"1329152352":["hashtag1","hashtag2"]},{"1329152361":["hashtag1","hashtag2"]},{"1329152355":["hashtag1","hashtag2"]},{"1329152349":["hashtag1","hashtag2"]},{"1329152365":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329152344, 1329152352, 1329152361, 1329152355, 1329152349, 1329152365)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.60569643974304 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 15 --only_old 1
2025-01-15 15:19:32.633057
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/26/image_14012025_09_26_36_10420.jpg', '/home/pi/Desktop/images/14012025/09/26/image_14012025_09_26_46_9368.jpg', '/home/pi/Desktop/images/14012025/09/26/image_14012025_09_26_56_10401.jpg', '/home/pi/Desktop/images/14012025/09/26/image_14012025_09_27_07_10380.jpg', '/home/pi/Desktop/images/14012025/09/27/image_14012025_09_27_16_9357.jpg', '/home/pi/Desktop/images/14012025/09/27/image_14012025_09_27_26_10458.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/26/image_14012025_09_26_36_10420.jpg
/home/pi/Desktop/images/14012025/09/26/image_14012025_09_26_46_9368.jpg
/home/pi/Desktop/images/14012025/09/26/image_14012025_09_26_56_10401.jpg
/home/pi/Desktop/images/14012025/09/26/image_14012025_09_27_07_10380.jpg
/home/pi/Desktop/images/14012025/09/27/image_14012025_09_27_16_9357.jpg
/home/pi/Desktop/images/14012025/09/27/image_14012025_09_27_26_10458.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329152611","1329152460","1329152628","1329152591","1329152662","1329152668"],"photo_ids_order":["1329152460","1329152591","1329152611","1329152628","1329152662","1329152668"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7bc5886d684425312a809612e9d0d84a.jpg","text":"TemporaryFile(/tmp/multipartBody2465299028878393088asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950835164,"filename":"image_14012025_09_26_56_10401.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1811bf8f33ab1a9e5016f5d8a82642a0.jpg","text":"TemporaryFile(/tmp/multipartBody7756036738823084679asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950835164,"filename":"image_14012025_09_26_36_10420.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dc66dbeb0eda522774e695d42c438b59.jpg","text":"TemporaryFile(/tmp/multipartBody3040763122696318427asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950835164,"filename":"image_14012025_09_27_07_10380.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/41d5abb08cbca23185a3268653ec0bc4.jpg","text":"TemporaryFile(/tmp/multipartBody3548026973393250662asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950835164,"filename":"image_14012025_09_26_46_9368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6f2e25a7f07c4b1c4a8627abef718c8c.jpg","text":"TemporaryFile(/tmp/multipartBody4261282317623818473asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950835164,"filename":"image_14012025_09_27_16_9357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/483252661cd3eb6336d1b870b2767ef2.jpg","text":"TemporaryFile(/tmp/multipartBody3459400534451393246asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950835164,"filename":"image_14012025_09_27_26_10458.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329152611","file1":"1329152591","file0":"1329152460","file4":"1329152662","file5":"1329152668","file3":"1329152628"},"map_files_photo_id_array":[{"photo_id":"1329152668","filename":"file5"},{"photo_id":"1329152611","filename":"file2"},{"photo_id":"1329152662","filename":"file4"},{"photo_id":"1329152591","filename":"file1"},{"photo_id":"1329152460","filename":"file0"},{"photo_id":"1329152628","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329152611":["hashtag1","hashtag2"]},{"1329152460":["hashtag1","hashtag2"]},{"1329152628":["hashtag1","hashtag2"]},{"1329152591":["hashtag1","hashtag2"]},{"1329152662":["hashtag1","hashtag2"]},{"1329152668":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329152611, 1329152460, 1329152628, 1329152591, 1329152662, 1329152668)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.10236930847168 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 15 --only_old 1
2025-01-15 15:20:32.739780
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/27/image_14012025_09_27_37_10345.jpg', '/home/pi/Desktop/images/14012025/09/27/image_14012025_09_27_46_9442.jpg', '/home/pi/Desktop/images/14012025/09/27/image_14012025_09_27_57_10415.jpg', '/home/pi/Desktop/images/14012025/09/27/image_14012025_09_28_06_9360.jpg', '/home/pi/Desktop/images/14012025/09/28/image_14012025_09_28_16_10425.jpg', '/home/pi/Desktop/images/14012025/09/28/image_14012025_09_28_27_10377.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/27/image_14012025_09_27_37_10345.jpg
/home/pi/Desktop/images/14012025/09/27/image_14012025_09_27_46_9442.jpg
/home/pi/Desktop/images/14012025/09/27/image_14012025_09_27_57_10415.jpg
/home/pi/Desktop/images/14012025/09/27/image_14012025_09_28_06_9360.jpg
/home/pi/Desktop/images/14012025/09/28/image_14012025_09_28_16_10425.jpg
/home/pi/Desktop/images/14012025/09/28/image_14012025_09_28_27_10377.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329152728","1329152716","1329152691","1329152703","1329152709","1329152723"],"photo_ids_order":["1329152691","1329152703","1329152709","1329152716","1329152723","1329152728"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/56f14096be016b3025dee32f60948c5e.jpg","text":"TemporaryFile(/tmp/multipartBody6749891223647657385asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950895261,"filename":"image_14012025_09_28_27_10377.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/99e62ab132123da67f8bff0754f1b18f.jpg","text":"TemporaryFile(/tmp/multipartBody8607878065190746771asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950895261,"filename":"image_14012025_09_28_06_9360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/00f50b56d8ff8e7cabfed78dbdb2fce4.jpg","text":"TemporaryFile(/tmp/multipartBody4428099035805834609asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950895261,"filename":"image_14012025_09_27_37_10345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/59277f9ce548da20f058a0c6a0a30cb1.jpg","text":"TemporaryFile(/tmp/multipartBody2040999774804900225asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950895261,"filename":"image_14012025_09_27_46_9442.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0fd73dcdea764d20b2d4c256c3374352.jpg","text":"TemporaryFile(/tmp/multipartBody2364928212071087825asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950895261,"filename":"image_14012025_09_27_57_10415.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/eefe44b790b143f196afc26fcc298216.jpg","text":"TemporaryFile(/tmp/multipartBody4356467432511444161asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950895261,"filename":"image_14012025_09_28_16_10425.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329152709","file1":"1329152703","file0":"1329152691","file4":"1329152723","file5":"1329152728","file3":"1329152716"},"map_files_photo_id_array":[{"photo_id":"1329152728","filename":"file5"},{"photo_id":"1329152709","filename":"file2"},{"photo_id":"1329152723","filename":"file4"},{"photo_id":"1329152703","filename":"file1"},{"photo_id":"1329152691","filename":"file0"},{"photo_id":"1329152716","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329152728":["hashtag1","hashtag2"]},{"1329152716":["hashtag1","hashtag2"]},{"1329152691":["hashtag1","hashtag2"]},{"1329152703":["hashtag1","hashtag2"]},{"1329152709":["hashtag1","hashtag2"]},{"1329152723":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329152728, 1329152716, 1329152691, 1329152703, 1329152709, 1329152723)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.729281425476074 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 15 --only_old 1
2025-01-15 15:21:33.051094
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/28/image_14012025_09_28_36_9450.jpg', '/home/pi/Desktop/images/14012025/09/28/image_14012025_09_28_47_10372.jpg', '/home/pi/Desktop/images/14012025/09/28/image_14012025_09_28_56_9346.jpg', '/home/pi/Desktop/images/14012025/09/28/image_14012025_09_29_06_10330.jpg', '/home/pi/Desktop/images/14012025/09/29/image_14012025_09_29_17_10339.jpg', '/home/pi/Desktop/images/14012025/09/29/image_14012025_09_29_26_9343.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/28/image_14012025_09_28_36_9450.jpg
/home/pi/Desktop/images/14012025/09/28/image_14012025_09_28_47_10372.jpg
/home/pi/Desktop/images/14012025/09/28/image_14012025_09_28_56_9346.jpg
/home/pi/Desktop/images/14012025/09/28/image_14012025_09_29_06_10330.jpg
/home/pi/Desktop/images/14012025/09/29/image_14012025_09_29_17_10339.jpg
/home/pi/Desktop/images/14012025/09/29/image_14012025_09_29_26_9343.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329152749","1329152766","1329152781","1329152757","1329152791","1329152797"],"photo_ids_order":["1329152749","1329152757","1329152766","1329152781","1329152791","1329152797"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cca24fb71f4f46bb6d86e66cc5221e10.jpg","text":"TemporaryFile(/tmp/multipartBody6076842912328409844asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950955584,"filename":"image_14012025_09_28_36_9450.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fd50b7dc4db14d44c6141ea7ee13c9c6.jpg","text":"TemporaryFile(/tmp/multipartBody287193245916293409asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950955584,"filename":"image_14012025_09_28_56_9346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2190e992e3e58ef07527653f49635cac.jpg","text":"TemporaryFile(/tmp/multipartBody4849744199970554750asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950955584,"filename":"image_14012025_09_29_06_10330.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/739b70998c4b1d71590f9d6eb2aee679.jpg","text":"TemporaryFile(/tmp/multipartBody7332163751087068536asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950955584,"filename":"image_14012025_09_28_47_10372.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6a178749d00ce6a1885a2c5acb9ee0e0.jpg","text":"TemporaryFile(/tmp/multipartBody1561782678748391026asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950955584,"filename":"image_14012025_09_29_17_10339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/04efc06ae89a7d743b3d10288a879504.jpg","text":"TemporaryFile(/tmp/multipartBody4154021535780817184asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736950955584,"filename":"image_14012025_09_29_26_9343.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329152766","file1":"1329152757","file0":"1329152749","file4":"1329152791","file5":"1329152797","file3":"1329152781"},"map_files_photo_id_array":[{"photo_id":"1329152797","filename":"file5"},{"photo_id":"1329152766","filename":"file2"},{"photo_id":"1329152791","filename":"file4"},{"photo_id":"1329152757","filename":"file1"},{"photo_id":"1329152749","filename":"file0"},{"photo_id":"1329152781","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329152749":["hashtag1","hashtag2"]},{"1329152766":["hashtag1","hashtag2"]},{"1329152781":["hashtag1","hashtag2"]},{"1329152757":["hashtag1","hashtag2"]},{"1329152791":["hashtag1","hashtag2"]},{"1329152797":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329152749, 1329152766, 1329152781, 1329152757, 1329152791, 1329152797)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 51.762444734573364 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 15 --only_old 1
2025-01-15 15:22:33.132619
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/29/image_14012025_09_29_36_10422.jpg', '/home/pi/Desktop/images/14012025/09/29/image_14012025_09_29_47_10355.jpg', '/home/pi/Desktop/images/14012025/09/29/image_14012025_09_29_56_9375.jpg', '/home/pi/Desktop/images/14012025/09/29/image_14012025_09_30_06_10371.jpg', '/home/pi/Desktop/images/14012025/09/30/image_14012025_09_30_16_9348.jpg', '/home/pi/Desktop/images/14012025/09/30/image_14012025_09_30_26_10526.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/29/image_14012025_09_29_36_10422.jpg
/home/pi/Desktop/images/14012025/09/29/image_14012025_09_29_47_10355.jpg
/home/pi/Desktop/images/14012025/09/29/image_14012025_09_29_56_9375.jpg
/home/pi/Desktop/images/14012025/09/29/image_14012025_09_30_06_10371.jpg
/home/pi/Desktop/images/14012025/09/30/image_14012025_09_30_16_9348.jpg
/home/pi/Desktop/images/14012025/09/30/image_14012025_09_30_26_10526.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329152932","1329152905","1329152812","1329152850","1329152936","1329152881"],"photo_ids_order":["1329152812","1329152850","1329152881","1329152905","1329152932","1329152936"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/866bfcd3adc8d6daf683f361d3a7d63a.jpg","text":"TemporaryFile(/tmp/multipartBody2243948635627260669asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951015661,"filename":"image_14012025_09_30_16_9348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a1603a4ecb853f356fc6b53c98f73d3d.jpg","text":"TemporaryFile(/tmp/multipartBody763283005741019236asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951015661,"filename":"image_14012025_09_30_06_10371.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a4acc8d69de0fc308b3009de28fe14d2.jpg","text":"TemporaryFile(/tmp/multipartBody4792189009308943672asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951015661,"filename":"image_14012025_09_29_36_10422.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/83d7b7ef0782dc7ae87a06e66bb2ccd0.jpg","text":"TemporaryFile(/tmp/multipartBody4460551133778150468asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951015661,"filename":"image_14012025_09_29_47_10355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0d4729df61e516994b9e810705c988bf.jpg","text":"TemporaryFile(/tmp/multipartBody4065101685570732741asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951015661,"filename":"image_14012025_09_30_26_10526.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3f095fec0cc59a19866d196caa5c54c1.jpg","text":"TemporaryFile(/tmp/multipartBody232318996969625063asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951015661,"filename":"image_14012025_09_29_56_9375.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329152881","file1":"1329152850","file0":"1329152812","file4":"1329152932","file5":"1329152936","file3":"1329152905"},"map_files_photo_id_array":[{"photo_id":"1329152936","filename":"file5"},{"photo_id":"1329152881","filename":"file2"},{"photo_id":"1329152932","filename":"file4"},{"photo_id":"1329152850","filename":"file1"},{"photo_id":"1329152812","filename":"file0"},{"photo_id":"1329152905","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329152932":["hashtag1","hashtag2"]},{"1329152905":["hashtag1","hashtag2"]},{"1329152812":["hashtag1","hashtag2"]},{"1329152850":["hashtag1","hashtag2"]},{"1329152936":["hashtag1","hashtag2"]},{"1329152881":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329152932, 1329152905, 1329152812, 1329152850, 1329152936, 1329152881)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.95848512649536 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 15 --only_old 1
2025-01-15 15:23:32.375586
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/30/image_14012025_09_30_37_10327.jpg', '/home/pi/Desktop/images/14012025/09/30/image_14012025_09_30_46_9361.jpg', '/home/pi/Desktop/images/14012025/09/30/image_14012025_09_30_57_10460.jpg', '/home/pi/Desktop/images/14012025/09/30/image_14012025_09_31_06_9390.jpg', '/home/pi/Desktop/images/14012025/09/31/image_14012025_09_31_16_10351.jpg', '/home/pi/Desktop/images/14012025/09/31/image_14012025_09_31_36_9332.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/30/image_14012025_09_30_37_10327.jpg
/home/pi/Desktop/images/14012025/09/30/image_14012025_09_30_46_9361.jpg
/home/pi/Desktop/images/14012025/09/30/image_14012025_09_30_57_10460.jpg
/home/pi/Desktop/images/14012025/09/30/image_14012025_09_31_06_9390.jpg
/home/pi/Desktop/images/14012025/09/31/image_14012025_09_31_16_10351.jpg
/home/pi/Desktop/images/14012025/09/31/image_14012025_09_31_36_9332.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329152985","1329152973","1329152993","1329152975","1329152989","1329152980"],"photo_ids_order":["1329152973","1329152975","1329152980","1329152985","1329152989","1329152993"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/540eb37bb7e451a0690d375790a6cec4.jpg","text":"TemporaryFile(/tmp/multipartBody310624496731693614asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951074923,"filename":"image_14012025_09_31_06_9390.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d90b578d995a8cb7022e628039bfbb7c.jpg","text":"TemporaryFile(/tmp/multipartBody3200504047415167230asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951074923,"filename":"image_14012025_09_30_37_10327.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8fc25972c20df0962a34610f79986d03.jpg","text":"TemporaryFile(/tmp/multipartBody4765680192552484867asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951074923,"filename":"image_14012025_09_31_36_9332.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/73477b4745674ec09fb69ae0bc4d00bb.jpg","text":"TemporaryFile(/tmp/multipartBody5384779227275314153asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951074923,"filename":"image_14012025_09_30_46_9361.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bfced4d8abc927a77840246d5d55c740.jpg","text":"TemporaryFile(/tmp/multipartBody6263095700417191758asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951074923,"filename":"image_14012025_09_31_16_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b8ed7b2351b19ff23086bb9dff1390b4.jpg","text":"TemporaryFile(/tmp/multipartBody6524087404451714651asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951074923,"filename":"image_14012025_09_30_57_10460.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329152980","file1":"1329152975","file0":"1329152973","file4":"1329152989","file5":"1329152993","file3":"1329152985"},"map_files_photo_id_array":[{"photo_id":"1329152993","filename":"file5"},{"photo_id":"1329152980","filename":"file2"},{"photo_id":"1329152989","filename":"file4"},{"photo_id":"1329152975","filename":"file1"},{"photo_id":"1329152973","filename":"file0"},{"photo_id":"1329152985","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329152985":["hashtag1","hashtag2"]},{"1329152973":["hashtag1","hashtag2"]},{"1329152993":["hashtag1","hashtag2"]},{"1329152975":["hashtag1","hashtag2"]},{"1329152989":["hashtag1","hashtag2"]},{"1329152980":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329152985, 1329152973, 1329152993, 1329152975, 1329152989, 1329152980)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.979676723480225 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 15 --only_old 1
2025-01-15 15:24:32.607891
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/31/image_14012025_09_31_57_10356.jpg', '/home/pi/Desktop/images/14012025/09/31/image_14012025_09_32_06_9467.jpg', '/home/pi/Desktop/images/14012025/09/32/image_14012025_09_32_17_10459.jpg', '/home/pi/Desktop/images/14012025/09/32/image_14012025_09_32_26_9352.jpg', '/home/pi/Desktop/images/14012025/09/32/image_14012025_09_32_36_10360.jpg', '/home/pi/Desktop/images/14012025/09/32/image_14012025_09_32_47_10352.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/31/image_14012025_09_31_57_10356.jpg
/home/pi/Desktop/images/14012025/09/31/image_14012025_09_32_06_9467.jpg
/home/pi/Desktop/images/14012025/09/32/image_14012025_09_32_17_10459.jpg
/home/pi/Desktop/images/14012025/09/32/image_14012025_09_32_26_9352.jpg
/home/pi/Desktop/images/14012025/09/32/image_14012025_09_32_36_10360.jpg
/home/pi/Desktop/images/14012025/09/32/image_14012025_09_32_47_10352.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329153060","1329153009","1329153092","1329153070","1329153017","1329153031"],"photo_ids_order":["1329153009","1329153017","1329153031","1329153060","1329153070","1329153092"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2fc69bd275e1bd28bae33c0d274238e4.jpg","text":"TemporaryFile(/tmp/multipartBody7059041488450768225asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951135130,"filename":"image_14012025_09_32_26_9352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/889992cfd421983a7a4df5781337c1a9.jpg","text":"TemporaryFile(/tmp/multipartBody3569358845265615673asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951135130,"filename":"image_14012025_09_31_57_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ce92f8eeb82722d17e2cffe49d9339f9.jpg","text":"TemporaryFile(/tmp/multipartBody4934816683843800005asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951135130,"filename":"image_14012025_09_32_47_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cdabfc9486b716f649db860dcce06f17.jpg","text":"TemporaryFile(/tmp/multipartBody9011359186622096892asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951135130,"filename":"image_14012025_09_32_36_10360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/058292b29c57d442aa1222c85c561848.jpg","text":"TemporaryFile(/tmp/multipartBody2517351252709715573asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951135130,"filename":"image_14012025_09_32_06_9467.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/81908d694fb9e2016882597310ed58c3.jpg","text":"TemporaryFile(/tmp/multipartBody729587711286911308asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951135130,"filename":"image_14012025_09_32_17_10459.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329153031","file1":"1329153017","file0":"1329153009","file4":"1329153070","file5":"1329153092","file3":"1329153060"},"map_files_photo_id_array":[{"photo_id":"1329153092","filename":"file5"},{"photo_id":"1329153031","filename":"file2"},{"photo_id":"1329153070","filename":"file4"},{"photo_id":"1329153017","filename":"file1"},{"photo_id":"1329153009","filename":"file0"},{"photo_id":"1329153060","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329153060":["hashtag1","hashtag2"]},{"1329153009":["hashtag1","hashtag2"]},{"1329153092":["hashtag1","hashtag2"]},{"1329153070":["hashtag1","hashtag2"]},{"1329153017":["hashtag1","hashtag2"]},{"1329153031":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329153060, 1329153009, 1329153092, 1329153070, 1329153017, 1329153031)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.76887106895447 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 15 --only_old 1
2025-01-15 15:25:32.423954
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/32/image_14012025_09_32_56_9322.jpg', '/home/pi/Desktop/images/14012025/09/33/image_14012025_09_33_17_10358.jpg', '/home/pi/Desktop/images/14012025/09/33/image_14012025_09_33_26_9344.jpg', '/home/pi/Desktop/images/14012025/09/33/image_14012025_09_33_36_10390.jpg', '/home/pi/Desktop/images/14012025/09/33/image_14012025_09_33_46_9354.jpg', '/home/pi/Desktop/images/14012025/09/33/image_14012025_09_33_56_10448.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/32/image_14012025_09_32_56_9322.jpg
/home/pi/Desktop/images/14012025/09/33/image_14012025_09_33_17_10358.jpg
/home/pi/Desktop/images/14012025/09/33/image_14012025_09_33_26_9344.jpg
/home/pi/Desktop/images/14012025/09/33/image_14012025_09_33_36_10390.jpg
/home/pi/Desktop/images/14012025/09/33/image_14012025_09_33_46_9354.jpg
/home/pi/Desktop/images/14012025/09/33/image_14012025_09_33_56_10448.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329153201","1329153248","1329153221","1329153233","1329153215","1329153226"],"photo_ids_order":["1329153201","1329153215","1329153221","1329153226","1329153233","1329153248"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9d5d96901bc1b4c9a6eec278a87d1392.jpg","text":"TemporaryFile(/tmp/multipartBody2486262008883477977asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951195025,"filename":"image_14012025_09_32_56_9322.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c57d54853ba2d033ad20d0671d4ab0d7.jpg","text":"TemporaryFile(/tmp/multipartBody3104194553270110803asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951195025,"filename":"image_14012025_09_33_56_10448.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c4b552c51582d7c2ffbd6c491c6f3c48.jpg","text":"TemporaryFile(/tmp/multipartBody1047475837981488529asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951195025,"filename":"image_14012025_09_33_26_9344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d57eee25f1a9d1168a43de3fe164d66f.jpg","text":"TemporaryFile(/tmp/multipartBody4760221498057230806asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951195025,"filename":"image_14012025_09_33_46_9354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c698795933c36f3ad8cb1c55542d6d9a.jpg","text":"TemporaryFile(/tmp/multipartBody739285665520840952asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951195025,"filename":"image_14012025_09_33_17_10358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4b9f583947b7d69daa7dbf2b5f63124b.jpg","text":"TemporaryFile(/tmp/multipartBody1384463827823251286asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951195025,"filename":"image_14012025_09_33_36_10390.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329153221","file1":"1329153215","file0":"1329153201","file4":"1329153233","file5":"1329153248","file3":"1329153226"},"map_files_photo_id_array":[{"photo_id":"1329153248","filename":"file5"},{"photo_id":"1329153221","filename":"file2"},{"photo_id":"1329153233","filename":"file4"},{"photo_id":"1329153215","filename":"file1"},{"photo_id":"1329153201","filename":"file0"},{"photo_id":"1329153226","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329153201":["hashtag1","hashtag2"]},{"1329153248":["hashtag1","hashtag2"]},{"1329153221":["hashtag1","hashtag2"]},{"1329153233":["hashtag1","hashtag2"]},{"1329153215":["hashtag1","hashtag2"]},{"1329153226":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329153201, 1329153248, 1329153221, 1329153233, 1329153215, 1329153226)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.078279972076416 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 15 --only_old 1
2025-01-15 15:26:32.341252
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/33/image_14012025_09_34_07_10431.jpg', '/home/pi/Desktop/images/14012025/09/34/image_14012025_09_34_16_9324.jpg', '/home/pi/Desktop/images/14012025/09/34/image_14012025_09_34_26_10419.jpg', '/home/pi/Desktop/images/14012025/09/34/image_14012025_09_34_36_9372.jpg', '/home/pi/Desktop/images/14012025/09/34/image_14012025_09_34_46_10450.jpg', '/home/pi/Desktop/images/14012025/09/34/image_14012025_09_34_57_10346.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/33/image_14012025_09_34_07_10431.jpg
/home/pi/Desktop/images/14012025/09/34/image_14012025_09_34_16_9324.jpg
/home/pi/Desktop/images/14012025/09/34/image_14012025_09_34_26_10419.jpg
/home/pi/Desktop/images/14012025/09/34/image_14012025_09_34_36_9372.jpg
/home/pi/Desktop/images/14012025/09/34/image_14012025_09_34_46_10450.jpg
/home/pi/Desktop/images/14012025/09/34/image_14012025_09_34_57_10346.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329153281","1329153461","1329153469","1329153286","1329153400","1329153319"],"photo_ids_order":["1329153281","1329153286","1329153319","1329153400","1329153461","1329153469"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/97e0c13f9efde26c84df9301ed804758.jpg","text":"TemporaryFile(/tmp/multipartBody9113095964644643998asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951254894,"filename":"image_14012025_09_34_07_10431.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7cc93c676b8b6cda9fa0945824ab9fda.jpg","text":"TemporaryFile(/tmp/multipartBody3247147272981564871asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951254894,"filename":"image_14012025_09_34_46_10450.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/55b1f298ca1111df129ac25e498e6e97.jpg","text":"TemporaryFile(/tmp/multipartBody7533662397991256455asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951254894,"filename":"image_14012025_09_34_57_10346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a52295d1699b57fba9e4542973699e76.jpg","text":"TemporaryFile(/tmp/multipartBody5645266858440634721asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951254894,"filename":"image_14012025_09_34_16_9324.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/55162e2e09d44568b3a10caee325323b.jpg","text":"TemporaryFile(/tmp/multipartBody2852113609177261901asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951254894,"filename":"image_14012025_09_34_36_9372.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4585d04eee6c825a06f2034f10814999.jpg","text":"TemporaryFile(/tmp/multipartBody5501682925807759150asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951254894,"filename":"image_14012025_09_34_26_10419.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329153319","file1":"1329153286","file0":"1329153281","file4":"1329153461","file5":"1329153469","file3":"1329153400"},"map_files_photo_id_array":[{"photo_id":"1329153469","filename":"file5"},{"photo_id":"1329153319","filename":"file2"},{"photo_id":"1329153461","filename":"file4"},{"photo_id":"1329153286","filename":"file1"},{"photo_id":"1329153281","filename":"file0"},{"photo_id":"1329153400","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329153281":["hashtag1","hashtag2"]},{"1329153461":["hashtag1","hashtag2"]},{"1329153469":["hashtag1","hashtag2"]},{"1329153286":["hashtag1","hashtag2"]},{"1329153400":["hashtag1","hashtag2"]},{"1329153319":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329153281, 1329153461, 1329153469, 1329153286, 1329153400, 1329153319)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 51.00606989860535 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 15 --only_old 1
2025-01-15 15:27:32.467336
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/34/image_14012025_09_35_06_9322.jpg', '/home/pi/Desktop/images/14012025/09/35/image_14012025_09_35_16_10354.jpg', '/home/pi/Desktop/images/14012025/09/35/image_14012025_09_35_27_10341.jpg', '/home/pi/Desktop/images/14012025/09/35/image_14012025_09_35_36_9331.jpg', '/home/pi/Desktop/images/14012025/09/35/image_14012025_09_35_46_10333.jpg', '/home/pi/Desktop/images/14012025/09/35/image_14012025_09_35_57_10331.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/34/image_14012025_09_35_06_9322.jpg
/home/pi/Desktop/images/14012025/09/35/image_14012025_09_35_16_10354.jpg
/home/pi/Desktop/images/14012025/09/35/image_14012025_09_35_27_10341.jpg
/home/pi/Desktop/images/14012025/09/35/image_14012025_09_35_36_9331.jpg
/home/pi/Desktop/images/14012025/09/35/image_14012025_09_35_46_10333.jpg
/home/pi/Desktop/images/14012025/09/35/image_14012025_09_35_57_10331.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329153516","1329153510","1329153504","1329153512","1329153506","1329153514"],"photo_ids_order":["1329153504","1329153506","1329153510","1329153512","1329153514","1329153516"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f75c9968d085fcfcae6ed7f700f0d95b.jpg","text":"TemporaryFile(/tmp/multipartBody1663392206811976882asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951315009,"filename":"image_14012025_09_35_57_10331.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e9eaa5605ef70d99d07b5ce059591728.jpg","text":"TemporaryFile(/tmp/multipartBody3864183940334165129asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951315009,"filename":"image_14012025_09_35_27_10341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dafbe1570b330b43be2a9bcc364c8b23.jpg","text":"TemporaryFile(/tmp/multipartBody4500198721132205495asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951315009,"filename":"image_14012025_09_35_06_9322.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fa42346f047016d2b978c5e2fefb8f5f.jpg","text":"TemporaryFile(/tmp/multipartBody3998719682465992644asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951315009,"filename":"image_14012025_09_35_36_9331.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1d70f71e122acc2e5e3222977e8dc508.jpg","text":"TemporaryFile(/tmp/multipartBody8613814181713744561asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951315009,"filename":"image_14012025_09_35_16_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7dca2bcbaa3fa611768c284476ea28cb.jpg","text":"TemporaryFile(/tmp/multipartBody2654890566889136842asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951315009,"filename":"image_14012025_09_35_46_10333.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329153510","file1":"1329153506","file0":"1329153504","file4":"1329153514","file5":"1329153516","file3":"1329153512"},"map_files_photo_id_array":[{"photo_id":"1329153516","filename":"file5"},{"photo_id":"1329153510","filename":"file2"},{"photo_id":"1329153514","filename":"file4"},{"photo_id":"1329153506","filename":"file1"},{"photo_id":"1329153504","filename":"file0"},{"photo_id":"1329153512","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329153516":["hashtag1","hashtag2"]},{"1329153510":["hashtag1","hashtag2"]},{"1329153504":["hashtag1","hashtag2"]},{"1329153512":["hashtag1","hashtag2"]},{"1329153506":["hashtag1","hashtag2"]},{"1329153514":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329153516, 1329153510, 1329153504, 1329153512, 1329153506, 1329153514)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.22604775428772 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 15 --only_old 1
2025-01-15 15:28:32.670604
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/35/image_14012025_09_36_06_9349.jpg', '/home/pi/Desktop/images/14012025/09/36/image_14012025_09_36_16_10342.jpg', '/home/pi/Desktop/images/14012025/09/36/image_14012025_09_36_27_10463.jpg', '/home/pi/Desktop/images/14012025/09/36/image_14012025_09_36_36_9442.jpg', '/home/pi/Desktop/images/14012025/09/36/image_14012025_09_36_47_10353.jpg', '/home/pi/Desktop/images/14012025/09/36/image_14012025_09_37_06_10344.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/35/image_14012025_09_36_06_9349.jpg
/home/pi/Desktop/images/14012025/09/36/image_14012025_09_36_16_10342.jpg
/home/pi/Desktop/images/14012025/09/36/image_14012025_09_36_27_10463.jpg
/home/pi/Desktop/images/14012025/09/36/image_14012025_09_36_36_9442.jpg
/home/pi/Desktop/images/14012025/09/36/image_14012025_09_36_47_10353.jpg
/home/pi/Desktop/images/14012025/09/36/image_14012025_09_37_06_10344.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329153633","1329153593","1329153581","1329153599","1329153641","1329153622"],"photo_ids_order":["1329153581","1329153593","1329153599","1329153622","1329153633","1329153641"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7bfcb717b25fc9830872428399f73e23.jpg","text":"TemporaryFile(/tmp/multipartBody3246774088383715934asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951375192,"filename":"image_14012025_09_36_47_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bd31d92cef874765ae53e7c62d3f11f2.jpg","text":"TemporaryFile(/tmp/multipartBody1065281955464393290asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951375192,"filename":"image_14012025_09_36_16_10342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6dea47879b0ef118723422c43df7800e.jpg","text":"TemporaryFile(/tmp/multipartBody118408677775379074asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951375192,"filename":"image_14012025_09_36_06_9349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e33e8b887a4d2cdfe4c79565f6fa12f0.jpg","text":"TemporaryFile(/tmp/multipartBody4964466468340423941asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951375192,"filename":"image_14012025_09_36_27_10463.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/22d3c11b9175c20acc0e2fd83f3e2ae2.jpg","text":"TemporaryFile(/tmp/multipartBody1615057023296627629asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951375192,"filename":"image_14012025_09_37_06_10344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c730e8bc0709033b1ea96e8a5a286fd3.jpg","text":"TemporaryFile(/tmp/multipartBody1024195751010005060asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951375192,"filename":"image_14012025_09_36_36_9442.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329153599","file1":"1329153593","file0":"1329153581","file4":"1329153633","file5":"1329153641","file3":"1329153622"},"map_files_photo_id_array":[{"photo_id":"1329153641","filename":"file5"},{"photo_id":"1329153599","filename":"file2"},{"photo_id":"1329153633","filename":"file4"},{"photo_id":"1329153593","filename":"file1"},{"photo_id":"1329153581","filename":"file0"},{"photo_id":"1329153622","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329153633":["hashtag1","hashtag2"]},{"1329153593":["hashtag1","hashtag2"]},{"1329153581":["hashtag1","hashtag2"]},{"1329153599":["hashtag1","hashtag2"]},{"1329153641":["hashtag1","hashtag2"]},{"1329153622":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329153633, 1329153593, 1329153581, 1329153599, 1329153641, 1329153622)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.990689277648926 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 15 --only_old 1
2025-01-15 15:29:32.869170
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/37/image_14012025_09_37_17_10343.jpg', '/home/pi/Desktop/images/14012025/09/37/image_14012025_09_37_26_9359.jpg', '/home/pi/Desktop/images/14012025/09/37/image_14012025_09_37_36_10350.jpg', '/home/pi/Desktop/images/14012025/09/37/image_14012025_09_37_47_10334.jpg', '/home/pi/Desktop/images/14012025/09/37/image_14012025_09_37_56_9377.jpg', '/home/pi/Desktop/images/14012025/09/37/image_14012025_09_38_06_10417.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/37/image_14012025_09_37_17_10343.jpg
/home/pi/Desktop/images/14012025/09/37/image_14012025_09_37_26_9359.jpg
/home/pi/Desktop/images/14012025/09/37/image_14012025_09_37_36_10350.jpg
/home/pi/Desktop/images/14012025/09/37/image_14012025_09_37_47_10334.jpg
/home/pi/Desktop/images/14012025/09/37/image_14012025_09_37_56_9377.jpg
/home/pi/Desktop/images/14012025/09/37/image_14012025_09_38_06_10417.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329153669","1329153680","1329153674","1329153662","1329153653","1329153678"],"photo_ids_order":["1329153653","1329153662","1329153669","1329153674","1329153678","1329153680"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1a7c7c6bb8378b104de169ac48eb5156.jpg","text":"TemporaryFile(/tmp/multipartBody2258419306390825135asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951435391,"filename":"image_14012025_09_37_36_10350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ab0b68985f27eb33b5af441c8676de1e.jpg","text":"TemporaryFile(/tmp/multipartBody5607430394274710836asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951435391,"filename":"image_14012025_09_38_06_10417.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/66ad884746002a3551238d277455def5.jpg","text":"TemporaryFile(/tmp/multipartBody1000465556625747119asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951435391,"filename":"image_14012025_09_37_47_10334.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bdb75a275150814d80ddffdfd2a17054.jpg","text":"TemporaryFile(/tmp/multipartBody4943037675862899188asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951435391,"filename":"image_14012025_09_37_26_9359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/56fa1b8b2f8a55cd77bb76c5e98685c1.jpg","text":"TemporaryFile(/tmp/multipartBody2750622251682674482asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951435391,"filename":"image_14012025_09_37_17_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9b43562761ae701d53a02dcaea3313ca.jpg","text":"TemporaryFile(/tmp/multipartBody1204476217606448460asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951435391,"filename":"image_14012025_09_37_56_9377.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329153669","file1":"1329153662","file0":"1329153653","file4":"1329153678","file5":"1329153680","file3":"1329153674"},"map_files_photo_id_array":[{"photo_id":"1329153680","filename":"file5"},{"photo_id":"1329153669","filename":"file2"},{"photo_id":"1329153678","filename":"file4"},{"photo_id":"1329153662","filename":"file1"},{"photo_id":"1329153653","filename":"file0"},{"photo_id":"1329153674","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329153669":["hashtag1","hashtag2"]},{"1329153680":["hashtag1","hashtag2"]},{"1329153674":["hashtag1","hashtag2"]},{"1329153662":["hashtag1","hashtag2"]},{"1329153653":["hashtag1","hashtag2"]},{"1329153678":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329153669, 1329153680, 1329153674, 1329153662, 1329153653, 1329153678)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.866251945495605 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 15 --only_old 1
2025-01-15 15:30:33.042249
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/38/image_14012025_09_38_17_10353.jpg', '/home/pi/Desktop/images/14012025/09/38/image_14012025_09_38_26_9458.jpg', '/home/pi/Desktop/images/14012025/09/38/image_14012025_09_38_37_10377.jpg', '/home/pi/Desktop/images/14012025/09/38/image_14012025_09_38_46_9356.jpg', '/home/pi/Desktop/images/14012025/09/38/image_14012025_09_38_56_10329.jpg', '/home/pi/Desktop/images/14012025/09/38/image_14012025_09_39_07_10347.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/38/image_14012025_09_38_17_10353.jpg
/home/pi/Desktop/images/14012025/09/38/image_14012025_09_38_26_9458.jpg
/home/pi/Desktop/images/14012025/09/38/image_14012025_09_38_37_10377.jpg
/home/pi/Desktop/images/14012025/09/38/image_14012025_09_38_46_9356.jpg
/home/pi/Desktop/images/14012025/09/38/image_14012025_09_38_56_10329.jpg
/home/pi/Desktop/images/14012025/09/38/image_14012025_09_39_07_10347.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329153732","1329153725","1329153713","1329153707","1329153697","1329153691"],"photo_ids_order":["1329153691","1329153697","1329153707","1329153713","1329153725","1329153732"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/18592bc73cad65839481de20162faac2.jpg","text":"TemporaryFile(/tmp/multipartBody4992442817329680956asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951495584,"filename":"image_14012025_09_39_07_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/13b489ddac02ea5afaa264878094d140.jpg","text":"TemporaryFile(/tmp/multipartBody2733099556156548130asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951495584,"filename":"image_14012025_09_38_56_10329.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a8a322bfdaaaa923c1b3410a1d26f9d9.jpg","text":"TemporaryFile(/tmp/multipartBody5911882296871195213asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951495584,"filename":"image_14012025_09_38_46_9356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/72bbecda74b7739f90ee22b291971c8b.jpg","text":"TemporaryFile(/tmp/multipartBody496085778265930846asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951495584,"filename":"image_14012025_09_38_37_10377.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/61a80eae9761a836dd526bec15183c3c.jpg","text":"TemporaryFile(/tmp/multipartBody846923902635231570asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951495584,"filename":"image_14012025_09_38_26_9458.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2e2e413db86ecd01592c6af52bc6c43c.jpg","text":"TemporaryFile(/tmp/multipartBody6434541998965903557asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951495584,"filename":"image_14012025_09_38_17_10353.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329153707","file1":"1329153697","file0":"1329153691","file4":"1329153725","file5":"1329153732","file3":"1329153713"},"map_files_photo_id_array":[{"photo_id":"1329153732","filename":"file5"},{"photo_id":"1329153707","filename":"file2"},{"photo_id":"1329153725","filename":"file4"},{"photo_id":"1329153697","filename":"file1"},{"photo_id":"1329153691","filename":"file0"},{"photo_id":"1329153713","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329153732":["hashtag1","hashtag2"]},{"1329153725":["hashtag1","hashtag2"]},{"1329153713":["hashtag1","hashtag2"]},{"1329153707":["hashtag1","hashtag2"]},{"1329153697":["hashtag1","hashtag2"]},{"1329153691":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329153732, 1329153725, 1329153713, 1329153707, 1329153697, 1329153691)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.31792211532593 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 15 --only_old 1
2025-01-15 15:31:32.392801
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/39/image_14012025_09_39_16_9348.jpg', '/home/pi/Desktop/images/14012025/09/39/image_14012025_09_39_26_10401.jpg', '/home/pi/Desktop/images/14012025/09/39/image_14012025_09_39_37_10337.jpg', '/home/pi/Desktop/images/14012025/09/39/image_14012025_09_39_46_9443.jpg', '/home/pi/Desktop/images/14012025/09/39/image_14012025_09_39_57_10430.jpg', '/home/pi/Desktop/images/14012025/09/39/image_14012025_09_40_06_9324.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/39/image_14012025_09_39_16_9348.jpg
/home/pi/Desktop/images/14012025/09/39/image_14012025_09_39_26_10401.jpg
/home/pi/Desktop/images/14012025/09/39/image_14012025_09_39_37_10337.jpg
/home/pi/Desktop/images/14012025/09/39/image_14012025_09_39_46_9443.jpg
/home/pi/Desktop/images/14012025/09/39/image_14012025_09_39_57_10430.jpg
/home/pi/Desktop/images/14012025/09/39/image_14012025_09_40_06_9324.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329153791","1329153788","1329153758","1329153793","1329153781","1329153763"],"photo_ids_order":["1329153758","1329153763","1329153781","1329153788","1329153791","1329153793"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4cc32b638034c114e801edc32e20589b.jpg","text":"TemporaryFile(/tmp/multipartBody8836672001873152877asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951554922,"filename":"image_14012025_09_39_57_10430.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b58f703f64690a6f4702a5893f727449.jpg","text":"TemporaryFile(/tmp/multipartBody5791368353237518617asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951554922,"filename":"image_14012025_09_39_46_9443.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/53ca097ff8b1617306171c0d5e76b05b.jpg","text":"TemporaryFile(/tmp/multipartBody4483090001631147080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951554922,"filename":"image_14012025_09_39_16_9348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0311973e01ed9a49d89d2325e24a0b45.jpg","text":"TemporaryFile(/tmp/multipartBody3737105020512617877asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951554922,"filename":"image_14012025_09_40_06_9324.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a0dbdd88b60032710c876345b7d3f03c.jpg","text":"TemporaryFile(/tmp/multipartBody6929386762797225973asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951554922,"filename":"image_14012025_09_39_37_10337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/94113ead72af4a350330b9c67bea2b63.jpg","text":"TemporaryFile(/tmp/multipartBody7416450150219289195asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951554922,"filename":"image_14012025_09_39_26_10401.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329153781","file1":"1329153763","file0":"1329153758","file4":"1329153791","file5":"1329153793","file3":"1329153788"},"map_files_photo_id_array":[{"photo_id":"1329153793","filename":"file5"},{"photo_id":"1329153781","filename":"file2"},{"photo_id":"1329153791","filename":"file4"},{"photo_id":"1329153763","filename":"file1"},{"photo_id":"1329153758","filename":"file0"},{"photo_id":"1329153788","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329153791":["hashtag1","hashtag2"]},{"1329153788":["hashtag1","hashtag2"]},{"1329153758":["hashtag1","hashtag2"]},{"1329153793":["hashtag1","hashtag2"]},{"1329153781":["hashtag1","hashtag2"]},{"1329153763":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329153791, 1329153788, 1329153758, 1329153793, 1329153781, 1329153763)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.46485495567322 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 15 --only_old 1
2025-01-15 15:32:32.612582
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/40/image_14012025_09_40_16_10385.jpg', '/home/pi/Desktop/images/14012025/09/40/image_14012025_09_40_27_10385.jpg', '/home/pi/Desktop/images/14012025/09/40/image_14012025_09_40_36_9344.jpg', '/home/pi/Desktop/images/14012025/09/40/image_14012025_09_40_46_10342.jpg', '/home/pi/Desktop/images/14012025/09/40/image_14012025_09_40_57_10339.jpg', '/home/pi/Desktop/images/14012025/09/40/image_14012025_09_41_06_9337.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/40/image_14012025_09_40_16_10385.jpg
/home/pi/Desktop/images/14012025/09/40/image_14012025_09_40_27_10385.jpg
/home/pi/Desktop/images/14012025/09/40/image_14012025_09_40_36_9344.jpg
/home/pi/Desktop/images/14012025/09/40/image_14012025_09_40_46_10342.jpg
/home/pi/Desktop/images/14012025/09/40/image_14012025_09_40_57_10339.jpg
/home/pi/Desktop/images/14012025/09/40/image_14012025_09_41_06_9337.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 2.122799873352051 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
2025-01-15 15:32:42.627418
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/18/image_15012025_00_18_28_10382.jpg', '/home/pi/Desktop/images/15012025/00/18/image_15012025_00_18_47_10352.jpg', '/home/pi/Desktop/images/15012025/00/18/image_15012025_00_18_58_10370.jpg', '/home/pi/Desktop/images/15012025/00/19/image_15012025_00_19_37_10448.jpg', '/home/pi/Desktop/images/15012025/00/19/image_15012025_00_19_48_10388.jpg', '/home/pi/Desktop/images/15012025/00/19/image_15012025_00_19_57_9356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/18/image_15012025_00_18_28_10382.jpg
/home/pi/Desktop/images/15012025/00/18/image_15012025_00_18_47_10352.jpg
/home/pi/Desktop/images/15012025/00/18/image_15012025_00_18_58_10370.jpg
/home/pi/Desktop/images/15012025/00/19/image_15012025_00_19_37_10448.jpg
/home/pi/Desktop/images/15012025/00/19/image_15012025_00_19_48_10388.jpg
/home/pi/Desktop/images/15012025/00/19/image_15012025_00_19_57_9356.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329153825","1329153906","1329153834","1329153847","1329153817","1329153910"],"photo_ids_order":["1329153817","1329153825","1329153834","1329153847","1329153906","1329153910"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/844582a38aa198c0f1c5f7926080c693.jpg","text":"TemporaryFile(/tmp/multipartBody1544823823919446738asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951623760,"filename":"image_15012025_00_18_47_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f61ff6c5b0fcbced5deb642cea11d11f.jpg","text":"TemporaryFile(/tmp/multipartBody7106670870932601110asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951623760,"filename":"image_15012025_00_19_48_10388.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/aa25bebdeabc8ac9f82568643d408db3.jpg","text":"TemporaryFile(/tmp/multipartBody8540681457347166999asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951623760,"filename":"image_15012025_00_18_58_10370.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fe17927ed93e4b2408dd6400f5b42f79.jpg","text":"TemporaryFile(/tmp/multipartBody2052431995795244977asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951623760,"filename":"image_15012025_00_19_37_10448.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c301695fea2d45a7164bac5f63bed089.jpg","text":"TemporaryFile(/tmp/multipartBody1382020917911297574asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951623760,"filename":"image_15012025_00_18_28_10382.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4a7170d4ddc3748b5453d69dc5e09921.jpg","text":"TemporaryFile(/tmp/multipartBody8678655738631551753asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951623760,"filename":"image_15012025_00_19_57_9356.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329153834","file1":"1329153825","file0":"1329153817","file4":"1329153906","file5":"1329153910","file3":"1329153847"},"map_files_photo_id_array":[{"photo_id":"1329153910","filename":"file5"},{"photo_id":"1329153834","filename":"file2"},{"photo_id":"1329153906","filename":"file4"},{"photo_id":"1329153825","filename":"file1"},{"photo_id":"1329153817","filename":"file0"},{"photo_id":"1329153847","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329153825":["hashtag1","hashtag2"]},{"1329153906":["hashtag1","hashtag2"]},{"1329153834":["hashtag1","hashtag2"]},{"1329153847":["hashtag1","hashtag2"]},{"1329153817":["hashtag1","hashtag2"]},{"1329153910":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329153825, 1329153906, 1329153834, 1329153847, 1329153817, 1329153910)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.47997546195984 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 15 --only_old 1
2025-01-15 15:33:32.770489
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/40/image_14012025_09_40_16_10385.jpg', '/home/pi/Desktop/images/14012025/09/40/image_14012025_09_40_27_10385.jpg', '/home/pi/Desktop/images/14012025/09/40/image_14012025_09_40_36_9344.jpg', '/home/pi/Desktop/images/14012025/09/40/image_14012025_09_40_46_10342.jpg', '/home/pi/Desktop/images/14012025/09/40/image_14012025_09_40_57_10339.jpg', '/home/pi/Desktop/images/14012025/09/40/image_14012025_09_41_06_9337.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/40/image_14012025_09_40_16_10385.jpg
/home/pi/Desktop/images/14012025/09/40/image_14012025_09_40_27_10385.jpg
/home/pi/Desktop/images/14012025/09/40/image_14012025_09_40_36_9344.jpg
/home/pi/Desktop/images/14012025/09/40/image_14012025_09_40_46_10342.jpg
/home/pi/Desktop/images/14012025/09/40/image_14012025_09_40_57_10339.jpg
/home/pi/Desktop/images/14012025/09/40/image_14012025_09_41_06_9337.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329154809","1329154586","1329154471","1329154807","1329154801","1329154710"],"photo_ids_order":["1329154471","1329154586","1329154710","1329154801","1329154807","1329154809"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/763cfc05c91beaf95c38d3c12001475b.jpg","text":"TemporaryFile(/tmp/multipartBody4806099582871489923asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951675207,"filename":"image_14012025_09_41_06_9337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/abdb95101e9d193b2e7ffe6ff6dc6c75.jpg","text":"TemporaryFile(/tmp/multipartBody1235498075992794678asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951675207,"filename":"image_14012025_09_40_27_10385.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/85d7e25ed728b98cd4bb3d72cabdfdaf.jpg","text":"TemporaryFile(/tmp/multipartBody6375205667963594552asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951675207,"filename":"image_14012025_09_40_16_10385.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3dfcb2c0d57ffa27887916c86e51379a.jpg","text":"TemporaryFile(/tmp/multipartBody3384683242555363690asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951675207,"filename":"image_14012025_09_40_57_10339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2f32e6abe49fc81681a405ddc2c957b1.jpg","text":"TemporaryFile(/tmp/multipartBody318808119972667778asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951675207,"filename":"image_14012025_09_40_46_10342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a6777c471d8594bdd5523ee70901ff74.jpg","text":"TemporaryFile(/tmp/multipartBody6833037414271366818asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951675207,"filename":"image_14012025_09_40_36_9344.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329154710","file1":"1329154586","file0":"1329154471","file4":"1329154807","file5":"1329154809","file3":"1329154801"},"map_files_photo_id_array":[{"photo_id":"1329154809","filename":"file5"},{"photo_id":"1329154710","filename":"file2"},{"photo_id":"1329154807","filename":"file4"},{"photo_id":"1329154586","filename":"file1"},{"photo_id":"1329154471","filename":"file0"},{"photo_id":"1329154801","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329154809":["hashtag1","hashtag2"]},{"1329154586":["hashtag1","hashtag2"]},{"1329154471":["hashtag1","hashtag2"]},{"1329154807":["hashtag1","hashtag2"]},{"1329154801":["hashtag1","hashtag2"]},{"1329154710":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329154809, 1329154586, 1329154471, 1329154807, 1329154801, 1329154710)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.794933795928955 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 15 --only_old 1
2025-01-15 15:34:33.095898
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/41/image_14012025_09_41_17_10430.jpg', '/home/pi/Desktop/images/14012025/09/41/image_14012025_09_41_26_9354.jpg', '/home/pi/Desktop/images/14012025/09/41/image_14012025_09_41_36_10369.jpg', '/home/pi/Desktop/images/14012025/09/41/image_14012025_09_41_47_10349.jpg', '/home/pi/Desktop/images/14012025/09/41/image_14012025_09_41_56_9432.jpg', '/home/pi/Desktop/images/14012025/09/41/image_14012025_09_42_06_10360.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/41/image_14012025_09_41_17_10430.jpg
/home/pi/Desktop/images/14012025/09/41/image_14012025_09_41_26_9354.jpg
/home/pi/Desktop/images/14012025/09/41/image_14012025_09_41_36_10369.jpg
/home/pi/Desktop/images/14012025/09/41/image_14012025_09_41_47_10349.jpg
/home/pi/Desktop/images/14012025/09/41/image_14012025_09_41_56_9432.jpg
/home/pi/Desktop/images/14012025/09/41/image_14012025_09_42_06_10360.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329155135","1329154856","1329154846","1329155091","1329154936","1329155192"],"photo_ids_order":["1329154846","1329154856","1329154936","1329155091","1329155135","1329155192"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/085fbd851a081d8ae3cc0bb10101c099.jpg","text":"TemporaryFile(/tmp/multipartBody7399598632103221665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951735623,"filename":"image_14012025_09_41_56_9432.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/780f1de00c671a1156c84851143637ea.jpg","text":"TemporaryFile(/tmp/multipartBody2632613794229571091asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951735623,"filename":"image_14012025_09_41_26_9354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7f23086649cc53ff2a633a23b0d10a50.jpg","text":"TemporaryFile(/tmp/multipartBody1215834584167403939asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951735623,"filename":"image_14012025_09_41_17_10430.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f78eb53619f17e983882afff297c6bd4.jpg","text":"TemporaryFile(/tmp/multipartBody2681617910611880290asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951735623,"filename":"image_14012025_09_41_47_10349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f2b9364da23d47e6ffe2bcd92d7d8391.jpg","text":"TemporaryFile(/tmp/multipartBody6920225600052494620asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951735623,"filename":"image_14012025_09_41_36_10369.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d354c93ba5673576cd08d75b7cf26fa0.jpg","text":"TemporaryFile(/tmp/multipartBody6862277043390327610asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951735623,"filename":"image_14012025_09_42_06_10360.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329154936","file1":"1329154856","file0":"1329154846","file4":"1329155135","file5":"1329155192","file3":"1329155091"},"map_files_photo_id_array":[{"photo_id":"1329155192","filename":"file5"},{"photo_id":"1329154936","filename":"file2"},{"photo_id":"1329155135","filename":"file4"},{"photo_id":"1329154856","filename":"file1"},{"photo_id":"1329154846","filename":"file0"},{"photo_id":"1329155091","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329155135":["hashtag1","hashtag2"]},{"1329154856":["hashtag1","hashtag2"]},{"1329154846":["hashtag1","hashtag2"]},{"1329155091":["hashtag1","hashtag2"]},{"1329154936":["hashtag1","hashtag2"]},{"1329155192":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329155135, 1329154856, 1329154846, 1329155091, 1329154936, 1329155192)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 49.950522661209106 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 15 --only_old 1
2025-01-15 15:35:32.609485
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/42/image_14012025_09_42_17_10367.jpg', '/home/pi/Desktop/images/14012025/09/42/image_14012025_09_42_26_9357.jpg', '/home/pi/Desktop/images/14012025/09/42/image_14012025_09_42_37_10418.jpg', '/home/pi/Desktop/images/14012025/09/42/image_14012025_09_42_46_9340.jpg', '/home/pi/Desktop/images/14012025/09/42/image_14012025_09_42_56_10435.jpg', '/home/pi/Desktop/images/14012025/09/42/image_14012025_09_43_07_10344.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/42/image_14012025_09_42_17_10367.jpg
/home/pi/Desktop/images/14012025/09/42/image_14012025_09_42_26_9357.jpg
/home/pi/Desktop/images/14012025/09/42/image_14012025_09_42_37_10418.jpg
/home/pi/Desktop/images/14012025/09/42/image_14012025_09_42_46_9340.jpg
/home/pi/Desktop/images/14012025/09/42/image_14012025_09_42_56_10435.jpg
/home/pi/Desktop/images/14012025/09/42/image_14012025_09_43_07_10344.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329155258","1329155306","1329155308","1329155292","1329155286","1329155271"],"photo_ids_order":["1329155258","1329155271","1329155286","1329155292","1329155306","1329155308"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/330be1c25627ff871ac4014a7fc01e31.jpg","text":"TemporaryFile(/tmp/multipartBody4819174285934622824asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951795141,"filename":"image_14012025_09_42_17_10367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bc9923b07a33951fe256957d7c177c85.jpg","text":"TemporaryFile(/tmp/multipartBody6937742171805508664asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951795141,"filename":"image_14012025_09_42_56_10435.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/70137984587b06cec60cad031c517d14.jpg","text":"TemporaryFile(/tmp/multipartBody2575368928256589787asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951795141,"filename":"image_14012025_09_43_07_10344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/12a2474fec09a53fb6bdef77a713af90.jpg","text":"TemporaryFile(/tmp/multipartBody9019361063224773227asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951795141,"filename":"image_14012025_09_42_46_9340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9bf83f31e0d1b0e6da1e85d99172fb46.jpg","text":"TemporaryFile(/tmp/multipartBody1432770515185614657asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951795141,"filename":"image_14012025_09_42_37_10418.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1ffd203a02b9df51450a4ede31435003.jpg","text":"TemporaryFile(/tmp/multipartBody2566758552391414917asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951795141,"filename":"image_14012025_09_42_26_9357.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329155286","file1":"1329155271","file0":"1329155258","file4":"1329155306","file5":"1329155308","file3":"1329155292"},"map_files_photo_id_array":[{"photo_id":"1329155308","filename":"file5"},{"photo_id":"1329155286","filename":"file2"},{"photo_id":"1329155306","filename":"file4"},{"photo_id":"1329155271","filename":"file1"},{"photo_id":"1329155258","filename":"file0"},{"photo_id":"1329155292","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329155258":["hashtag1","hashtag2"]},{"1329155306":["hashtag1","hashtag2"]},{"1329155308":["hashtag1","hashtag2"]},{"1329155292":["hashtag1","hashtag2"]},{"1329155286":["hashtag1","hashtag2"]},{"1329155271":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329155258, 1329155306, 1329155308, 1329155292, 1329155286, 1329155271)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.120699405670166 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 15 --only_old 1
2025-01-15 15:36:32.734694
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/43/image_14012025_09_43_16_9351.jpg', '/home/pi/Desktop/images/14012025/09/43/image_14012025_09_43_26_10442.jpg', '/home/pi/Desktop/images/14012025/09/43/image_14012025_09_43_36_9388.jpg', '/home/pi/Desktop/images/14012025/09/43/image_14012025_09_43_46_10525.jpg', '/home/pi/Desktop/images/14012025/09/43/image_14012025_09_43_57_10354.jpg', '/home/pi/Desktop/images/14012025/09/43/image_14012025_09_44_06_9339.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/43/image_14012025_09_43_16_9351.jpg
/home/pi/Desktop/images/14012025/09/43/image_14012025_09_43_26_10442.jpg
/home/pi/Desktop/images/14012025/09/43/image_14012025_09_43_36_9388.jpg
/home/pi/Desktop/images/14012025/09/43/image_14012025_09_43_46_10525.jpg
/home/pi/Desktop/images/14012025/09/43/image_14012025_09_43_57_10354.jpg
/home/pi/Desktop/images/14012025/09/43/image_14012025_09_44_06_9339.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329155377","1329155359","1329155332","1329155346","1329155372","1329155366"],"photo_ids_order":["1329155332","1329155346","1329155359","1329155366","1329155372","1329155377"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7a218f8c448d0f238ca3223e9ddbf877.jpg","text":"TemporaryFile(/tmp/multipartBody4734530938382097721asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951855262,"filename":"image_14012025_09_44_06_9339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7cd72f06c35b76fee4737c25eb315088.jpg","text":"TemporaryFile(/tmp/multipartBody9195939393055595792asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951855262,"filename":"image_14012025_09_43_36_9388.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/058fbf464fe0d23d2e178e879950c034.jpg","text":"TemporaryFile(/tmp/multipartBody3952790255722922351asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951855262,"filename":"image_14012025_09_43_16_9351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4dcdf7cb60804e27c2ac85f5a48f0635.jpg","text":"TemporaryFile(/tmp/multipartBody6129350893160479255asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951855262,"filename":"image_14012025_09_43_26_10442.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cb5d722bee813bf38296fd0866ea24f1.jpg","text":"TemporaryFile(/tmp/multipartBody8384214569509403350asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951855262,"filename":"image_14012025_09_43_57_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fcfbea8e3fc65dae01762e60f8ea4407.jpg","text":"TemporaryFile(/tmp/multipartBody8737630908570247499asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951855262,"filename":"image_14012025_09_43_46_10525.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329155359","file1":"1329155346","file0":"1329155332","file4":"1329155372","file5":"1329155377","file3":"1329155366"},"map_files_photo_id_array":[{"photo_id":"1329155377","filename":"file5"},{"photo_id":"1329155359","filename":"file2"},{"photo_id":"1329155372","filename":"file4"},{"photo_id":"1329155346","filename":"file1"},{"photo_id":"1329155332","filename":"file0"},{"photo_id":"1329155366","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329155377":["hashtag1","hashtag2"]},{"1329155359":["hashtag1","hashtag2"]},{"1329155332":["hashtag1","hashtag2"]},{"1329155346":["hashtag1","hashtag2"]},{"1329155372":["hashtag1","hashtag2"]},{"1329155366":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329155377, 1329155359, 1329155332, 1329155346, 1329155372, 1329155366)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.45404052734375 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 15 --only_old 1
2025-01-15 15:37:33.976701
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/44/image_14012025_09_44_26_9357.jpg', '/home/pi/Desktop/images/14012025/09/44/image_14012025_09_44_36_10405.jpg', '/home/pi/Desktop/images/14012025/09/44/image_14012025_09_44_56_9359.jpg', '/home/pi/Desktop/images/14012025/09/44/image_14012025_09_45_06_10351.jpg', '/home/pi/Desktop/images/14012025/09/45/image_14012025_09_45_26_9410.jpg', '/home/pi/Desktop/images/14012025/09/45/image_14012025_09_45_36_10321.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/44/image_14012025_09_44_26_9357.jpg
/home/pi/Desktop/images/14012025/09/44/image_14012025_09_44_36_10405.jpg
/home/pi/Desktop/images/14012025/09/44/image_14012025_09_44_56_9359.jpg
/home/pi/Desktop/images/14012025/09/44/image_14012025_09_45_06_10351.jpg
/home/pi/Desktop/images/14012025/09/45/image_14012025_09_45_26_9410.jpg
/home/pi/Desktop/images/14012025/09/45/image_14012025_09_45_36_10321.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 2.425753593444824 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
2025-01-15 15:37:43.077247
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/19/image_15012025_00_20_07_10358.jpg', '/home/pi/Desktop/images/15012025/00/20/image_15012025_00_20_17_9351.jpg', '/home/pi/Desktop/images/15012025/00/20/image_15012025_00_20_27_10369.jpg', '/home/pi/Desktop/images/15012025/00/20/image_15012025_00_20_37_10364.jpg', '/home/pi/Desktop/images/15012025/00/20/image_15012025_00_20_47_9337.jpg', '/home/pi/Desktop/images/15012025/00/20/image_15012025_00_20_57_10481.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/19/image_15012025_00_20_07_10358.jpg
/home/pi/Desktop/images/15012025/00/20/image_15012025_00_20_17_9351.jpg
/home/pi/Desktop/images/15012025/00/20/image_15012025_00_20_27_10369.jpg
/home/pi/Desktop/images/15012025/00/20/image_15012025_00_20_37_10364.jpg
/home/pi/Desktop/images/15012025/00/20/image_15012025_00_20_47_9337.jpg
/home/pi/Desktop/images/15012025/00/20/image_15012025_00_20_57_10481.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329155468","1329155482","1329155476","1329155455","1329155440","1329155484"],"photo_ids_order":["1329155440","1329155455","1329155468","1329155476","1329155482","1329155484"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0ea3da751cd1636e8ffd688ea4fb293b.jpg","text":"TemporaryFile(/tmp/multipartBody4540859013671845087asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951924912,"filename":"image_15012025_00_20_27_10369.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/33ec9cb22086965d1afbce64c81a97be.jpg","text":"TemporaryFile(/tmp/multipartBody7818938021928602256asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951924912,"filename":"image_15012025_00_20_47_9337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/087f31985f1168d4f32782b6619f75f3.jpg","text":"TemporaryFile(/tmp/multipartBody6061728249148155097asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951924912,"filename":"image_15012025_00_20_37_10364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2aa8ba31298bd116267b83ab0613c75a.jpg","text":"TemporaryFile(/tmp/multipartBody5412052371333675568asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951924912,"filename":"image_15012025_00_20_17_9351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/876381e3eb7e273b8521705739e9147f.jpg","text":"TemporaryFile(/tmp/multipartBody5956988634820321950asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951924912,"filename":"image_15012025_00_20_07_10358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5da70106799a551e6ec0d3ebffbd99b1.jpg","text":"TemporaryFile(/tmp/multipartBody5278402702469314715asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951924912,"filename":"image_15012025_00_20_57_10481.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329155468","file1":"1329155455","file0":"1329155440","file4":"1329155482","file5":"1329155484","file3":"1329155476"},"map_files_photo_id_array":[{"photo_id":"1329155484","filename":"file5"},{"photo_id":"1329155468","filename":"file2"},{"photo_id":"1329155482","filename":"file4"},{"photo_id":"1329155455","filename":"file1"},{"photo_id":"1329155440","filename":"file0"},{"photo_id":"1329155476","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329155468":["hashtag1","hashtag2"]},{"1329155482":["hashtag1","hashtag2"]},{"1329155476":["hashtag1","hashtag2"]},{"1329155455":["hashtag1","hashtag2"]},{"1329155440":["hashtag1","hashtag2"]},{"1329155484":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329155468, 1329155482, 1329155476, 1329155455, 1329155440, 1329155484)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.69717717170715 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 15 --only_old 1
2025-01-15 15:38:33.227907
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/44/image_14012025_09_44_26_9357.jpg', '/home/pi/Desktop/images/14012025/09/44/image_14012025_09_44_36_10405.jpg', '/home/pi/Desktop/images/14012025/09/44/image_14012025_09_44_56_9359.jpg', '/home/pi/Desktop/images/14012025/09/44/image_14012025_09_45_06_10351.jpg', '/home/pi/Desktop/images/14012025/09/45/image_14012025_09_45_26_9410.jpg', '/home/pi/Desktop/images/14012025/09/45/image_14012025_09_45_36_10321.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/44/image_14012025_09_44_26_9357.jpg
/home/pi/Desktop/images/14012025/09/44/image_14012025_09_44_36_10405.jpg
/home/pi/Desktop/images/14012025/09/44/image_14012025_09_44_56_9359.jpg
/home/pi/Desktop/images/14012025/09/44/image_14012025_09_45_06_10351.jpg
/home/pi/Desktop/images/14012025/09/45/image_14012025_09_45_26_9410.jpg
/home/pi/Desktop/images/14012025/09/45/image_14012025_09_45_36_10321.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329155558","1329155537","1329155531","1329155518","1329155562","1329155565"],"photo_ids_order":["1329155518","1329155531","1329155537","1329155558","1329155562","1329155565"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/88f707835fb0d5613368bdea2302cb8c.jpg","text":"TemporaryFile(/tmp/multipartBody4609603104026211653asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951975681,"filename":"image_14012025_09_45_06_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d57cad656e2dfdabbd3dbd6f481490e8.jpg","text":"TemporaryFile(/tmp/multipartBody5668778447957278826asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951975681,"filename":"image_14012025_09_44_56_9359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/60521b89da3011437ddb3ffebf1995ab.jpg","text":"TemporaryFile(/tmp/multipartBody6068857463921530466asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951975681,"filename":"image_14012025_09_44_36_10405.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/20388b2da649aaa9c22be519270a4009.jpg","text":"TemporaryFile(/tmp/multipartBody7607274682505194355asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951975681,"filename":"image_14012025_09_44_26_9357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b8a4da1ec75978ffebae1b724a6c2da9.jpg","text":"TemporaryFile(/tmp/multipartBody178647190691185160asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951975681,"filename":"image_14012025_09_45_26_9410.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d66c6f5a4f48216ee86c97ee40b470b3.jpg","text":"TemporaryFile(/tmp/multipartBody1486480896547808675asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736951975681,"filename":"image_14012025_09_45_36_10321.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329155537","file1":"1329155531","file0":"1329155518","file4":"1329155562","file5":"1329155565","file3":"1329155558"},"map_files_photo_id_array":[{"photo_id":"1329155565","filename":"file5"},{"photo_id":"1329155537","filename":"file2"},{"photo_id":"1329155562","filename":"file4"},{"photo_id":"1329155531","filename":"file1"},{"photo_id":"1329155518","filename":"file0"},{"photo_id":"1329155558","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329155558":["hashtag1","hashtag2"]},{"1329155537":["hashtag1","hashtag2"]},{"1329155531":["hashtag1","hashtag2"]},{"1329155518":["hashtag1","hashtag2"]},{"1329155562":["hashtag1","hashtag2"]},{"1329155565":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329155558, 1329155537, 1329155531, 1329155518, 1329155562, 1329155565)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.1797730922699 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 15 --only_old 1
2025-01-15 15:39:32.440054
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/46/image_14012025_09_46_16_9327.jpg', '/home/pi/Desktop/images/14012025/09/46/image_14012025_09_46_26_10358.jpg', '/home/pi/Desktop/images/14012025/09/46/image_14012025_09_46_46_9378.jpg', '/home/pi/Desktop/images/14012025/09/46/image_14012025_09_46_56_10434.jpg', '/home/pi/Desktop/images/14012025/09/46/image_14012025_09_47_07_10368.jpg', '/home/pi/Desktop/images/14012025/09/47/image_14012025_09_47_46_10337.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/46/image_14012025_09_46_16_9327.jpg
/home/pi/Desktop/images/14012025/09/46/image_14012025_09_46_26_10358.jpg
/home/pi/Desktop/images/14012025/09/46/image_14012025_09_46_46_9378.jpg
/home/pi/Desktop/images/14012025/09/46/image_14012025_09_46_56_10434.jpg
/home/pi/Desktop/images/14012025/09/46/image_14012025_09_47_07_10368.jpg
/home/pi/Desktop/images/14012025/09/47/image_14012025_09_47_46_10337.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329155702","1329155725","1329155728","1329155685","1329155655","1329155721"],"photo_ids_order":["1329155655","1329155685","1329155702","1329155721","1329155725","1329155728"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f412fb30b70c29248fbe1c15aab23e89.jpg","text":"TemporaryFile(/tmp/multipartBody2968573154147360721asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952034974,"filename":"image_14012025_09_46_46_9378.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3a87d1f64c9754b0cec43d3c562e958f.jpg","text":"TemporaryFile(/tmp/multipartBody6756499475968153686asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952034974,"filename":"image_14012025_09_47_07_10368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d6d68b2558211b4d639e8df8f73c2884.jpg","text":"TemporaryFile(/tmp/multipartBody7839311734627104734asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952034974,"filename":"image_14012025_09_47_46_10337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a56333708f582607f56ca35be261bc9b.jpg","text":"TemporaryFile(/tmp/multipartBody7187432102588313428asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952034974,"filename":"image_14012025_09_46_26_10358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/91b2d168c630079939feacb29be8fa56.jpg","text":"TemporaryFile(/tmp/multipartBody5032970590839654510asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952034974,"filename":"image_14012025_09_46_16_9327.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/06c50b612d2c6b5c605dd2bb47d69634.jpg","text":"TemporaryFile(/tmp/multipartBody5871142795402732364asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952034974,"filename":"image_14012025_09_46_56_10434.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329155702","file1":"1329155685","file0":"1329155655","file4":"1329155725","file5":"1329155728","file3":"1329155721"},"map_files_photo_id_array":[{"photo_id":"1329155728","filename":"file5"},{"photo_id":"1329155702","filename":"file2"},{"photo_id":"1329155725","filename":"file4"},{"photo_id":"1329155685","filename":"file1"},{"photo_id":"1329155655","filename":"file0"},{"photo_id":"1329155721","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329155702":["hashtag1","hashtag2"]},{"1329155725":["hashtag1","hashtag2"]},{"1329155728":["hashtag1","hashtag2"]},{"1329155685":["hashtag1","hashtag2"]},{"1329155655":["hashtag1","hashtag2"]},{"1329155721":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329155702, 1329155725, 1329155728, 1329155685, 1329155655, 1329155721)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 51.518468618392944 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 15 --only_old 1
2025-01-15 15:40:32.657559
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/47/image_14012025_09_47_57_10351.jpg', '/home/pi/Desktop/images/14012025/09/47/image_14012025_09_48_06_9361.jpg', '/home/pi/Desktop/images/14012025/09/48/image_14012025_09_48_16_10404.jpg', '/home/pi/Desktop/images/14012025/09/48/image_14012025_09_48_27_10359.jpg', '/home/pi/Desktop/images/14012025/09/48/image_14012025_09_48_36_9333.jpg', '/home/pi/Desktop/images/14012025/09/48/image_14012025_09_48_46_10354.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/47/image_14012025_09_47_57_10351.jpg
/home/pi/Desktop/images/14012025/09/47/image_14012025_09_48_06_9361.jpg
/home/pi/Desktop/images/14012025/09/48/image_14012025_09_48_16_10404.jpg
/home/pi/Desktop/images/14012025/09/48/image_14012025_09_48_27_10359.jpg
/home/pi/Desktop/images/14012025/09/48/image_14012025_09_48_36_9333.jpg
/home/pi/Desktop/images/14012025/09/48/image_14012025_09_48_46_10354.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329155819","1329155822","1329155806","1329155815","1329155799","1329155817"],"photo_ids_order":["1329155799","1329155806","1329155815","1329155817","1329155819","1329155822"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/569e47f524a95592e901a73dce5e44b4.jpg","text":"TemporaryFile(/tmp/multipartBody1068670949375206239asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952095187,"filename":"image_14012025_09_48_36_9333.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/823fd6d6bd7f00e21c754c7cfd4b0716.jpg","text":"TemporaryFile(/tmp/multipartBody4967657792884829234asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952095187,"filename":"image_14012025_09_48_46_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2a28be9f4fc993781b659b886dad26a3.jpg","text":"TemporaryFile(/tmp/multipartBody8343986420813757332asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952095187,"filename":"image_14012025_09_48_06_9361.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7cc23a765dc99fd7e175a7ff0f7cc352.jpg","text":"TemporaryFile(/tmp/multipartBody3246374251728517544asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952095187,"filename":"image_14012025_09_48_16_10404.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b6226c4b0da65e83271ffbcaa2ecd4f1.jpg","text":"TemporaryFile(/tmp/multipartBody6222387265039849128asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952095187,"filename":"image_14012025_09_47_57_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6eef1d884d049535944dd65421ba88b1.jpg","text":"TemporaryFile(/tmp/multipartBody4022279632611145129asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952095187,"filename":"image_14012025_09_48_27_10359.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329155815","file1":"1329155806","file0":"1329155799","file4":"1329155819","file5":"1329155822","file3":"1329155817"},"map_files_photo_id_array":[{"photo_id":"1329155822","filename":"file5"},{"photo_id":"1329155815","filename":"file2"},{"photo_id":"1329155819","filename":"file4"},{"photo_id":"1329155806","filename":"file1"},{"photo_id":"1329155799","filename":"file0"},{"photo_id":"1329155817","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329155819":["hashtag1","hashtag2"]},{"1329155822":["hashtag1","hashtag2"]},{"1329155806":["hashtag1","hashtag2"]},{"1329155815":["hashtag1","hashtag2"]},{"1329155799":["hashtag1","hashtag2"]},{"1329155817":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329155819, 1329155822, 1329155806, 1329155815, 1329155799, 1329155817)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.040417194366455 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 15 --only_old 1
2025-01-15 15:41:33.012430
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/48/image_14012025_09_48_57_10360.jpg', '/home/pi/Desktop/images/14012025/09/48/image_14012025_09_49_06_9426.jpg', '/home/pi/Desktop/images/14012025/09/49/image_14012025_09_49_17_10415.jpg', '/home/pi/Desktop/images/14012025/09/49/image_14012025_09_49_26_9430.jpg', '/home/pi/Desktop/images/14012025/09/49/image_14012025_09_49_36_10342.jpg', '/home/pi/Desktop/images/14012025/09/49/image_14012025_09_49_47_10359.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/48/image_14012025_09_48_57_10360.jpg
/home/pi/Desktop/images/14012025/09/48/image_14012025_09_49_06_9426.jpg
/home/pi/Desktop/images/14012025/09/49/image_14012025_09_49_17_10415.jpg
/home/pi/Desktop/images/14012025/09/49/image_14012025_09_49_26_9430.jpg
/home/pi/Desktop/images/14012025/09/49/image_14012025_09_49_36_10342.jpg
/home/pi/Desktop/images/14012025/09/49/image_14012025_09_49_47_10359.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 2.1437864303588867 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
2025-01-15 15:41:42.938128
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/20/image_15012025_00_21_08_10376.jpg', '/home/pi/Desktop/images/15012025/00/21/image_15012025_00_21_17_9373.jpg', '/home/pi/Desktop/images/15012025/00/21/image_15012025_00_21_27_10441.jpg', '/home/pi/Desktop/images/15012025/00/21/image_15012025_00_21_37_9419.jpg', '/home/pi/Desktop/images/15012025/00/21/image_15012025_00_21_47_10437.jpg', '/home/pi/Desktop/images/15012025/00/21/image_15012025_00_21_58_10375.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/20/image_15012025_00_21_08_10376.jpg
/home/pi/Desktop/images/15012025/00/21/image_15012025_00_21_17_9373.jpg
/home/pi/Desktop/images/15012025/00/21/image_15012025_00_21_27_10441.jpg
/home/pi/Desktop/images/15012025/00/21/image_15012025_00_21_37_9419.jpg
/home/pi/Desktop/images/15012025/00/21/image_15012025_00_21_47_10437.jpg
/home/pi/Desktop/images/15012025/00/21/image_15012025_00_21_58_10375.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329155924","1329155906","1329155915","1329155926","1329155919","1329155897"],"photo_ids_order":["1329155897","1329155906","1329155915","1329155919","1329155924","1329155926"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0853b1ba567ac4f1e708b00d7907f669.jpg","text":"TemporaryFile(/tmp/multipartBody808966912537631991asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952163949,"filename":"image_15012025_00_21_47_10437.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9a319fa4e039bf176ee739677c4f4a0a.jpg","text":"TemporaryFile(/tmp/multipartBody571676194728341605asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952163949,"filename":"image_15012025_00_21_17_9373.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/09e5f5c7d45ea6dbfaa1ba2ddaa1b08e.jpg","text":"TemporaryFile(/tmp/multipartBody4884138014848797684asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952163949,"filename":"image_15012025_00_21_27_10441.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/38861925e3f0abe8ba912fd776661d6f.jpg","text":"TemporaryFile(/tmp/multipartBody5958461118530733758asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952163949,"filename":"image_15012025_00_21_58_10375.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2b2e244586481ca074427f18f1ceb627.jpg","text":"TemporaryFile(/tmp/multipartBody6961284831580784395asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952163949,"filename":"image_15012025_00_21_37_9419.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2eb0aaca6604d7cc3a6382a345a30efe.jpg","text":"TemporaryFile(/tmp/multipartBody4124053154096777780asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952163949,"filename":"image_15012025_00_21_08_10376.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329155915","file1":"1329155906","file0":"1329155897","file4":"1329155924","file5":"1329155926","file3":"1329155919"},"map_files_photo_id_array":[{"photo_id":"1329155926","filename":"file5"},{"photo_id":"1329155915","filename":"file2"},{"photo_id":"1329155924","filename":"file4"},{"photo_id":"1329155906","filename":"file1"},{"photo_id":"1329155897","filename":"file0"},{"photo_id":"1329155919","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329155924":["hashtag1","hashtag2"]},{"1329155906":["hashtag1","hashtag2"]},{"1329155915":["hashtag1","hashtag2"]},{"1329155926":["hashtag1","hashtag2"]},{"1329155919":["hashtag1","hashtag2"]},{"1329155897":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329155924, 1329155906, 1329155915, 1329155926, 1329155919, 1329155897)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.908175230026245 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 15 --only_old 1
2025-01-15 15:42:33.083653
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/48/image_14012025_09_48_57_10360.jpg', '/home/pi/Desktop/images/14012025/09/48/image_14012025_09_49_06_9426.jpg', '/home/pi/Desktop/images/14012025/09/49/image_14012025_09_49_17_10415.jpg', '/home/pi/Desktop/images/14012025/09/49/image_14012025_09_49_26_9430.jpg', '/home/pi/Desktop/images/14012025/09/49/image_14012025_09_49_36_10342.jpg', '/home/pi/Desktop/images/14012025/09/49/image_14012025_09_49_47_10359.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/48/image_14012025_09_48_57_10360.jpg
/home/pi/Desktop/images/14012025/09/48/image_14012025_09_49_06_9426.jpg
/home/pi/Desktop/images/14012025/09/49/image_14012025_09_49_17_10415.jpg
/home/pi/Desktop/images/14012025/09/49/image_14012025_09_49_26_9430.jpg
/home/pi/Desktop/images/14012025/09/49/image_14012025_09_49_36_10342.jpg
/home/pi/Desktop/images/14012025/09/49/image_14012025_09_49_47_10359.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329155963","1329155957","1329155971","1329155985","1329155981","1329155975"],"photo_ids_order":["1329155957","1329155963","1329155971","1329155975","1329155981","1329155985"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dc301930cba5ac06a3e5d664f390292a.jpg","text":"TemporaryFile(/tmp/multipartBody590997057275011554asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952215542,"filename":"image_14012025_09_49_06_9426.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f25588c91592747aea99960284b66a81.jpg","text":"TemporaryFile(/tmp/multipartBody2796200802439684297asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952215542,"filename":"image_14012025_09_48_57_10360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b4c0a1d36458b1290cc22c41c101778c.jpg","text":"TemporaryFile(/tmp/multipartBody7345685095409874550asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952215542,"filename":"image_14012025_09_49_17_10415.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/437b3ad387dcbd396da5d7c62c6822e3.jpg","text":"TemporaryFile(/tmp/multipartBody5952161017556791354asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952215542,"filename":"image_14012025_09_49_47_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b54b30cc83d9f1589dd07011dd6af1d6.jpg","text":"TemporaryFile(/tmp/multipartBody5567298954321576929asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952215542,"filename":"image_14012025_09_49_36_10342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a52935b868e1f164068e8249fe0c8c0c.jpg","text":"TemporaryFile(/tmp/multipartBody6910059201434097276asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952215542,"filename":"image_14012025_09_49_26_9430.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329155971","file1":"1329155963","file0":"1329155957","file4":"1329155981","file5":"1329155985","file3":"1329155975"},"map_files_photo_id_array":[{"photo_id":"1329155985","filename":"file5"},{"photo_id":"1329155971","filename":"file2"},{"photo_id":"1329155981","filename":"file4"},{"photo_id":"1329155963","filename":"file1"},{"photo_id":"1329155957","filename":"file0"},{"photo_id":"1329155975","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329155963":["hashtag1","hashtag2"]},{"1329155957":["hashtag1","hashtag2"]},{"1329155971":["hashtag1","hashtag2"]},{"1329155985":["hashtag1","hashtag2"]},{"1329155981":["hashtag1","hashtag2"]},{"1329155975":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329155963, 1329155957, 1329155971, 1329155985, 1329155981, 1329155975)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.48636794090271 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 15 --only_old 1
2025-01-15 15:43:32.314713
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/49/image_14012025_09_49_56_9461.jpg', '/home/pi/Desktop/images/14012025/09/49/image_14012025_09_50_07_10347.jpg', '/home/pi/Desktop/images/14012025/09/50/image_14012025_09_50_16_9331.jpg', '/home/pi/Desktop/images/14012025/09/50/image_14012025_09_50_26_10370.jpg', '/home/pi/Desktop/images/14012025/09/50/image_14012025_09_50_36_9851.jpg', '/home/pi/Desktop/images/14012025/09/50/image_14012025_09_50_46_10345.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/49/image_14012025_09_49_56_9461.jpg
/home/pi/Desktop/images/14012025/09/49/image_14012025_09_50_07_10347.jpg
/home/pi/Desktop/images/14012025/09/50/image_14012025_09_50_16_9331.jpg
/home/pi/Desktop/images/14012025/09/50/image_14012025_09_50_26_10370.jpg
/home/pi/Desktop/images/14012025/09/50/image_14012025_09_50_36_9851.jpg
/home/pi/Desktop/images/14012025/09/50/image_14012025_09_50_46_10345.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329156011","1329156020","1329156046","1329156049","1329156036","1329156006"],"photo_ids_order":["1329156006","1329156011","1329156020","1329156036","1329156046","1329156049"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4db1ba01895ce24b58b623005ff7ee9d.jpg","text":"TemporaryFile(/tmp/multipartBody3976029547459281365asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952274887,"filename":"image_14012025_09_50_07_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4a1addc377425a7f386cb1183e69b0c9.jpg","text":"TemporaryFile(/tmp/multipartBody943817185634176396asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952274887,"filename":"image_14012025_09_50_16_9331.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9b4d5c60c1ef632883b794b5494ca424.jpg","text":"TemporaryFile(/tmp/multipartBody1828127371055791509asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952274887,"filename":"image_14012025_09_50_36_9851.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c62880b65c2e5eb4bc0c157a8dbf2e16.jpg","text":"TemporaryFile(/tmp/multipartBody3584964190728701647asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952274887,"filename":"image_14012025_09_50_46_10345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/375051e5a201859ec83df0189666a119.jpg","text":"TemporaryFile(/tmp/multipartBody7399618142905709803asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952274887,"filename":"image_14012025_09_50_26_10370.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/26e7e779c1d32f1f3b9472dfb4d10874.jpg","text":"TemporaryFile(/tmp/multipartBody5385396685445876452asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952274887,"filename":"image_14012025_09_49_56_9461.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329156020","file1":"1329156011","file0":"1329156006","file4":"1329156046","file5":"1329156049","file3":"1329156036"},"map_files_photo_id_array":[{"photo_id":"1329156049","filename":"file5"},{"photo_id":"1329156020","filename":"file2"},{"photo_id":"1329156046","filename":"file4"},{"photo_id":"1329156011","filename":"file1"},{"photo_id":"1329156006","filename":"file0"},{"photo_id":"1329156036","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329156011":["hashtag1","hashtag2"]},{"1329156020":["hashtag1","hashtag2"]},{"1329156046":["hashtag1","hashtag2"]},{"1329156049":["hashtag1","hashtag2"]},{"1329156036":["hashtag1","hashtag2"]},{"1329156006":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329156011, 1329156020, 1329156046, 1329156049, 1329156036, 1329156006)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.93867826461792 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 15 --only_old 1
2025-01-15 15:44:32.655775
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/50/image_14012025_09_50_56_9434.jpg', '/home/pi/Desktop/images/14012025/09/50/image_14012025_09_51_06_10408.jpg', '/home/pi/Desktop/images/14012025/09/51/image_14012025_09_51_17_10349.jpg', '/home/pi/Desktop/images/14012025/09/51/image_14012025_09_51_26_9333.jpg', '/home/pi/Desktop/images/14012025/09/51/image_14012025_09_51_36_10421.jpg', '/home/pi/Desktop/images/14012025/09/51/image_14012025_09_51_47_10340.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/50/image_14012025_09_50_56_9434.jpg
/home/pi/Desktop/images/14012025/09/50/image_14012025_09_51_06_10408.jpg
/home/pi/Desktop/images/14012025/09/51/image_14012025_09_51_17_10349.jpg
/home/pi/Desktop/images/14012025/09/51/image_14012025_09_51_26_9333.jpg
/home/pi/Desktop/images/14012025/09/51/image_14012025_09_51_36_10421.jpg
/home/pi/Desktop/images/14012025/09/51/image_14012025_09_51_47_10340.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329156180","1329156072","1329156179","1329156161","1329156149","1329156158"],"photo_ids_order":["1329156072","1329156149","1329156158","1329156161","1329156179","1329156180"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d63284d2e626f15ab22a0dc5875b5c3a.jpg","text":"TemporaryFile(/tmp/multipartBody7730213276478477665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952335203,"filename":"image_14012025_09_51_47_10340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1708e81873ba4286da8824a9136d4323.jpg","text":"TemporaryFile(/tmp/multipartBody6271250514871390377asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952335203,"filename":"image_14012025_09_50_56_9434.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8a4ef25e31a6d8f803a1c1eb63e6f460.jpg","text":"TemporaryFile(/tmp/multipartBody2695040867129644158asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952335203,"filename":"image_14012025_09_51_36_10421.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3c236dc74aa1cb08b23dde41ba42de46.jpg","text":"TemporaryFile(/tmp/multipartBody8582463084166559850asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952335203,"filename":"image_14012025_09_51_26_9333.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fa859e5b5fe353c86fe29f0c51289d04.jpg","text":"TemporaryFile(/tmp/multipartBody3525434723493379284asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952335203,"filename":"image_14012025_09_51_06_10408.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/edbd90075900aecd790d875a3474d91a.jpg","text":"TemporaryFile(/tmp/multipartBody7456755145016398593asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952335203,"filename":"image_14012025_09_51_17_10349.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329156158","file1":"1329156149","file0":"1329156072","file4":"1329156179","file5":"1329156180","file3":"1329156161"},"map_files_photo_id_array":[{"photo_id":"1329156180","filename":"file5"},{"photo_id":"1329156158","filename":"file2"},{"photo_id":"1329156179","filename":"file4"},{"photo_id":"1329156149","filename":"file1"},{"photo_id":"1329156072","filename":"file0"},{"photo_id":"1329156161","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329156180":["hashtag1","hashtag2"]},{"1329156072":["hashtag1","hashtag2"]},{"1329156179":["hashtag1","hashtag2"]},{"1329156161":["hashtag1","hashtag2"]},{"1329156149":["hashtag1","hashtag2"]},{"1329156158":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329156180, 1329156072, 1329156179, 1329156161, 1329156149, 1329156158)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.30820894241333 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 15 --only_old 1
2025-01-15 15:45:32.782552
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/51/image_14012025_09_51_56_9471.jpg', '/home/pi/Desktop/images/14012025/09/51/image_14012025_09_52_07_10395.jpg', '/home/pi/Desktop/images/14012025/09/52/image_14012025_09_52_16_9354.jpg', '/home/pi/Desktop/images/14012025/09/52/image_14012025_09_52_26_10347.jpg', '/home/pi/Desktop/images/14012025/09/52/image_14012025_09_52_37_10326.jpg', '/home/pi/Desktop/images/14012025/09/52/image_14012025_09_52_46_9325.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/51/image_14012025_09_51_56_9471.jpg
/home/pi/Desktop/images/14012025/09/51/image_14012025_09_52_07_10395.jpg
/home/pi/Desktop/images/14012025/09/52/image_14012025_09_52_16_9354.jpg
/home/pi/Desktop/images/14012025/09/52/image_14012025_09_52_26_10347.jpg
/home/pi/Desktop/images/14012025/09/52/image_14012025_09_52_37_10326.jpg
/home/pi/Desktop/images/14012025/09/52/image_14012025_09_52_46_9325.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 2.1226398944854736 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
2025-01-15 15:45:42.790863
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/21/image_15012025_00_22_07_9459.jpg', '/home/pi/Desktop/images/15012025/00/22/image_15012025_00_22_17_10347.jpg', '/home/pi/Desktop/images/15012025/00/22/image_15012025_00_22_27_9383.jpg', '/home/pi/Desktop/images/15012025/00/22/image_15012025_00_22_37_10362.jpg', '/home/pi/Desktop/images/15012025/00/22/image_15012025_00_22_57_9444.jpg', '/home/pi/Desktop/images/15012025/00/22/image_15012025_00_23_07_10405.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/21/image_15012025_00_22_07_9459.jpg
/home/pi/Desktop/images/15012025/00/22/image_15012025_00_22_17_10347.jpg
/home/pi/Desktop/images/15012025/00/22/image_15012025_00_22_27_9383.jpg
/home/pi/Desktop/images/15012025/00/22/image_15012025_00_22_37_10362.jpg
/home/pi/Desktop/images/15012025/00/22/image_15012025_00_22_57_9444.jpg
/home/pi/Desktop/images/15012025/00/22/image_15012025_00_23_07_10405.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329156416","1329156463","1329156466","1329156412","1329156300","1329156242"],"photo_ids_order":["1329156242","1329156300","1329156412","1329156416","1329156463","1329156466"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/49c0c75ffe584b15496100c1ea2d525e.jpg","text":"TemporaryFile(/tmp/multipartBody4184134114739860393asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952403780,"filename":"image_15012025_00_22_37_10362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6727dc23081f6a502820e985c4c46a7f.jpg","text":"TemporaryFile(/tmp/multipartBody3027858718536273245asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952403780,"filename":"image_15012025_00_22_57_9444.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2bff91340198147c44730cd8eab44598.jpg","text":"TemporaryFile(/tmp/multipartBody5700768123117072086asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952403780,"filename":"image_15012025_00_23_07_10405.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/83185a78e759a1ee22d37948dda89dad.jpg","text":"TemporaryFile(/tmp/multipartBody4527064481984771649asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952403780,"filename":"image_15012025_00_22_27_9383.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5d103e93d7535610e217d97d71fc7993.jpg","text":"TemporaryFile(/tmp/multipartBody6483180726352066950asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952403780,"filename":"image_15012025_00_22_17_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a810c02ebb34fc44f4c8e69ac6d79b1a.jpg","text":"TemporaryFile(/tmp/multipartBody8394785495605767968asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952403780,"filename":"image_15012025_00_22_07_9459.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329156412","file1":"1329156300","file0":"1329156242","file4":"1329156463","file5":"1329156466","file3":"1329156416"},"map_files_photo_id_array":[{"photo_id":"1329156466","filename":"file5"},{"photo_id":"1329156412","filename":"file2"},{"photo_id":"1329156463","filename":"file4"},{"photo_id":"1329156300","filename":"file1"},{"photo_id":"1329156242","filename":"file0"},{"photo_id":"1329156416","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329156416":["hashtag1","hashtag2"]},{"1329156463":["hashtag1","hashtag2"]},{"1329156466":["hashtag1","hashtag2"]},{"1329156412":["hashtag1","hashtag2"]},{"1329156300":["hashtag1","hashtag2"]},{"1329156242":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329156416, 1329156463, 1329156466, 1329156412, 1329156300, 1329156242)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.35606575012207 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 15 --only_old 1
2025-01-15 15:46:32.862278
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/51/image_14012025_09_51_56_9471.jpg', '/home/pi/Desktop/images/14012025/09/51/image_14012025_09_52_07_10395.jpg', '/home/pi/Desktop/images/14012025/09/52/image_14012025_09_52_16_9354.jpg', '/home/pi/Desktop/images/14012025/09/52/image_14012025_09_52_26_10347.jpg', '/home/pi/Desktop/images/14012025/09/52/image_14012025_09_52_37_10326.jpg', '/home/pi/Desktop/images/14012025/09/52/image_14012025_09_52_46_9325.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/51/image_14012025_09_51_56_9471.jpg
/home/pi/Desktop/images/14012025/09/51/image_14012025_09_52_07_10395.jpg
/home/pi/Desktop/images/14012025/09/52/image_14012025_09_52_16_9354.jpg
/home/pi/Desktop/images/14012025/09/52/image_14012025_09_52_26_10347.jpg
/home/pi/Desktop/images/14012025/09/52/image_14012025_09_52_37_10326.jpg
/home/pi/Desktop/images/14012025/09/52/image_14012025_09_52_46_9325.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329156602","1329156595","1329156622","1329156610","1329156588","1329156612"],"photo_ids_order":["1329156588","1329156595","1329156602","1329156610","1329156612","1329156622"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b85e1f03a74117827f0fe8075989b1da.jpg","text":"TemporaryFile(/tmp/multipartBody8842267324916993771asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952455375,"filename":"image_14012025_09_52_16_9354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cce691764c7d678fa57db5e24d50aa4d.jpg","text":"TemporaryFile(/tmp/multipartBody4722243966073248321asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952455375,"filename":"image_14012025_09_52_07_10395.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d4248e70d9aa6428abfb25ee6ab923d2.jpg","text":"TemporaryFile(/tmp/multipartBody228629558303864108asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952455375,"filename":"image_14012025_09_52_46_9325.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2039c2fee3038940e03391e8341a8712.jpg","text":"TemporaryFile(/tmp/multipartBody3086594050050344773asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952455375,"filename":"image_14012025_09_52_26_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d60b0b9c308bd0ec92ac6937aa1b3741.jpg","text":"TemporaryFile(/tmp/multipartBody7221331834137091420asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952455375,"filename":"image_14012025_09_51_56_9471.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d98eca3053a5ded668043ee6c2836f83.jpg","text":"TemporaryFile(/tmp/multipartBody3180660976984424244asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952455375,"filename":"image_14012025_09_52_37_10326.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329156602","file1":"1329156595","file0":"1329156588","file4":"1329156612","file5":"1329156622","file3":"1329156610"},"map_files_photo_id_array":[{"photo_id":"1329156622","filename":"file5"},{"photo_id":"1329156602","filename":"file2"},{"photo_id":"1329156612","filename":"file4"},{"photo_id":"1329156595","filename":"file1"},{"photo_id":"1329156588","filename":"file0"},{"photo_id":"1329156610","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329156602":["hashtag1","hashtag2"]},{"1329156595":["hashtag1","hashtag2"]},{"1329156622":["hashtag1","hashtag2"]},{"1329156610":["hashtag1","hashtag2"]},{"1329156588":["hashtag1","hashtag2"]},{"1329156612":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329156602, 1329156595, 1329156622, 1329156610, 1329156588, 1329156612)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.042322397232056 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 15 --only_old 1
2025-01-15 15:47:33.333190
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/52/image_14012025_09_52_56_10402.jpg', '/home/pi/Desktop/images/14012025/09/52/image_14012025_09_53_07_10343.jpg', '/home/pi/Desktop/images/14012025/09/53/image_14012025_09_53_16_9345.jpg', '/home/pi/Desktop/images/14012025/09/53/image_14012025_09_53_27_10436.jpg', '/home/pi/Desktop/images/14012025/09/53/image_14012025_09_53_36_9356.jpg', '/home/pi/Desktop/images/14012025/09/53/image_14012025_09_53_46_10395.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/52/image_14012025_09_52_56_10402.jpg
/home/pi/Desktop/images/14012025/09/52/image_14012025_09_53_07_10343.jpg
/home/pi/Desktop/images/14012025/09/53/image_14012025_09_53_16_9345.jpg
/home/pi/Desktop/images/14012025/09/53/image_14012025_09_53_27_10436.jpg
/home/pi/Desktop/images/14012025/09/53/image_14012025_09_53_36_9356.jpg
/home/pi/Desktop/images/14012025/09/53/image_14012025_09_53_46_10395.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329156734","1329156748","1329156745","1329156749","1329156740","1329156752"],"photo_ids_order":["1329156734","1329156740","1329156745","1329156748","1329156749","1329156752"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cd6d6e180782568448859864a3edf229.jpg","text":"TemporaryFile(/tmp/multipartBody254171924222008745asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952515879,"filename":"image_14012025_09_52_56_10402.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a06cebc0469ab32a4ed18ff64e0c80d9.jpg","text":"TemporaryFile(/tmp/multipartBody824195025817523771asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952515879,"filename":"image_14012025_09_53_27_10436.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fb5f3c348493c1489a90383f451050bc.jpg","text":"TemporaryFile(/tmp/multipartBody4698406794805136875asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952515879,"filename":"image_14012025_09_53_16_9345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/80369cc6eed8361ac98974937e13d415.jpg","text":"TemporaryFile(/tmp/multipartBody6438689858151467937asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952515879,"filename":"image_14012025_09_53_36_9356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3dca8176adbda03714303556575aacf8.jpg","text":"TemporaryFile(/tmp/multipartBody1997281427730592033asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952515879,"filename":"image_14012025_09_53_07_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c7ea9b1fb010aaffeab66bb76032fc8d.jpg","text":"TemporaryFile(/tmp/multipartBody5430824204885850821asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952515879,"filename":"image_14012025_09_53_46_10395.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329156745","file1":"1329156740","file0":"1329156734","file4":"1329156749","file5":"1329156752","file3":"1329156748"},"map_files_photo_id_array":[{"photo_id":"1329156752","filename":"file5"},{"photo_id":"1329156745","filename":"file2"},{"photo_id":"1329156749","filename":"file4"},{"photo_id":"1329156740","filename":"file1"},{"photo_id":"1329156734","filename":"file0"},{"photo_id":"1329156748","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329156734":["hashtag1","hashtag2"]},{"1329156748":["hashtag1","hashtag2"]},{"1329156745":["hashtag1","hashtag2"]},{"1329156749":["hashtag1","hashtag2"]},{"1329156740":["hashtag1","hashtag2"]},{"1329156752":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329156734, 1329156748, 1329156745, 1329156749, 1329156740, 1329156752)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.47901177406311 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 15 --only_old 1
2025-01-15 15:48:32.664509
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/53/image_14012025_09_53_57_10333.jpg', '/home/pi/Desktop/images/14012025/09/53/image_14012025_09_54_06_9373.jpg', '/home/pi/Desktop/images/14012025/09/54/image_14012025_09_54_16_10413.jpg', '/home/pi/Desktop/images/14012025/09/54/image_14012025_09_54_27_10369.jpg', '/home/pi/Desktop/images/14012025/09/54/image_14012025_09_54_36_9352.jpg', '/home/pi/Desktop/images/14012025/09/54/image_14012025_09_54_46_10343.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/53/image_14012025_09_53_57_10333.jpg
/home/pi/Desktop/images/14012025/09/53/image_14012025_09_54_06_9373.jpg
/home/pi/Desktop/images/14012025/09/54/image_14012025_09_54_16_10413.jpg
/home/pi/Desktop/images/14012025/09/54/image_14012025_09_54_27_10369.jpg
/home/pi/Desktop/images/14012025/09/54/image_14012025_09_54_36_9352.jpg
/home/pi/Desktop/images/14012025/09/54/image_14012025_09_54_46_10343.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 2.151031970977783 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
2025-01-15 15:48:42.502132
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/23/image_15012025_00_23_17_9405.jpg', '/home/pi/Desktop/images/15012025/00/23/image_15012025_00_23_27_10477.jpg', '/home/pi/Desktop/images/15012025/00/23/image_15012025_00_23_38_10353.jpg', '/home/pi/Desktop/images/15012025/00/23/image_15012025_00_23_47_9354.jpg', '/home/pi/Desktop/images/15012025/00/23/image_15012025_00_24_07_9332.jpg', '/home/pi/Desktop/images/15012025/00/24/image_15012025_00_24_17_10407.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/23/image_15012025_00_23_17_9405.jpg
/home/pi/Desktop/images/15012025/00/23/image_15012025_00_23_27_10477.jpg
/home/pi/Desktop/images/15012025/00/23/image_15012025_00_23_38_10353.jpg
/home/pi/Desktop/images/15012025/00/23/image_15012025_00_23_47_9354.jpg
/home/pi/Desktop/images/15012025/00/23/image_15012025_00_24_07_9332.jpg
/home/pi/Desktop/images/15012025/00/24/image_15012025_00_24_17_10407.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329157329","1329157314","1329157326","1329157331","1329157334","1329157322"],"photo_ids_order":["1329157314","1329157322","1329157326","1329157329","1329157331","1329157334"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c137e1285d9608ca4a4c2d9df39db2ac.jpg","text":"TemporaryFile(/tmp/multipartBody1070763998502910259asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952583504,"filename":"image_15012025_00_23_47_9354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d1736113a41058a2a504bb2565c11ff8.jpg","text":"TemporaryFile(/tmp/multipartBody1252239073318252748asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952583504,"filename":"image_15012025_00_23_17_9405.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0fdc44345aaafec847f6f156b217f3e1.jpg","text":"TemporaryFile(/tmp/multipartBody5717365911304967788asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952583504,"filename":"image_15012025_00_23_38_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/882cf041136d624c9c8caacec44d517f.jpg","text":"TemporaryFile(/tmp/multipartBody2893881733976368711asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952583504,"filename":"image_15012025_00_24_07_9332.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a87a7c42f0207992b6904743ed52edcd.jpg","text":"TemporaryFile(/tmp/multipartBody8112497838906546683asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952583504,"filename":"image_15012025_00_24_17_10407.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a4ea2216a6617a22779479031a90fa59.jpg","text":"TemporaryFile(/tmp/multipartBody1185645879386284648asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952583504,"filename":"image_15012025_00_23_27_10477.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329157326","file1":"1329157322","file0":"1329157314","file4":"1329157331","file5":"1329157334","file3":"1329157329"},"map_files_photo_id_array":[{"photo_id":"1329157334","filename":"file5"},{"photo_id":"1329157326","filename":"file2"},{"photo_id":"1329157331","filename":"file4"},{"photo_id":"1329157322","filename":"file1"},{"photo_id":"1329157314","filename":"file0"},{"photo_id":"1329157329","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329157329":["hashtag1","hashtag2"]},{"1329157314":["hashtag1","hashtag2"]},{"1329157326":["hashtag1","hashtag2"]},{"1329157331":["hashtag1","hashtag2"]},{"1329157334":["hashtag1","hashtag2"]},{"1329157322":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329157329, 1329157314, 1329157326, 1329157331, 1329157334, 1329157322)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.14110064506531 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 15 --only_old 1
2025-01-15 15:49:32.805676
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/53/image_14012025_09_53_57_10333.jpg', '/home/pi/Desktop/images/14012025/09/53/image_14012025_09_54_06_9373.jpg', '/home/pi/Desktop/images/14012025/09/54/image_14012025_09_54_16_10413.jpg', '/home/pi/Desktop/images/14012025/09/54/image_14012025_09_54_27_10369.jpg', '/home/pi/Desktop/images/14012025/09/54/image_14012025_09_54_36_9352.jpg', '/home/pi/Desktop/images/14012025/09/54/image_14012025_09_54_46_10343.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/53/image_14012025_09_53_57_10333.jpg
/home/pi/Desktop/images/14012025/09/53/image_14012025_09_54_06_9373.jpg
/home/pi/Desktop/images/14012025/09/54/image_14012025_09_54_16_10413.jpg
/home/pi/Desktop/images/14012025/09/54/image_14012025_09_54_27_10369.jpg
/home/pi/Desktop/images/14012025/09/54/image_14012025_09_54_36_9352.jpg
/home/pi/Desktop/images/14012025/09/54/image_14012025_09_54_46_10343.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329157411","1329157647","1329157620","1329157511","1329157607","1329157663"],"photo_ids_order":["1329157411","1329157511","1329157607","1329157620","1329157647","1329157663"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/550c4b5aa49a02ceaccd70a11d7e0c2e.jpg","text":"TemporaryFile(/tmp/multipartBody2468739448795682133asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952635293,"filename":"image_14012025_09_53_57_10333.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9aaf7b4b363d3106880b349aa99dec36.jpg","text":"TemporaryFile(/tmp/multipartBody674197243718232588asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952635293,"filename":"image_14012025_09_54_36_9352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0cccab22679379720f5431667c3cdece.jpg","text":"TemporaryFile(/tmp/multipartBody6862382150148822898asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952635293,"filename":"image_14012025_09_54_27_10369.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a94f0edc83ab18d0da73285648073cfe.jpg","text":"TemporaryFile(/tmp/multipartBody9030816077868195708asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952635293,"filename":"image_14012025_09_54_06_9373.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/03231cf489f15d72b8271fd0b62891d3.jpg","text":"TemporaryFile(/tmp/multipartBody4097034609644395253asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952635293,"filename":"image_14012025_09_54_16_10413.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/979e1a46a158a55f3d36e581021a8347.jpg","text":"TemporaryFile(/tmp/multipartBody2405812661810072012asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952635293,"filename":"image_14012025_09_54_46_10343.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329157607","file1":"1329157511","file0":"1329157411","file4":"1329157647","file5":"1329157663","file3":"1329157620"},"map_files_photo_id_array":[{"photo_id":"1329157663","filename":"file5"},{"photo_id":"1329157607","filename":"file2"},{"photo_id":"1329157647","filename":"file4"},{"photo_id":"1329157511","filename":"file1"},{"photo_id":"1329157411","filename":"file0"},{"photo_id":"1329157620","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329157411":["hashtag1","hashtag2"]},{"1329157647":["hashtag1","hashtag2"]},{"1329157620":["hashtag1","hashtag2"]},{"1329157511":["hashtag1","hashtag2"]},{"1329157607":["hashtag1","hashtag2"]},{"1329157663":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329157411, 1329157647, 1329157620, 1329157511, 1329157607, 1329157663)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 74.48970580101013 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 15 --only_old 1
2025-01-15 15:50:53.073555
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/55/image_14012025_09_55_17_10349.jpg', '/home/pi/Desktop/images/14012025/09/55/image_14012025_09_55_26_9371.jpg', '/home/pi/Desktop/images/14012025/09/55/image_14012025_09_55_47_10382.jpg', '/home/pi/Desktop/images/14012025/09/55/image_14012025_09_55_56_9361.jpg', '/home/pi/Desktop/images/14012025/09/55/image_14012025_09_56_06_10421.jpg', '/home/pi/Desktop/images/14012025/09/56/image_14012025_09_56_16_9334.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/55/image_14012025_09_55_17_10349.jpg
/home/pi/Desktop/images/14012025/09/55/image_14012025_09_55_26_9371.jpg
/home/pi/Desktop/images/14012025/09/55/image_14012025_09_55_47_10382.jpg
/home/pi/Desktop/images/14012025/09/55/image_14012025_09_55_56_9361.jpg
/home/pi/Desktop/images/14012025/09/55/image_14012025_09_56_06_10421.jpg
/home/pi/Desktop/images/14012025/09/56/image_14012025_09_56_16_9334.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329157697","1329157716","1329157685","1329157712","1329157690","1329157684"],"photo_ids_order":["1329157684","1329157685","1329157690","1329157697","1329157712","1329157716"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cf4c154cf318347a1489cb1ef1ce83b6.jpg","text":"TemporaryFile(/tmp/multipartBody1438482637664442696asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952715616,"filename":"image_14012025_09_55_56_9361.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1ce26ae746630dbe1fdfbb093abc96dd.jpg","text":"TemporaryFile(/tmp/multipartBody250570855913782717asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952715616,"filename":"image_14012025_09_56_16_9334.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/097cc148c08a1d7b55a52040a2308283.jpg","text":"TemporaryFile(/tmp/multipartBody8006060508042473810asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952715616,"filename":"image_14012025_09_55_26_9371.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/930db6a6cd0e85caa80d78e619714e56.jpg","text":"TemporaryFile(/tmp/multipartBody3939400940891436157asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952715616,"filename":"image_14012025_09_56_06_10421.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/54bedd3bf8a429c335730cc4d5dddc4f.jpg","text":"TemporaryFile(/tmp/multipartBody4775185761284359277asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952715616,"filename":"image_14012025_09_55_47_10382.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e8e575293c72c421afceb0e63d673c9b.jpg","text":"TemporaryFile(/tmp/multipartBody415065527580618451asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952715616,"filename":"image_14012025_09_55_17_10349.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329157690","file1":"1329157685","file0":"1329157684","file4":"1329157712","file5":"1329157716","file3":"1329157697"},"map_files_photo_id_array":[{"photo_id":"1329157716","filename":"file5"},{"photo_id":"1329157690","filename":"file2"},{"photo_id":"1329157712","filename":"file4"},{"photo_id":"1329157685","filename":"file1"},{"photo_id":"1329157684","filename":"file0"},{"photo_id":"1329157697","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329157697":["hashtag1","hashtag2"]},{"1329157716":["hashtag1","hashtag2"]},{"1329157685":["hashtag1","hashtag2"]},{"1329157712":["hashtag1","hashtag2"]},{"1329157690":["hashtag1","hashtag2"]},{"1329157684":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329157697, 1329157716, 1329157685, 1329157712, 1329157690, 1329157684)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.68764090538025 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
2025-01-15 15:51:42.384119
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/24/image_15012025_00_24_27_10376.jpg', '/home/pi/Desktop/images/15012025/00/24/image_15012025_00_24_37_9339.jpg', '/home/pi/Desktop/images/15012025/00/24/image_15012025_00_24_47_10464.jpg', '/home/pi/Desktop/images/15012025/00/24/image_15012025_00_24_57_9365.jpg', '/home/pi/Desktop/images/15012025/00/24/image_15012025_00_25_07_10438.jpg', '/home/pi/Desktop/images/15012025/00/25/image_15012025_00_25_17_10359.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/24/image_15012025_00_24_27_10376.jpg
/home/pi/Desktop/images/15012025/00/24/image_15012025_00_24_37_9339.jpg
/home/pi/Desktop/images/15012025/00/24/image_15012025_00_24_47_10464.jpg
/home/pi/Desktop/images/15012025/00/24/image_15012025_00_24_57_9365.jpg
/home/pi/Desktop/images/15012025/00/24/image_15012025_00_25_07_10438.jpg
/home/pi/Desktop/images/15012025/00/25/image_15012025_00_25_17_10359.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329157740","1329157737","1329157751","1329157733","1329157742","1329157745"],"photo_ids_order":["1329157733","1329157737","1329157740","1329157742","1329157745","1329157751"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/387ea798a0dc14b4900b15599164bf62.jpg","text":"TemporaryFile(/tmp/multipartBody636388582299588375asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952763372,"filename":"image_15012025_00_24_47_10464.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/878b66a0710e5d19ae89e2ebfdcd65dc.jpg","text":"TemporaryFile(/tmp/multipartBody454259554650624315asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952763372,"filename":"image_15012025_00_24_37_9339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8656ecce836c85389e0c6b1b1b6b6950.jpg","text":"TemporaryFile(/tmp/multipartBody8480298081487600713asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952763372,"filename":"image_15012025_00_25_17_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1682079b8496c0922e7e2a6eb0fe43e5.jpg","text":"TemporaryFile(/tmp/multipartBody2634657443403090825asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952763372,"filename":"image_15012025_00_24_27_10376.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/863e5f4a490e78146af8d85c6eb809e6.jpg","text":"TemporaryFile(/tmp/multipartBody1095105515839860156asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952763372,"filename":"image_15012025_00_24_57_9365.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4e8e89fe6d4ddef53eb396851633b757.jpg","text":"TemporaryFile(/tmp/multipartBody2868636513042072768asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952763372,"filename":"image_15012025_00_25_07_10438.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329157740","file1":"1329157737","file0":"1329157733","file4":"1329157745","file5":"1329157751","file3":"1329157742"},"map_files_photo_id_array":[{"photo_id":"1329157751","filename":"file5"},{"photo_id":"1329157740","filename":"file2"},{"photo_id":"1329157745","filename":"file4"},{"photo_id":"1329157737","filename":"file1"},{"photo_id":"1329157733","filename":"file0"},{"photo_id":"1329157742","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329157740":["hashtag1","hashtag2"]},{"1329157737":["hashtag1","hashtag2"]},{"1329157751":["hashtag1","hashtag2"]},{"1329157733":["hashtag1","hashtag2"]},{"1329157742":["hashtag1","hashtag2"]},{"1329157745":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329157740, 1329157737, 1329157751, 1329157733, 1329157742, 1329157745)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.04541254043579 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 15 --only_old 1
2025-01-15 15:52:32.541585
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/56/image_14012025_09_56_26_10485.jpg', '/home/pi/Desktop/images/14012025/09/56/image_14012025_09_56_37_10376.jpg', '/home/pi/Desktop/images/14012025/09/56/image_14012025_09_56_46_9385.jpg', '/home/pi/Desktop/images/14012025/09/56/image_14012025_09_56_56_10427.jpg', '/home/pi/Desktop/images/14012025/09/56/image_14012025_09_57_06_9337.jpg', '/home/pi/Desktop/images/14012025/09/57/image_14012025_09_57_16_10443.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/56/image_14012025_09_56_26_10485.jpg
/home/pi/Desktop/images/14012025/09/56/image_14012025_09_56_37_10376.jpg
/home/pi/Desktop/images/14012025/09/56/image_14012025_09_56_46_9385.jpg
/home/pi/Desktop/images/14012025/09/56/image_14012025_09_56_56_10427.jpg
/home/pi/Desktop/images/14012025/09/56/image_14012025_09_57_06_9337.jpg
/home/pi/Desktop/images/14012025/09/57/image_14012025_09_57_16_10443.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329157819","1329157796","1329157799","1329157823","1329157802","1329157805"],"photo_ids_order":["1329157796","1329157799","1329157802","1329157805","1329157819","1329157823"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0adebb8b2ca9024dacec80022e81aa4f.jpg","text":"TemporaryFile(/tmp/multipartBody3654129410635877509asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952815083,"filename":"image_14012025_09_57_06_9337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/976b9e3a55d4e4c76a45f758f2399cf0.jpg","text":"TemporaryFile(/tmp/multipartBody8275996942180864213asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952815083,"filename":"image_14012025_09_56_26_10485.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f0b79aa2e169c336bb8abbb91b5cdfc4.jpg","text":"TemporaryFile(/tmp/multipartBody5272764735102779445asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952815083,"filename":"image_14012025_09_56_37_10376.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b0e9bab6a04d51d8c8468d0c9a188bc6.jpg","text":"TemporaryFile(/tmp/multipartBody4065739856724913202asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952815083,"filename":"image_14012025_09_57_16_10443.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b0d774ca34a6b117bc462d70226a2ce9.jpg","text":"TemporaryFile(/tmp/multipartBody6783207286865585495asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952815083,"filename":"image_14012025_09_56_46_9385.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3748f7170f55ac9b18a8b66ff61d9239.jpg","text":"TemporaryFile(/tmp/multipartBody4488385483483657271asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952815083,"filename":"image_14012025_09_56_56_10427.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329157802","file1":"1329157799","file0":"1329157796","file4":"1329157819","file5":"1329157823","file3":"1329157805"},"map_files_photo_id_array":[{"photo_id":"1329157823","filename":"file5"},{"photo_id":"1329157802","filename":"file2"},{"photo_id":"1329157819","filename":"file4"},{"photo_id":"1329157799","filename":"file1"},{"photo_id":"1329157796","filename":"file0"},{"photo_id":"1329157805","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329157819":["hashtag1","hashtag2"]},{"1329157796":["hashtag1","hashtag2"]},{"1329157799":["hashtag1","hashtag2"]},{"1329157823":["hashtag1","hashtag2"]},{"1329157802":["hashtag1","hashtag2"]},{"1329157805":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329157819, 1329157796, 1329157799, 1329157823, 1329157802, 1329157805)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.487468004226685 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 15 --only_old 1
2025-01-15 15:53:32.839597
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/57/image_14012025_09_57_27_10378.jpg', '/home/pi/Desktop/images/14012025/09/57/image_14012025_09_57_36_9328.jpg', '/home/pi/Desktop/images/14012025/09/57/image_14012025_09_57_46_10427.jpg', '/home/pi/Desktop/images/14012025/09/57/image_14012025_09_57_57_10346.jpg', '/home/pi/Desktop/images/14012025/09/57/image_14012025_09_58_06_9403.jpg', '/home/pi/Desktop/images/14012025/09/58/image_14012025_09_58_16_10336.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/57/image_14012025_09_57_27_10378.jpg
/home/pi/Desktop/images/14012025/09/57/image_14012025_09_57_36_9328.jpg
/home/pi/Desktop/images/14012025/09/57/image_14012025_09_57_46_10427.jpg
/home/pi/Desktop/images/14012025/09/57/image_14012025_09_57_57_10346.jpg
/home/pi/Desktop/images/14012025/09/57/image_14012025_09_58_06_9403.jpg
/home/pi/Desktop/images/14012025/09/58/image_14012025_09_58_16_10336.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329157951","1329157956","1329157902","1329157895","1329157898","1329157954"],"photo_ids_order":["1329157895","1329157898","1329157902","1329157951","1329157954","1329157956"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9780e32e00e4ed51d401dad1cb27ac7d.jpg","text":"TemporaryFile(/tmp/multipartBody650166425593710010asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952875362,"filename":"image_14012025_09_57_57_10346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6a0b20604517993fe13f50ef8af2ee37.jpg","text":"TemporaryFile(/tmp/multipartBody5915384103266194893asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952875362,"filename":"image_14012025_09_58_16_10336.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c415b106cb3ced5045a207826325fec3.jpg","text":"TemporaryFile(/tmp/multipartBody4290852692014024753asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952875362,"filename":"image_14012025_09_57_46_10427.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c6390a4fd3be247fc5598dad2fcde9aa.jpg","text":"TemporaryFile(/tmp/multipartBody850247601256348520asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952875362,"filename":"image_14012025_09_57_27_10378.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/56a736a28edcf45345048e857162ae74.jpg","text":"TemporaryFile(/tmp/multipartBody5824125922838383813asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952875362,"filename":"image_14012025_09_57_36_9328.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/848503a9a480d2e5ac7d9fd5ad703338.jpg","text":"TemporaryFile(/tmp/multipartBody8254672635429679248asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952875362,"filename":"image_14012025_09_58_06_9403.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329157902","file1":"1329157898","file0":"1329157895","file4":"1329157954","file5":"1329157956","file3":"1329157951"},"map_files_photo_id_array":[{"photo_id":"1329157956","filename":"file5"},{"photo_id":"1329157902","filename":"file2"},{"photo_id":"1329157954","filename":"file4"},{"photo_id":"1329157898","filename":"file1"},{"photo_id":"1329157895","filename":"file0"},{"photo_id":"1329157951","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329157951":["hashtag1","hashtag2"]},{"1329157956":["hashtag1","hashtag2"]},{"1329157902":["hashtag1","hashtag2"]},{"1329157895":["hashtag1","hashtag2"]},{"1329157898":["hashtag1","hashtag2"]},{"1329157954":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329157951, 1329157956, 1329157902, 1329157895, 1329157898, 1329157954)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.779271364212036 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 15 --only_old 1
2025-01-15 15:54:32.884766
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/58/image_14012025_09_58_26_9336.jpg', '/home/pi/Desktop/images/14012025/09/58/image_14012025_09_58_36_10400.jpg', '/home/pi/Desktop/images/14012025/09/58/image_14012025_09_58_47_10349.jpg', '/home/pi/Desktop/images/14012025/09/58/image_14012025_09_58_56_9353.jpg', '/home/pi/Desktop/images/14012025/09/58/image_14012025_09_59_06_10352.jpg', '/home/pi/Desktop/images/14012025/09/59/image_14012025_09_59_17_10361.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/58/image_14012025_09_58_26_9336.jpg
/home/pi/Desktop/images/14012025/09/58/image_14012025_09_58_36_10400.jpg
/home/pi/Desktop/images/14012025/09/58/image_14012025_09_58_47_10349.jpg
/home/pi/Desktop/images/14012025/09/58/image_14012025_09_58_56_9353.jpg
/home/pi/Desktop/images/14012025/09/58/image_14012025_09_59_06_10352.jpg
/home/pi/Desktop/images/14012025/09/59/image_14012025_09_59_17_10361.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329158008","1329158022","1329158025","1329158019","1329158027","1329158015"],"photo_ids_order":["1329158008","1329158015","1329158019","1329158022","1329158025","1329158027"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/847249e12f47c88186bd65df83ff5fff.jpg","text":"TemporaryFile(/tmp/multipartBody7011701087152923903asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952935430,"filename":"image_14012025_09_58_26_9336.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/70f096cc7d1d9b0baa2a4b65acffd8cf.jpg","text":"TemporaryFile(/tmp/multipartBody6806824581700045512asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952935430,"filename":"image_14012025_09_58_56_9353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/22dc608fc48b363224f52c4551940e7a.jpg","text":"TemporaryFile(/tmp/multipartBody5823030499022251969asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952935430,"filename":"image_14012025_09_59_06_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3e07887e4149f9e6652a9bf2a1ae8e1f.jpg","text":"TemporaryFile(/tmp/multipartBody497997612157483403asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952935430,"filename":"image_14012025_09_58_47_10349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cb4cbbf1c7bdebb785110fc457916edd.jpg","text":"TemporaryFile(/tmp/multipartBody4376202126870741571asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952935430,"filename":"image_14012025_09_59_17_10361.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ba43c170a08e56ad227c39d2c4c69300.jpg","text":"TemporaryFile(/tmp/multipartBody8329046943020446244asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952935430,"filename":"image_14012025_09_58_36_10400.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329158019","file1":"1329158015","file0":"1329158008","file4":"1329158025","file5":"1329158027","file3":"1329158022"},"map_files_photo_id_array":[{"photo_id":"1329158027","filename":"file5"},{"photo_id":"1329158019","filename":"file2"},{"photo_id":"1329158025","filename":"file4"},{"photo_id":"1329158015","filename":"file1"},{"photo_id":"1329158008","filename":"file0"},{"photo_id":"1329158022","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329158008":["hashtag1","hashtag2"]},{"1329158022":["hashtag1","hashtag2"]},{"1329158025":["hashtag1","hashtag2"]},{"1329158019":["hashtag1","hashtag2"]},{"1329158027":["hashtag1","hashtag2"]},{"1329158015":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329158008, 1329158022, 1329158025, 1329158019, 1329158027, 1329158015)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.35725164413452 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 15 --only_old 1
2025-01-15 15:55:33.307361
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/09/59/image_14012025_09_59_26_9336.jpg', '/home/pi/Desktop/images/14012025/09/59/image_14012025_09_59_36_10347.jpg', '/home/pi/Desktop/images/14012025/09/59/image_14012025_09_59_47_10408.jpg', '/home/pi/Desktop/images/14012025/09/59/image_14012025_09_59_56_9350.jpg', '/home/pi/Desktop/images/14012025/10/00/image_14012025_10_00_16_10075.jpg', '/home/pi/Desktop/images/14012025/10/00/image_14012025_10_00_27_10438.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/09/59/image_14012025_09_59_26_9336.jpg
/home/pi/Desktop/images/14012025/09/59/image_14012025_09_59_36_10347.jpg
/home/pi/Desktop/images/14012025/09/59/image_14012025_09_59_47_10408.jpg
/home/pi/Desktop/images/14012025/09/59/image_14012025_09_59_56_9350.jpg
/home/pi/Desktop/images/14012025/10/00/image_14012025_10_00_16_10075.jpg
/home/pi/Desktop/images/14012025/10/00/image_14012025_10_00_27_10438.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329158091","1329158103","1329158112","1329158084","1329158135","1329158086"],"photo_ids_order":["1329158084","1329158086","1329158091","1329158103","1329158112","1329158135"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a6b4f0f9a14bda03e3e3cb890db27894.jpg","text":"TemporaryFile(/tmp/multipartBody3119889475100540549asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952995864,"filename":"image_14012025_09_59_47_10408.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/60689431fca8d5baf1733aed7d307932.jpg","text":"TemporaryFile(/tmp/multipartBody9091187994311585800asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952995864,"filename":"image_14012025_09_59_56_9350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e0e615e57f7a2cee972804bd0b541cd5.jpg","text":"TemporaryFile(/tmp/multipartBody1998561258990582411asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952995864,"filename":"image_14012025_10_00_16_10075.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ca68ca525733f700a088ebc8ec483772.jpg","text":"TemporaryFile(/tmp/multipartBody3487143111006096038asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952995864,"filename":"image_14012025_09_59_26_9336.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/40821086397a955d56998fbcb49e98dc.jpg","text":"TemporaryFile(/tmp/multipartBody5449561767668162323asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952995864,"filename":"image_14012025_10_00_27_10438.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cffbf3e478e61b3750a0aa25f894acce.jpg","text":"TemporaryFile(/tmp/multipartBody7570170036325764715asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736952995864,"filename":"image_14012025_09_59_36_10347.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329158091","file1":"1329158086","file0":"1329158084","file4":"1329158112","file5":"1329158135","file3":"1329158103"},"map_files_photo_id_array":[{"photo_id":"1329158135","filename":"file5"},{"photo_id":"1329158091","filename":"file2"},{"photo_id":"1329158112","filename":"file4"},{"photo_id":"1329158086","filename":"file1"},{"photo_id":"1329158084","filename":"file0"},{"photo_id":"1329158103","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329158091":["hashtag1","hashtag2"]},{"1329158103":["hashtag1","hashtag2"]},{"1329158112":["hashtag1","hashtag2"]},{"1329158084":["hashtag1","hashtag2"]},{"1329158135":["hashtag1","hashtag2"]},{"1329158086":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329158091, 1329158103, 1329158112, 1329158084, 1329158135, 1329158086)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.138864278793335 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 15 --only_old 1
2025-01-15 15:56:32.743071
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/00/image_14012025_10_00_37_10348.jpg', '/home/pi/Desktop/images/14012025/10/00/image_14012025_10_00_46_9386.jpg', '/home/pi/Desktop/images/14012025/10/00/image_14012025_10_00_57_10340.jpg', '/home/pi/Desktop/images/14012025/10/00/image_14012025_10_01_07_10348.jpg', '/home/pi/Desktop/images/14012025/10/01/image_14012025_10_01_16_9340.jpg', '/home/pi/Desktop/images/14012025/10/01/image_14012025_10_01_27_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/00/image_14012025_10_00_37_10348.jpg
/home/pi/Desktop/images/14012025/10/00/image_14012025_10_00_46_9386.jpg
/home/pi/Desktop/images/14012025/10/00/image_14012025_10_00_57_10340.jpg
/home/pi/Desktop/images/14012025/10/00/image_14012025_10_01_07_10348.jpg
/home/pi/Desktop/images/14012025/10/01/image_14012025_10_01_16_9340.jpg
/home/pi/Desktop/images/14012025/10/01/image_14012025_10_01_27_10356.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 2.1200571060180664 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
2025-01-15 15:56:42.498371
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/25/image_15012025_00_25_27_9475.jpg', '/home/pi/Desktop/images/15012025/00/25/image_15012025_00_25_37_10421.jpg', '/home/pi/Desktop/images/15012025/00/25/image_15012025_00_25_47_9353.jpg', '/home/pi/Desktop/images/15012025/00/25/image_15012025_00_25_57_10475.jpg', '/home/pi/Desktop/images/15012025/00/25/image_15012025_00_26_08_10343.jpg', '/home/pi/Desktop/images/15012025/00/26/image_15012025_00_26_27_10450.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/25/image_15012025_00_25_27_9475.jpg
/home/pi/Desktop/images/15012025/00/25/image_15012025_00_25_37_10421.jpg
/home/pi/Desktop/images/15012025/00/25/image_15012025_00_25_47_9353.jpg
/home/pi/Desktop/images/15012025/00/25/image_15012025_00_25_57_10475.jpg
/home/pi/Desktop/images/15012025/00/25/image_15012025_00_26_08_10343.jpg
/home/pi/Desktop/images/15012025/00/26/image_15012025_00_26_27_10450.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329158203","1329158175","1329158190","1329158214","1329158217","1329158207"],"photo_ids_order":["1329158175","1329158190","1329158203","1329158207","1329158214","1329158217"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ef8b184acf80a09ac8fa7c8d61bdfec4.jpg","text":"TemporaryFile(/tmp/multipartBody8313505979642293122asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953063524,"filename":"image_15012025_00_25_47_9353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5fe8296f01c28515d0f93dcb10d3fb0f.jpg","text":"TemporaryFile(/tmp/multipartBody7846576636151412602asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953063524,"filename":"image_15012025_00_25_27_9475.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f1c249afe5647a44553b37c1ec6c6b1c.jpg","text":"TemporaryFile(/tmp/multipartBody2761036979025420549asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953063524,"filename":"image_15012025_00_25_37_10421.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/97d44886d47aa71d21a2a87318384ba2.jpg","text":"TemporaryFile(/tmp/multipartBody6835213726265941285asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953063524,"filename":"image_15012025_00_26_08_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/97f6d1ef1eab243ebc835f8384527f5f.jpg","text":"TemporaryFile(/tmp/multipartBody323357571728837988asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953063524,"filename":"image_15012025_00_26_27_10450.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/169a6386275e7d81c532519942464bd5.jpg","text":"TemporaryFile(/tmp/multipartBody5301851699803129495asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953063524,"filename":"image_15012025_00_25_57_10475.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329158203","file1":"1329158190","file0":"1329158175","file4":"1329158214","file5":"1329158217","file3":"1329158207"},"map_files_photo_id_array":[{"photo_id":"1329158217","filename":"file5"},{"photo_id":"1329158203","filename":"file2"},{"photo_id":"1329158214","filename":"file4"},{"photo_id":"1329158190","filename":"file1"},{"photo_id":"1329158175","filename":"file0"},{"photo_id":"1329158207","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329158203":["hashtag1","hashtag2"]},{"1329158175":["hashtag1","hashtag2"]},{"1329158190":["hashtag1","hashtag2"]},{"1329158214":["hashtag1","hashtag2"]},{"1329158217":["hashtag1","hashtag2"]},{"1329158207":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329158203, 1329158175, 1329158190, 1329158214, 1329158217, 1329158207)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.475518226623535 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 15 --only_old 1
2025-01-15 15:57:32.805918
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/00/image_14012025_10_00_37_10348.jpg', '/home/pi/Desktop/images/14012025/10/00/image_14012025_10_00_46_9386.jpg', '/home/pi/Desktop/images/14012025/10/00/image_14012025_10_00_57_10340.jpg', '/home/pi/Desktop/images/14012025/10/00/image_14012025_10_01_07_10348.jpg', '/home/pi/Desktop/images/14012025/10/01/image_14012025_10_01_16_9340.jpg', '/home/pi/Desktop/images/14012025/10/01/image_14012025_10_01_27_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/00/image_14012025_10_00_37_10348.jpg
/home/pi/Desktop/images/14012025/10/00/image_14012025_10_00_46_9386.jpg
/home/pi/Desktop/images/14012025/10/00/image_14012025_10_00_57_10340.jpg
/home/pi/Desktop/images/14012025/10/00/image_14012025_10_01_07_10348.jpg
/home/pi/Desktop/images/14012025/10/01/image_14012025_10_01_16_9340.jpg
/home/pi/Desktop/images/14012025/10/01/image_14012025_10_01_27_10356.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
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
2025-01-15 15:59:03.827815
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/26/image_15012025_00_26_58_10375.jpg', '/home/pi/Desktop/images/15012025/00/27/image_15012025_00_27_17_10386.jpg', '/home/pi/Desktop/images/15012025/00/27/image_15012025_00_27_37_10364.jpg', '/home/pi/Desktop/images/15012025/00/27/image_15012025_00_27_47_10452.jpg', '/home/pi/Desktop/images/15012025/00/27/image_15012025_00_27_57_9370.jpg', '/home/pi/Desktop/images/15012025/00/27/image_15012025_00_28_07_10351.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/26/image_15012025_00_26_58_10375.jpg
/home/pi/Desktop/images/15012025/00/27/image_15012025_00_27_17_10386.jpg
/home/pi/Desktop/images/15012025/00/27/image_15012025_00_27_37_10364.jpg
/home/pi/Desktop/images/15012025/00/27/image_15012025_00_27_47_10452.jpg
/home/pi/Desktop/images/15012025/00/27/image_15012025_00_27_57_9370.jpg
/home/pi/Desktop/images/15012025/00/27/image_15012025_00_28_07_10351.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329158291","1329158282","1329158303","1329158377","1329158362","1329158350"],"photo_ids_order":["1329158282","1329158291","1329158303","1329158350","1329158362","1329158377"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/74c54733f357680b8d455b0ae8eb6f6b.jpg","text":"TemporaryFile(/tmp/multipartBody4234297528217874752asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953204915,"filename":"image_15012025_00_27_17_10386.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/53c958f5c2b03d3684de56a71d902bc2.jpg","text":"TemporaryFile(/tmp/multipartBody5833803774625898924asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953204915,"filename":"image_15012025_00_26_58_10375.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/449b50818b9a13ab77c6b4420cd6ec0c.jpg","text":"TemporaryFile(/tmp/multipartBody7561325696342886705asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953204915,"filename":"image_15012025_00_27_37_10364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/296a80d1fa0bef0614f53bb5c912840b.jpg","text":"TemporaryFile(/tmp/multipartBody5315597498734318425asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953204915,"filename":"image_15012025_00_28_07_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ad33df12bfd5c6d945c261fa70bf5245.jpg","text":"TemporaryFile(/tmp/multipartBody8055258163224670170asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953204915,"filename":"image_15012025_00_27_57_9370.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/673dc8cc6488bdbb6568ae74b9e7e9a7.jpg","text":"TemporaryFile(/tmp/multipartBody5234346433681744718asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953204915,"filename":"image_15012025_00_27_47_10452.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329158303","file1":"1329158291","file0":"1329158282","file4":"1329158362","file5":"1329158377","file3":"1329158350"},"map_files_photo_id_array":[{"photo_id":"1329158377","filename":"file5"},{"photo_id":"1329158303","filename":"file2"},{"photo_id":"1329158362","filename":"file4"},{"photo_id":"1329158291","filename":"file1"},{"photo_id":"1329158282","filename":"file0"},{"photo_id":"1329158350","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329158291":["hashtag1","hashtag2"]},{"1329158282":["hashtag1","hashtag2"]},{"1329158303":["hashtag1","hashtag2"]},{"1329158377":["hashtag1","hashtag2"]},{"1329158362":["hashtag1","hashtag2"]},{"1329158350":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329158291, 1329158282, 1329158303, 1329158377, 1329158362, 1329158350)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 50.68522596359253 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
2025-01-15 16:00:03.718613
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/28/image_15012025_00_28_17_10377.jpg', '/home/pi/Desktop/images/15012025/00/28/image_15012025_00_28_27_9369.jpg', '/home/pi/Desktop/images/15012025/00/28/image_15012025_00_28_37_10358.jpg', '/home/pi/Desktop/images/15012025/00/28/image_15012025_00_28_48_10360.jpg', '/home/pi/Desktop/images/15012025/00/28/image_15012025_00_28_57_9355.jpg', '/home/pi/Desktop/images/15012025/00/28/image_15012025_00_29_07_10344.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/28/image_15012025_00_28_17_10377.jpg
/home/pi/Desktop/images/15012025/00/28/image_15012025_00_28_27_9369.jpg
/home/pi/Desktop/images/15012025/00/28/image_15012025_00_28_37_10358.jpg
/home/pi/Desktop/images/15012025/00/28/image_15012025_00_28_48_10360.jpg
/home/pi/Desktop/images/15012025/00/28/image_15012025_00_28_57_9355.jpg
/home/pi/Desktop/images/15012025/00/28/image_15012025_00_29_07_10344.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329158410","1329158457","1329158406","1329158415","1329158560","1329158566"],"photo_ids_order":["1329158406","1329158410","1329158415","1329158457","1329158560","1329158566"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d5247a37c180658a1828c77db40781ea.jpg","text":"TemporaryFile(/tmp/multipartBody2893765414196813566asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953264773,"filename":"image_15012025_00_28_27_9369.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2d8f2ea04b35eab214ec944734bcb5b9.jpg","text":"TemporaryFile(/tmp/multipartBody6550230698423140026asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953264773,"filename":"image_15012025_00_28_48_10360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/06853cfba16f0d3e8845bd445cf65c6d.jpg","text":"TemporaryFile(/tmp/multipartBody1767468278267628846asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953264773,"filename":"image_15012025_00_28_17_10377.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6c1a5af3f5b05e620cd90c78495d9bca.jpg","text":"TemporaryFile(/tmp/multipartBody3026443901183390694asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953264773,"filename":"image_15012025_00_28_37_10358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6d22b5025bf62cc55ae99668ae765ff3.jpg","text":"TemporaryFile(/tmp/multipartBody2730905753729042480asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953264773,"filename":"image_15012025_00_28_57_9355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f1b762516768e0083a53e12ea812542b.jpg","text":"TemporaryFile(/tmp/multipartBody1666546283694980921asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953264773,"filename":"image_15012025_00_29_07_10344.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329158415","file1":"1329158410","file0":"1329158406","file4":"1329158560","file5":"1329158566","file3":"1329158457"},"map_files_photo_id_array":[{"photo_id":"1329158566","filename":"file5"},{"photo_id":"1329158415","filename":"file2"},{"photo_id":"1329158560","filename":"file4"},{"photo_id":"1329158410","filename":"file1"},{"photo_id":"1329158406","filename":"file0"},{"photo_id":"1329158457","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329158410":["hashtag1","hashtag2"]},{"1329158457":["hashtag1","hashtag2"]},{"1329158406":["hashtag1","hashtag2"]},{"1329158415":["hashtag1","hashtag2"]},{"1329158560":["hashtag1","hashtag2"]},{"1329158566":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329158410, 1329158457, 1329158406, 1329158415, 1329158560, 1329158566)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 52.042540311813354 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
2025-01-15 16:01:04.373455
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/29/image_15012025_00_29_17_9360.jpg', '/home/pi/Desktop/images/15012025/00/29/image_15012025_00_29_27_10413.jpg', '/home/pi/Desktop/images/15012025/00/29/image_15012025_00_29_37_10344.jpg', '/home/pi/Desktop/images/15012025/00/29/image_15012025_00_29_47_9369.jpg', '/home/pi/Desktop/images/15012025/00/29/image_15012025_00_29_57_10375.jpg', '/home/pi/Desktop/images/15012025/00/29/image_15012025_00_30_07_10342.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/29/image_15012025_00_29_17_9360.jpg
/home/pi/Desktop/images/15012025/00/29/image_15012025_00_29_27_10413.jpg
/home/pi/Desktop/images/15012025/00/29/image_15012025_00_29_37_10344.jpg
/home/pi/Desktop/images/15012025/00/29/image_15012025_00_29_47_9369.jpg
/home/pi/Desktop/images/15012025/00/29/image_15012025_00_29_57_10375.jpg
/home/pi/Desktop/images/15012025/00/29/image_15012025_00_30_07_10342.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.8050222396850586 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 15 --only_old 1
2025-01-15 16:01:33.180419
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/00/image_14012025_10_00_37_10348.jpg', '/home/pi/Desktop/images/14012025/10/00/image_14012025_10_00_46_9386.jpg', '/home/pi/Desktop/images/14012025/10/00/image_14012025_10_00_57_10340.jpg', '/home/pi/Desktop/images/14012025/10/00/image_14012025_10_01_07_10348.jpg', '/home/pi/Desktop/images/14012025/10/01/image_14012025_10_01_16_9340.jpg', '/home/pi/Desktop/images/14012025/10/01/image_14012025_10_01_27_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/00/image_14012025_10_00_37_10348.jpg
/home/pi/Desktop/images/14012025/10/00/image_14012025_10_00_46_9386.jpg
/home/pi/Desktop/images/14012025/10/00/image_14012025_10_00_57_10340.jpg
/home/pi/Desktop/images/14012025/10/00/image_14012025_10_01_07_10348.jpg
/home/pi/Desktop/images/14012025/10/01/image_14012025_10_01_16_9340.jpg
/home/pi/Desktop/images/14012025/10/01/image_14012025_10_01_27_10356.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329158640","1329158663","1329158612","1329158653","1329158632","1329158626"],"photo_ids_order":["1329158612","1329158626","1329158632","1329158640","1329158653","1329158663"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a003b0a27c35be827845088831bf6a0b.jpg","text":"TemporaryFile(/tmp/multipartBody2919877954021675525asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953355718,"filename":"image_14012025_10_01_07_10348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b7bdeac92bbae0715fb86ec642511941.jpg","text":"TemporaryFile(/tmp/multipartBody51182356466260022asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953355718,"filename":"image_14012025_10_01_27_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6c6c7a5b772d752e793eb60f6a10d2e3.jpg","text":"TemporaryFile(/tmp/multipartBody775858175956145131asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953355718,"filename":"image_14012025_10_00_37_10348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3b293be13ebc57b3cd8470caa3ca6773.jpg","text":"TemporaryFile(/tmp/multipartBody8127147492952424636asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953355718,"filename":"image_14012025_10_01_16_9340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5679f229d560277d14f995730bec06cf.jpg","text":"TemporaryFile(/tmp/multipartBody1169498577962440812asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953355718,"filename":"image_14012025_10_00_57_10340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8a9befd6e874948e687c10b80b4bb2de.jpg","text":"TemporaryFile(/tmp/multipartBody3257183965430129740asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953355718,"filename":"image_14012025_10_00_46_9386.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329158632","file1":"1329158626","file0":"1329158612","file4":"1329158653","file5":"1329158663","file3":"1329158640"},"map_files_photo_id_array":[{"photo_id":"1329158663","filename":"file5"},{"photo_id":"1329158632","filename":"file2"},{"photo_id":"1329158653","filename":"file4"},{"photo_id":"1329158626","filename":"file1"},{"photo_id":"1329158612","filename":"file0"},{"photo_id":"1329158640","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329158640":["hashtag1","hashtag2"]},{"1329158663":["hashtag1","hashtag2"]},{"1329158612":["hashtag1","hashtag2"]},{"1329158653":["hashtag1","hashtag2"]},{"1329158632":["hashtag1","hashtag2"]},{"1329158626":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329158640, 1329158663, 1329158612, 1329158653, 1329158632, 1329158626)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.962406158447266 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 15 --only_old 1
2025-01-15 16:02:32.522865
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/01/image_14012025_10_01_36_9407.jpg', '/home/pi/Desktop/images/14012025/10/01/image_14012025_10_01_46_10416.jpg', '/home/pi/Desktop/images/14012025/10/01/image_14012025_10_01_57_10370.jpg', '/home/pi/Desktop/images/14012025/10/01/image_14012025_10_02_06_9418.jpg', '/home/pi/Desktop/images/14012025/10/02/image_14012025_10_02_27_10343.jpg', '/home/pi/Desktop/images/14012025/10/02/image_14012025_10_02_36_9332.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/01/image_14012025_10_01_36_9407.jpg
/home/pi/Desktop/images/14012025/10/01/image_14012025_10_01_46_10416.jpg
/home/pi/Desktop/images/14012025/10/01/image_14012025_10_01_57_10370.jpg
/home/pi/Desktop/images/14012025/10/01/image_14012025_10_02_06_9418.jpg
/home/pi/Desktop/images/14012025/10/02/image_14012025_10_02_27_10343.jpg
/home/pi/Desktop/images/14012025/10/02/image_14012025_10_02_36_9332.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329158682","1329158685","1329158688","1329158699","1329158690","1329158708"],"photo_ids_order":["1329158682","1329158685","1329158688","1329158690","1329158699","1329158708"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8f05bafb8826c7a8c91a19ed6d284313.jpg","text":"TemporaryFile(/tmp/multipartBody7462139783745351304asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953415085,"filename":"image_14012025_10_01_36_9407.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f7966ddcfc4b075e784fd3f759c40287.jpg","text":"TemporaryFile(/tmp/multipartBody2102606057648441717asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953415085,"filename":"image_14012025_10_01_46_10416.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a5364578c9d8d24ab1bb12eeeee68fc7.jpg","text":"TemporaryFile(/tmp/multipartBody6863091975528257034asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953415085,"filename":"image_14012025_10_01_57_10370.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/62e0efa5d3928676ce1f6ce6bffc533d.jpg","text":"TemporaryFile(/tmp/multipartBody8404938109421084541asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953415085,"filename":"image_14012025_10_02_27_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/22f567fcfac113743635e53b20dd7d6e.jpg","text":"TemporaryFile(/tmp/multipartBody1110994322678026623asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953415085,"filename":"image_14012025_10_02_06_9418.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7c9beec1519baff5b13f0695f0410bca.jpg","text":"TemporaryFile(/tmp/multipartBody6084879087728150662asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953415085,"filename":"image_14012025_10_02_36_9332.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329158688","file1":"1329158685","file0":"1329158682","file4":"1329158699","file5":"1329158708","file3":"1329158690"},"map_files_photo_id_array":[{"photo_id":"1329158708","filename":"file5"},{"photo_id":"1329158688","filename":"file2"},{"photo_id":"1329158699","filename":"file4"},{"photo_id":"1329158685","filename":"file1"},{"photo_id":"1329158682","filename":"file0"},{"photo_id":"1329158690","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329158682":["hashtag1","hashtag2"]},{"1329158685":["hashtag1","hashtag2"]},{"1329158688":["hashtag1","hashtag2"]},{"1329158699":["hashtag1","hashtag2"]},{"1329158690":["hashtag1","hashtag2"]},{"1329158708":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329158682, 1329158685, 1329158688, 1329158699, 1329158690, 1329158708)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.45016407966614 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 15 --only_old 1
2025-01-15 16:03:32.709948
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/02/image_14012025_10_02_47_10350.jpg', '/home/pi/Desktop/images/14012025/10/02/image_14012025_10_02_57_10340.jpg', '/home/pi/Desktop/images/14012025/10/02/image_14012025_10_03_06_9412.jpg', '/home/pi/Desktop/images/14012025/10/03/image_14012025_10_03_17_10335.jpg', '/home/pi/Desktop/images/14012025/10/03/image_14012025_10_03_26_9440.jpg', '/home/pi/Desktop/images/14012025/10/03/image_14012025_10_03_36_10336.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/02/image_14012025_10_02_47_10350.jpg
/home/pi/Desktop/images/14012025/10/02/image_14012025_10_02_57_10340.jpg
/home/pi/Desktop/images/14012025/10/02/image_14012025_10_03_06_9412.jpg
/home/pi/Desktop/images/14012025/10/03/image_14012025_10_03_17_10335.jpg
/home/pi/Desktop/images/14012025/10/03/image_14012025_10_03_26_9440.jpg
/home/pi/Desktop/images/14012025/10/03/image_14012025_10_03_36_10336.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329158745","1329158736","1329158739","1329158730","1329158732","1329158741"],"photo_ids_order":["1329158730","1329158732","1329158736","1329158739","1329158741","1329158745"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/71f5841a965453ececb4b9092cc7eb36.jpg","text":"TemporaryFile(/tmp/multipartBody7002963880419365452asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953475256,"filename":"image_14012025_10_03_36_10336.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a965f2dbabe1dce189be6cea915dd8f0.jpg","text":"TemporaryFile(/tmp/multipartBody1342873298161888942asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953475256,"filename":"image_14012025_10_03_06_9412.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/23d847d774ed5eef33f1ae39b4ff62f9.jpg","text":"TemporaryFile(/tmp/multipartBody2670337108391049258asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953475256,"filename":"image_14012025_10_03_17_10335.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/68aa23f509abc276854d7f46768797ec.jpg","text":"TemporaryFile(/tmp/multipartBody8748288345607818061asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953475256,"filename":"image_14012025_10_02_47_10350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f7f41a50d0317127128ef6862c4dd8c0.jpg","text":"TemporaryFile(/tmp/multipartBody705230793343792021asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953475256,"filename":"image_14012025_10_02_57_10340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fbd4f7ef30e70b55fc240ccc9dd892da.jpg","text":"TemporaryFile(/tmp/multipartBody4134893386803511582asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953475256,"filename":"image_14012025_10_03_26_9440.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329158736","file1":"1329158732","file0":"1329158730","file4":"1329158741","file5":"1329158745","file3":"1329158739"},"map_files_photo_id_array":[{"photo_id":"1329158745","filename":"file5"},{"photo_id":"1329158736","filename":"file2"},{"photo_id":"1329158741","filename":"file4"},{"photo_id":"1329158732","filename":"file1"},{"photo_id":"1329158730","filename":"file0"},{"photo_id":"1329158739","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329158745":["hashtag1","hashtag2"]},{"1329158736":["hashtag1","hashtag2"]},{"1329158739":["hashtag1","hashtag2"]},{"1329158730":["hashtag1","hashtag2"]},{"1329158732":["hashtag1","hashtag2"]},{"1329158741":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329158745, 1329158736, 1329158739, 1329158730, 1329158732, 1329158741)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.109681367874146 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 15 --only_old 1
2025-01-15 16:04:32.915642
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/03/image_14012025_10_03_47_10355.jpg', '/home/pi/Desktop/images/14012025/10/03/image_14012025_10_03_56_9388.jpg', '/home/pi/Desktop/images/14012025/10/03/image_14012025_10_04_07_10346.jpg', '/home/pi/Desktop/images/14012025/10/04/image_14012025_10_04_17_10334.jpg', '/home/pi/Desktop/images/14012025/10/04/image_14012025_10_04_26_9405.jpg', '/home/pi/Desktop/images/14012025/10/04/image_14012025_10_04_37_10332.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/03/image_14012025_10_03_47_10355.jpg
/home/pi/Desktop/images/14012025/10/03/image_14012025_10_03_56_9388.jpg
/home/pi/Desktop/images/14012025/10/03/image_14012025_10_04_07_10346.jpg
/home/pi/Desktop/images/14012025/10/04/image_14012025_10_04_17_10334.jpg
/home/pi/Desktop/images/14012025/10/04/image_14012025_10_04_26_9405.jpg
/home/pi/Desktop/images/14012025/10/04/image_14012025_10_04_37_10332.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329158796","1329158800","1329158790","1329158778","1329158789","1329158770"],"photo_ids_order":["1329158770","1329158778","1329158789","1329158790","1329158796","1329158800"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/35b4ea7b6031037370cc93bf5d36249a.jpg","text":"TemporaryFile(/tmp/multipartBody1361562923975187284asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953535456,"filename":"image_14012025_10_04_26_9405.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/894a63e8932cb715d0af47c25a705cbd.jpg","text":"TemporaryFile(/tmp/multipartBody1379711339070965348asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953535456,"filename":"image_14012025_10_04_37_10332.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b111a221802e771d0eae6ca5b4762e77.jpg","text":"TemporaryFile(/tmp/multipartBody8415716106809715316asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953535456,"filename":"image_14012025_10_04_17_10334.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/848867d58e8762a1d8d69f55efa55c45.jpg","text":"TemporaryFile(/tmp/multipartBody8194650085899061851asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953535456,"filename":"image_14012025_10_03_56_9388.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0a22c25320aa389a60b2168712286aae.jpg","text":"TemporaryFile(/tmp/multipartBody2182710187123124668asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953535456,"filename":"image_14012025_10_04_07_10346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e4e9b8e8539ab2e2be73f3f31a211a0f.jpg","text":"TemporaryFile(/tmp/multipartBody2171069033562353663asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953535456,"filename":"image_14012025_10_03_47_10355.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329158789","file1":"1329158778","file0":"1329158770","file4":"1329158796","file5":"1329158800","file3":"1329158790"},"map_files_photo_id_array":[{"photo_id":"1329158800","filename":"file5"},{"photo_id":"1329158789","filename":"file2"},{"photo_id":"1329158796","filename":"file4"},{"photo_id":"1329158778","filename":"file1"},{"photo_id":"1329158770","filename":"file0"},{"photo_id":"1329158790","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329158796":["hashtag1","hashtag2"]},{"1329158800":["hashtag1","hashtag2"]},{"1329158790":["hashtag1","hashtag2"]},{"1329158778":["hashtag1","hashtag2"]},{"1329158789":["hashtag1","hashtag2"]},{"1329158770":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329158796, 1329158800, 1329158790, 1329158778, 1329158789, 1329158770)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.38790845870972 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 15 --only_old 1
2025-01-15 16:05:33.247638
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/04/image_14012025_10_04_47_10347.jpg', '/home/pi/Desktop/images/14012025/10/04/image_14012025_10_04_56_9337.jpg', '/home/pi/Desktop/images/14012025/10/04/image_14012025_10_05_07_10336.jpg', '/home/pi/Desktop/images/14012025/10/05/image_14012025_10_05_17_10327.jpg', '/home/pi/Desktop/images/14012025/10/05/image_14012025_10_05_26_9427.jpg', '/home/pi/Desktop/images/14012025/10/05/image_14012025_10_05_37_10536.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/04/image_14012025_10_04_47_10347.jpg
/home/pi/Desktop/images/14012025/10/04/image_14012025_10_04_56_9337.jpg
/home/pi/Desktop/images/14012025/10/04/image_14012025_10_05_07_10336.jpg
/home/pi/Desktop/images/14012025/10/05/image_14012025_10_05_17_10327.jpg
/home/pi/Desktop/images/14012025/10/05/image_14012025_10_05_26_9427.jpg
/home/pi/Desktop/images/14012025/10/05/image_14012025_10_05_37_10536.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329159651","1329159669","1329159612","1329159665","1329159347","1329159667"],"photo_ids_order":["1329159347","1329159612","1329159651","1329159665","1329159667","1329159669"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d60e2a86f4a9647a31c74f0321970083.jpg","text":"TemporaryFile(/tmp/multipartBody5548090615405666732asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953595779,"filename":"image_14012025_10_05_07_10336.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/202216ae54edc42f631fda85c2628c17.jpg","text":"TemporaryFile(/tmp/multipartBody3667887879961746484asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953595779,"filename":"image_14012025_10_05_37_10536.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/585e94bfdb0d6169260fbba4032f94ab.jpg","text":"TemporaryFile(/tmp/multipartBody3416105501685626836asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953595779,"filename":"image_14012025_10_04_56_9337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/158941a6fd91438b5cf3fab330f88f0e.jpg","text":"TemporaryFile(/tmp/multipartBody1548086020814226685asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953595779,"filename":"image_14012025_10_05_17_10327.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/77c304e3bdb90506000b51ebb3e0d97a.jpg","text":"TemporaryFile(/tmp/multipartBody4509592852240354136asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953595779,"filename":"image_14012025_10_04_47_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ec1ce544f09637d1188534ac2f752e92.jpg","text":"TemporaryFile(/tmp/multipartBody29272700991016460asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953595779,"filename":"image_14012025_10_05_26_9427.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329159651","file1":"1329159612","file0":"1329159347","file4":"1329159667","file5":"1329159669","file3":"1329159665"},"map_files_photo_id_array":[{"photo_id":"1329159669","filename":"file5"},{"photo_id":"1329159651","filename":"file2"},{"photo_id":"1329159667","filename":"file4"},{"photo_id":"1329159612","filename":"file1"},{"photo_id":"1329159347","filename":"file0"},{"photo_id":"1329159665","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329159651":["hashtag1","hashtag2"]},{"1329159669":["hashtag1","hashtag2"]},{"1329159612":["hashtag1","hashtag2"]},{"1329159665":["hashtag1","hashtag2"]},{"1329159347":["hashtag1","hashtag2"]},{"1329159667":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329159651, 1329159669, 1329159612, 1329159665, 1329159347, 1329159667)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.14885878562927 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 15 --only_old 1
2025-01-15 16:06:32.330931
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/05/image_14012025_10_05_46_9435.jpg', '/home/pi/Desktop/images/14012025/10/05/image_14012025_10_05_57_10383.jpg', '/home/pi/Desktop/images/14012025/10/05/image_14012025_10_06_06_9431.jpg', '/home/pi/Desktop/images/14012025/10/06/image_14012025_10_06_47_10354.jpg', '/home/pi/Desktop/images/14012025/10/06/image_14012025_10_06_56_9336.jpg', '/home/pi/Desktop/images/14012025/10/06/image_14012025_10_07_06_10333.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/05/image_14012025_10_05_46_9435.jpg
/home/pi/Desktop/images/14012025/10/05/image_14012025_10_05_57_10383.jpg
/home/pi/Desktop/images/14012025/10/05/image_14012025_10_06_06_9431.jpg
/home/pi/Desktop/images/14012025/10/06/image_14012025_10_06_47_10354.jpg
/home/pi/Desktop/images/14012025/10/06/image_14012025_10_06_56_9336.jpg
/home/pi/Desktop/images/14012025/10/06/image_14012025_10_07_06_10333.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329159698","1329159689","1329159685","1329159694","1329159703","1329159706"],"photo_ids_order":["1329159685","1329159689","1329159694","1329159698","1329159703","1329159706"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bae658a898a00fc656f2a496edc7b474.jpg","text":"TemporaryFile(/tmp/multipartBody6606682789303956930asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953654875,"filename":"image_14012025_10_06_47_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5767cc0b6485d56ec006e8fdeeeb5171.jpg","text":"TemporaryFile(/tmp/multipartBody3800370557126733257asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953654875,"filename":"image_14012025_10_05_57_10383.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c54ed514222d52c9babe5053e2cbdfba.jpg","text":"TemporaryFile(/tmp/multipartBody3347891548939836262asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953654875,"filename":"image_14012025_10_05_46_9435.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d87cd4aec6230916959b64900847d6d5.jpg","text":"TemporaryFile(/tmp/multipartBody9055345172020359811asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953654875,"filename":"image_14012025_10_06_06_9431.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e86efb24834df74645f5b7cee7b385d5.jpg","text":"TemporaryFile(/tmp/multipartBody4460290869991700753asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953654875,"filename":"image_14012025_10_06_56_9336.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f817f6b09ba0236d2bd607bf71452446.jpg","text":"TemporaryFile(/tmp/multipartBody6008673765812433353asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953654875,"filename":"image_14012025_10_07_06_10333.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329159694","file1":"1329159689","file0":"1329159685","file4":"1329159703","file5":"1329159706","file3":"1329159698"},"map_files_photo_id_array":[{"photo_id":"1329159706","filename":"file5"},{"photo_id":"1329159694","filename":"file2"},{"photo_id":"1329159703","filename":"file4"},{"photo_id":"1329159689","filename":"file1"},{"photo_id":"1329159685","filename":"file0"},{"photo_id":"1329159698","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329159698":["hashtag1","hashtag2"]},{"1329159689":["hashtag1","hashtag2"]},{"1329159685":["hashtag1","hashtag2"]},{"1329159694":["hashtag1","hashtag2"]},{"1329159703":["hashtag1","hashtag2"]},{"1329159706":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329159698, 1329159689, 1329159685, 1329159694, 1329159703, 1329159706)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.327168464660645 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 15 --only_old 1
2025-01-15 16:07:32.569504
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/07/image_14012025_10_07_17_10367.jpg', '/home/pi/Desktop/images/14012025/10/07/image_14012025_10_07_26_9368.jpg', '/home/pi/Desktop/images/14012025/10/07/image_14012025_10_07_36_10333.jpg', '/home/pi/Desktop/images/14012025/10/07/image_14012025_10_07_47_10416.jpg', '/home/pi/Desktop/images/14012025/10/07/image_14012025_10_07_56_9458.jpg', '/home/pi/Desktop/images/14012025/10/07/image_14012025_10_08_07_10343.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/07/image_14012025_10_07_17_10367.jpg
/home/pi/Desktop/images/14012025/10/07/image_14012025_10_07_26_9368.jpg
/home/pi/Desktop/images/14012025/10/07/image_14012025_10_07_36_10333.jpg
/home/pi/Desktop/images/14012025/10/07/image_14012025_10_07_47_10416.jpg
/home/pi/Desktop/images/14012025/10/07/image_14012025_10_07_56_9458.jpg
/home/pi/Desktop/images/14012025/10/07/image_14012025_10_08_07_10343.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329160226","1329160169","1329160220","1329160139","1329160096","1329160222"],"photo_ids_order":["1329160096","1329160139","1329160169","1329160220","1329160222","1329160226"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7b438dcd27194c6b2b9fea035b5484ea.jpg","text":"TemporaryFile(/tmp/multipartBody7995688953589165777asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953715097,"filename":"image_14012025_10_08_07_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e5cefd9241bfde74652d821a1f2dfe0a.jpg","text":"TemporaryFile(/tmp/multipartBody131561235178069952asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953715097,"filename":"image_14012025_10_07_36_10333.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cc1574f92d32b1dffaf348f590863f86.jpg","text":"TemporaryFile(/tmp/multipartBody495620334333477315asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953715097,"filename":"image_14012025_10_07_47_10416.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ad6044882c79b1d07c52c7199032afb0.jpg","text":"TemporaryFile(/tmp/multipartBody6973951693252218011asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953715097,"filename":"image_14012025_10_07_26_9368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6209a0f5a1d77bd12b0d588288e490ea.jpg","text":"TemporaryFile(/tmp/multipartBody4948153580344006870asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953715097,"filename":"image_14012025_10_07_17_10367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/74f11413d51b15e6b87f7032daba6d16.jpg","text":"TemporaryFile(/tmp/multipartBody2168580203119513912asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953715097,"filename":"image_14012025_10_07_56_9458.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329160169","file1":"1329160139","file0":"1329160096","file4":"1329160222","file5":"1329160226","file3":"1329160220"},"map_files_photo_id_array":[{"photo_id":"1329160226","filename":"file5"},{"photo_id":"1329160169","filename":"file2"},{"photo_id":"1329160222","filename":"file4"},{"photo_id":"1329160139","filename":"file1"},{"photo_id":"1329160096","filename":"file0"},{"photo_id":"1329160220","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329160226":["hashtag1","hashtag2"]},{"1329160169":["hashtag1","hashtag2"]},{"1329160220":["hashtag1","hashtag2"]},{"1329160139":["hashtag1","hashtag2"]},{"1329160096":["hashtag1","hashtag2"]},{"1329160222":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329160226, 1329160169, 1329160220, 1329160139, 1329160096, 1329160222)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.550504207611084 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 15 --only_old 1
2025-01-15 16:08:32.807339
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/08/image_14012025_10_08_17_10339.jpg', '/home/pi/Desktop/images/14012025/10/08/image_14012025_10_08_26_9423.jpg', '/home/pi/Desktop/images/14012025/10/08/image_14012025_10_08_46_9335.jpg', '/home/pi/Desktop/images/14012025/10/08/image_14012025_10_08_56_10337.jpg', '/home/pi/Desktop/images/14012025/10/09/image_14012025_10_09_16_9430.jpg', '/home/pi/Desktop/images/14012025/10/09/image_14012025_10_09_27_10364.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/08/image_14012025_10_08_17_10339.jpg
/home/pi/Desktop/images/14012025/10/08/image_14012025_10_08_26_9423.jpg
/home/pi/Desktop/images/14012025/10/08/image_14012025_10_08_46_9335.jpg
/home/pi/Desktop/images/14012025/10/08/image_14012025_10_08_56_10337.jpg
/home/pi/Desktop/images/14012025/10/09/image_14012025_10_09_16_9430.jpg
/home/pi/Desktop/images/14012025/10/09/image_14012025_10_09_27_10364.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329160248","1329160245","1329160241","1329160255","1329160258","1329160252"],"photo_ids_order":["1329160241","1329160245","1329160248","1329160252","1329160255","1329160258"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/abfcc218eac9763760caf0b6be8852fd.jpg","text":"TemporaryFile(/tmp/multipartBody6933718239163349739asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953775339,"filename":"image_14012025_10_08_46_9335.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/19631c75e41c3c6d04efa7eb0c96dbac.jpg","text":"TemporaryFile(/tmp/multipartBody1314924629319640928asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953775339,"filename":"image_14012025_10_08_26_9423.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f19973cbbc3456dc69019d4ed3843354.jpg","text":"TemporaryFile(/tmp/multipartBody1332819696068550321asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953775339,"filename":"image_14012025_10_08_17_10339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8718d42af8f73fa47ee2a05be045da8d.jpg","text":"TemporaryFile(/tmp/multipartBody2597924821574705814asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953775339,"filename":"image_14012025_10_09_16_9430.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/85d7d4fc2a6df388887745d055f2d36d.jpg","text":"TemporaryFile(/tmp/multipartBody510116670926634388asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953775339,"filename":"image_14012025_10_09_27_10364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f8aa0ddb37869b014ec7b26ad985c061.jpg","text":"TemporaryFile(/tmp/multipartBody9178546372984404423asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953775339,"filename":"image_14012025_10_08_56_10337.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329160248","file1":"1329160245","file0":"1329160241","file4":"1329160255","file5":"1329160258","file3":"1329160252"},"map_files_photo_id_array":[{"photo_id":"1329160258","filename":"file5"},{"photo_id":"1329160248","filename":"file2"},{"photo_id":"1329160255","filename":"file4"},{"photo_id":"1329160245","filename":"file1"},{"photo_id":"1329160241","filename":"file0"},{"photo_id":"1329160252","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329160248":["hashtag1","hashtag2"]},{"1329160245":["hashtag1","hashtag2"]},{"1329160241":["hashtag1","hashtag2"]},{"1329160255":["hashtag1","hashtag2"]},{"1329160258":["hashtag1","hashtag2"]},{"1329160252":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329160248, 1329160245, 1329160241, 1329160255, 1329160258, 1329160252)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.40041518211365 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 15 --only_old 1
2025-01-15 16:09:32.901766
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/09/image_14012025_10_09_37_10336.jpg', '/home/pi/Desktop/images/14012025/10/09/image_14012025_10_10_06_9431.jpg', '/home/pi/Desktop/images/14012025/10/10/image_14012025_10_10_17_10394.jpg', '/home/pi/Desktop/images/14012025/10/10/image_14012025_10_10_27_10407.jpg', '/home/pi/Desktop/images/14012025/10/10/image_14012025_10_10_36_9374.jpg', '/home/pi/Desktop/images/14012025/10/10/image_14012025_10_10_47_10351.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/09/image_14012025_10_09_37_10336.jpg
/home/pi/Desktop/images/14012025/10/09/image_14012025_10_10_06_9431.jpg
/home/pi/Desktop/images/14012025/10/10/image_14012025_10_10_17_10394.jpg
/home/pi/Desktop/images/14012025/10/10/image_14012025_10_10_27_10407.jpg
/home/pi/Desktop/images/14012025/10/10/image_14012025_10_10_36_9374.jpg
/home/pi/Desktop/images/14012025/10/10/image_14012025_10_10_47_10351.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 2.183302879333496 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
2025-01-15 16:09:42.911289
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/29/image_15012025_00_29_17_9360.jpg', '/home/pi/Desktop/images/15012025/00/29/image_15012025_00_29_27_10413.jpg', '/home/pi/Desktop/images/15012025/00/29/image_15012025_00_29_37_10344.jpg', '/home/pi/Desktop/images/15012025/00/29/image_15012025_00_29_47_9369.jpg', '/home/pi/Desktop/images/15012025/00/29/image_15012025_00_29_57_10375.jpg', '/home/pi/Desktop/images/15012025/00/29/image_15012025_00_30_07_10342.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/29/image_15012025_00_29_17_9360.jpg
/home/pi/Desktop/images/15012025/00/29/image_15012025_00_29_27_10413.jpg
/home/pi/Desktop/images/15012025/00/29/image_15012025_00_29_37_10344.jpg
/home/pi/Desktop/images/15012025/00/29/image_15012025_00_29_47_9369.jpg
/home/pi/Desktop/images/15012025/00/29/image_15012025_00_29_57_10375.jpg
/home/pi/Desktop/images/15012025/00/29/image_15012025_00_30_07_10342.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329160494","1329160491","1329160496","1329160465","1329160489","1329160480"],"photo_ids_order":["1329160465","1329160480","1329160489","1329160491","1329160494","1329160496"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cceaa109d41a14b2c5784fba12d3638c.jpg","text":"TemporaryFile(/tmp/multipartBody3172307313371285882asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953843830,"filename":"image_15012025_00_29_57_10375.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2846b64184ed8f8c65563c845e8e602f.jpg","text":"TemporaryFile(/tmp/multipartBody1140114983828899342asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953843830,"filename":"image_15012025_00_29_47_9369.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/788ca17f539f79bed46de5216aeed050.jpg","text":"TemporaryFile(/tmp/multipartBody8905687477176621831asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953843830,"filename":"image_15012025_00_30_07_10342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d5211c007cae854771e68d2975331192.jpg","text":"TemporaryFile(/tmp/multipartBody6971338373390978668asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953843830,"filename":"image_15012025_00_29_17_9360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e2eefa8b90a69f0273e1cd75b5068379.jpg","text":"TemporaryFile(/tmp/multipartBody6215442500179554980asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953843830,"filename":"image_15012025_00_29_37_10344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f8bd006b31688bf42287bd89e489efe4.jpg","text":"TemporaryFile(/tmp/multipartBody4616943143888409841asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953843830,"filename":"image_15012025_00_29_27_10413.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329160489","file1":"1329160480","file0":"1329160465","file4":"1329160494","file5":"1329160496","file3":"1329160491"},"map_files_photo_id_array":[{"photo_id":"1329160496","filename":"file5"},{"photo_id":"1329160489","filename":"file2"},{"photo_id":"1329160494","filename":"file4"},{"photo_id":"1329160480","filename":"file1"},{"photo_id":"1329160465","filename":"file0"},{"photo_id":"1329160491","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329160494":["hashtag1","hashtag2"]},{"1329160491":["hashtag1","hashtag2"]},{"1329160496":["hashtag1","hashtag2"]},{"1329160465":["hashtag1","hashtag2"]},{"1329160489":["hashtag1","hashtag2"]},{"1329160480":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329160494, 1329160491, 1329160496, 1329160465, 1329160489, 1329160480)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.00847148895264 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 15 --only_old 1
2025-01-15 16:10:33.141091
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/09/image_14012025_10_09_37_10336.jpg', '/home/pi/Desktop/images/14012025/10/09/image_14012025_10_10_06_9431.jpg', '/home/pi/Desktop/images/14012025/10/10/image_14012025_10_10_17_10394.jpg', '/home/pi/Desktop/images/14012025/10/10/image_14012025_10_10_27_10407.jpg', '/home/pi/Desktop/images/14012025/10/10/image_14012025_10_10_36_9374.jpg', '/home/pi/Desktop/images/14012025/10/10/image_14012025_10_10_47_10351.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/09/image_14012025_10_09_37_10336.jpg
/home/pi/Desktop/images/14012025/10/09/image_14012025_10_10_06_9431.jpg
/home/pi/Desktop/images/14012025/10/10/image_14012025_10_10_17_10394.jpg
/home/pi/Desktop/images/14012025/10/10/image_14012025_10_10_27_10407.jpg
/home/pi/Desktop/images/14012025/10/10/image_14012025_10_10_36_9374.jpg
/home/pi/Desktop/images/14012025/10/10/image_14012025_10_10_47_10351.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329160510","1329160504","1329160513","1329160515","1329160517","1329160511"],"photo_ids_order":["1329160504","1329160510","1329160511","1329160513","1329160515","1329160517"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8b32b02271be6f0f974bcaf1ef71fb8c.jpg","text":"TemporaryFile(/tmp/multipartBody3503409740105769525asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953896014,"filename":"image_14012025_10_10_06_9431.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/55f42ea2a27441f23db5055419933d9a.jpg","text":"TemporaryFile(/tmp/multipartBody4984369480157706773asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953896014,"filename":"image_14012025_10_09_37_10336.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f3dcb7bb2ed8462a39271d249a94b63c.jpg","text":"TemporaryFile(/tmp/multipartBody7311174475454166189asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953896014,"filename":"image_14012025_10_10_27_10407.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/14129e33cbacc71258a0f577340d8028.jpg","text":"TemporaryFile(/tmp/multipartBody6193589961777932565asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953896014,"filename":"image_14012025_10_10_36_9374.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8409a95d65657aacd061bee78bd3ec0a.jpg","text":"TemporaryFile(/tmp/multipartBody5620763643459473919asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953896014,"filename":"image_14012025_10_10_47_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f6e9e693f4b5ae7deef54fd7d527b7a4.jpg","text":"TemporaryFile(/tmp/multipartBody3486745140178851854asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953896014,"filename":"image_14012025_10_10_17_10394.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329160511","file1":"1329160510","file0":"1329160504","file4":"1329160515","file5":"1329160517","file3":"1329160513"},"map_files_photo_id_array":[{"photo_id":"1329160517","filename":"file5"},{"photo_id":"1329160511","filename":"file2"},{"photo_id":"1329160515","filename":"file4"},{"photo_id":"1329160510","filename":"file1"},{"photo_id":"1329160504","filename":"file0"},{"photo_id":"1329160513","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329160510":["hashtag1","hashtag2"]},{"1329160504":["hashtag1","hashtag2"]},{"1329160513":["hashtag1","hashtag2"]},{"1329160515":["hashtag1","hashtag2"]},{"1329160517":["hashtag1","hashtag2"]},{"1329160511":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329160510, 1329160504, 1329160513, 1329160515, 1329160517, 1329160511)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.353819370269775 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 15 --only_old 1
2025-01-15 16:11:32.432498
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/10/image_14012025_10_10_56_9500.jpg', '/home/pi/Desktop/images/14012025/10/10/image_14012025_10_11_07_10337.jpg', '/home/pi/Desktop/images/14012025/10/11/image_14012025_10_11_17_10346.jpg', '/home/pi/Desktop/images/14012025/10/11/image_14012025_10_11_26_9341.jpg', '/home/pi/Desktop/images/14012025/10/11/image_14012025_10_11_37_10331.jpg', '/home/pi/Desktop/images/14012025/10/11/image_14012025_10_11_47_10419.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/10/image_14012025_10_10_56_9500.jpg
/home/pi/Desktop/images/14012025/10/10/image_14012025_10_11_07_10337.jpg
/home/pi/Desktop/images/14012025/10/11/image_14012025_10_11_17_10346.jpg
/home/pi/Desktop/images/14012025/10/11/image_14012025_10_11_26_9341.jpg
/home/pi/Desktop/images/14012025/10/11/image_14012025_10_11_37_10331.jpg
/home/pi/Desktop/images/14012025/10/11/image_14012025_10_11_47_10419.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329160612","1329160548","1329160617","1329160565","1329160579","1329160561"],"photo_ids_order":["1329160548","1329160561","1329160565","1329160579","1329160612","1329160617"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d604afeafdb6a1048424cd76ae7a3a43.jpg","text":"TemporaryFile(/tmp/multipartBody4012365594501953286asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953955011,"filename":"image_14012025_10_11_37_10331.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a1bc681fb06848417f39c61e6fea14d0.jpg","text":"TemporaryFile(/tmp/multipartBody5734543780318475192asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953955011,"filename":"image_14012025_10_10_56_9500.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c20b5960db59d148ae6b2b8010899052.jpg","text":"TemporaryFile(/tmp/multipartBody7553001450975452453asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953955011,"filename":"image_14012025_10_11_47_10419.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a1cc454193ad4d3db50a4a75e90f9910.jpg","text":"TemporaryFile(/tmp/multipartBody697243848176790629asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953955011,"filename":"image_14012025_10_11_17_10346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2c1d9765a569bd31606944263544e9dd.jpg","text":"TemporaryFile(/tmp/multipartBody1998459027483744835asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953955011,"filename":"image_14012025_10_11_26_9341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a662b463c580610792edbfde2fdc37a0.jpg","text":"TemporaryFile(/tmp/multipartBody1917283165564390589asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736953955011,"filename":"image_14012025_10_11_07_10337.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329160565","file1":"1329160561","file0":"1329160548","file4":"1329160612","file5":"1329160617","file3":"1329160579"},"map_files_photo_id_array":[{"photo_id":"1329160617","filename":"file5"},{"photo_id":"1329160565","filename":"file2"},{"photo_id":"1329160612","filename":"file4"},{"photo_id":"1329160561","filename":"file1"},{"photo_id":"1329160548","filename":"file0"},{"photo_id":"1329160579","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329160612":["hashtag1","hashtag2"]},{"1329160548":["hashtag1","hashtag2"]},{"1329160617":["hashtag1","hashtag2"]},{"1329160565":["hashtag1","hashtag2"]},{"1329160579":["hashtag1","hashtag2"]},{"1329160561":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329160612, 1329160548, 1329160617, 1329160565, 1329160579, 1329160561)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 49.63139796257019 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 15 --only_old 1
2025-01-15 16:12:32.610760
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/11/image_14012025_10_11_56_9355.jpg', '/home/pi/Desktop/images/14012025/10/11/image_14012025_10_12_07_10345.jpg', '/home/pi/Desktop/images/14012025/10/12/image_14012025_10_12_16_9324.jpg', '/home/pi/Desktop/images/14012025/10/12/image_14012025_10_12_26_10395.jpg', '/home/pi/Desktop/images/14012025/10/12/image_14012025_10_12_46_9490.jpg', '/home/pi/Desktop/images/14012025/10/12/image_14012025_10_12_57_10360.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/11/image_14012025_10_11_56_9355.jpg
/home/pi/Desktop/images/14012025/10/11/image_14012025_10_12_07_10345.jpg
/home/pi/Desktop/images/14012025/10/12/image_14012025_10_12_16_9324.jpg
/home/pi/Desktop/images/14012025/10/12/image_14012025_10_12_26_10395.jpg
/home/pi/Desktop/images/14012025/10/12/image_14012025_10_12_46_9490.jpg
/home/pi/Desktop/images/14012025/10/12/image_14012025_10_12_57_10360.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329160641","1329160635","1329160649","1329160709","1329160651","1329160645"],"photo_ids_order":["1329160635","1329160641","1329160645","1329160649","1329160651","1329160709"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/47238504232b1188b4807a65658768eb.jpg","text":"TemporaryFile(/tmp/multipartBody8797891384290310741asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954015154,"filename":"image_14012025_10_12_07_10345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f16105e302b1eba9ba9b298906541fd9.jpg","text":"TemporaryFile(/tmp/multipartBody2087907303411681406asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954015154,"filename":"image_14012025_10_11_56_9355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bef0269296fa73d40e0bf24169a8e1c3.jpg","text":"TemporaryFile(/tmp/multipartBody5013639042458069237asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954015154,"filename":"image_14012025_10_12_26_10395.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d204e2a8b9d30f84bf2d96ac5a7f81c5.jpg","text":"TemporaryFile(/tmp/multipartBody2267186464448512752asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954015154,"filename":"image_14012025_10_12_57_10360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2eccbfa68613884fa415f356b98d07e3.jpg","text":"TemporaryFile(/tmp/multipartBody7258803032446310983asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954015154,"filename":"image_14012025_10_12_46_9490.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/838db1a3a8f2fe36d6afb988d8d21885.jpg","text":"TemporaryFile(/tmp/multipartBody3525181433334159412asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954015154,"filename":"image_14012025_10_12_16_9324.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329160645","file1":"1329160641","file0":"1329160635","file4":"1329160651","file5":"1329160709","file3":"1329160649"},"map_files_photo_id_array":[{"photo_id":"1329160709","filename":"file5"},{"photo_id":"1329160645","filename":"file2"},{"photo_id":"1329160651","filename":"file4"},{"photo_id":"1329160641","filename":"file1"},{"photo_id":"1329160635","filename":"file0"},{"photo_id":"1329160649","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329160641":["hashtag1","hashtag2"]},{"1329160635":["hashtag1","hashtag2"]},{"1329160649":["hashtag1","hashtag2"]},{"1329160709":["hashtag1","hashtag2"]},{"1329160651":["hashtag1","hashtag2"]},{"1329160645":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329160641, 1329160635, 1329160649, 1329160709, 1329160651, 1329160645)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 49.95346736907959 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 15 --only_old 1
2025-01-15 16:13:32.840496
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/12/image_14012025_10_13_07_10342.jpg', '/home/pi/Desktop/images/14012025/10/13/image_14012025_10_13_16_9345.jpg', '/home/pi/Desktop/images/14012025/10/13/image_14012025_10_13_27_10407.jpg', '/home/pi/Desktop/images/14012025/10/13/image_14012025_10_13_46_10350.jpg', '/home/pi/Desktop/images/14012025/10/13/image_14012025_10_13_57_10343.jpg', '/home/pi/Desktop/images/14012025/10/13/image_14012025_10_14_06_9390.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/12/image_14012025_10_13_07_10342.jpg
/home/pi/Desktop/images/14012025/10/13/image_14012025_10_13_16_9345.jpg
/home/pi/Desktop/images/14012025/10/13/image_14012025_10_13_27_10407.jpg
/home/pi/Desktop/images/14012025/10/13/image_14012025_10_13_46_10350.jpg
/home/pi/Desktop/images/14012025/10/13/image_14012025_10_13_57_10343.jpg
/home/pi/Desktop/images/14012025/10/13/image_14012025_10_14_06_9390.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 2.1342852115631104 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
2025-01-15 16:13:42.758987
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/30/image_15012025_00_30_17_9355.jpg', '/home/pi/Desktop/images/15012025/00/30/image_15012025_00_30_27_10366.jpg', '/home/pi/Desktop/images/15012025/00/30/image_15012025_00_30_38_10358.jpg', '/home/pi/Desktop/images/15012025/00/30/image_15012025_00_30_47_9348.jpg', '/home/pi/Desktop/images/15012025/00/30/image_15012025_00_30_57_10430.jpg', '/home/pi/Desktop/images/15012025/00/30/image_15012025_00_31_07_9335.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/30/image_15012025_00_30_17_9355.jpg
/home/pi/Desktop/images/15012025/00/30/image_15012025_00_30_27_10366.jpg
/home/pi/Desktop/images/15012025/00/30/image_15012025_00_30_38_10358.jpg
/home/pi/Desktop/images/15012025/00/30/image_15012025_00_30_47_9348.jpg
/home/pi/Desktop/images/15012025/00/30/image_15012025_00_30_57_10430.jpg
/home/pi/Desktop/images/15012025/00/30/image_15012025_00_31_07_9335.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329160785","1329160794","1329160773","1329160800","1329160789","1329160783"],"photo_ids_order":["1329160773","1329160783","1329160785","1329160789","1329160794","1329160800"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5327da985e3ab140a602e9a95a1e6b99.jpg","text":"TemporaryFile(/tmp/multipartBody27080222984562082asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954083778,"filename":"image_15012025_00_30_38_10358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e65ce7da2f48f3d9e881c2e391827653.jpg","text":"TemporaryFile(/tmp/multipartBody3767487656247015844asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954083778,"filename":"image_15012025_00_30_57_10430.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/02db4ad0a51c2d8e39c2703e47973e7d.jpg","text":"TemporaryFile(/tmp/multipartBody2678930353847758735asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954083778,"filename":"image_15012025_00_30_17_9355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8f5b4b1e9b6b40a54da2db1347302730.jpg","text":"TemporaryFile(/tmp/multipartBody7876722353751015000asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954083778,"filename":"image_15012025_00_31_07_9335.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/22a5436772b66424bd48d04e2adfe6d5.jpg","text":"TemporaryFile(/tmp/multipartBody3450171941803945794asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954083778,"filename":"image_15012025_00_30_47_9348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9f4a4def34898694ad3992dd68e682c0.jpg","text":"TemporaryFile(/tmp/multipartBody3430301712358673817asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954083778,"filename":"image_15012025_00_30_27_10366.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329160785","file1":"1329160783","file0":"1329160773","file4":"1329160794","file5":"1329160800","file3":"1329160789"},"map_files_photo_id_array":[{"photo_id":"1329160800","filename":"file5"},{"photo_id":"1329160785","filename":"file2"},{"photo_id":"1329160794","filename":"file4"},{"photo_id":"1329160783","filename":"file1"},{"photo_id":"1329160773","filename":"file0"},{"photo_id":"1329160789","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329160785":["hashtag1","hashtag2"]},{"1329160794":["hashtag1","hashtag2"]},{"1329160773":["hashtag1","hashtag2"]},{"1329160800":["hashtag1","hashtag2"]},{"1329160789":["hashtag1","hashtag2"]},{"1329160783":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329160785, 1329160794, 1329160773, 1329160800, 1329160789, 1329160783)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.7395977973938 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 15 --only_old 1
2025-01-15 16:14:32.995134
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/12/image_14012025_10_13_07_10342.jpg', '/home/pi/Desktop/images/14012025/10/13/image_14012025_10_13_16_9345.jpg', '/home/pi/Desktop/images/14012025/10/13/image_14012025_10_13_27_10407.jpg', '/home/pi/Desktop/images/14012025/10/13/image_14012025_10_13_46_10350.jpg', '/home/pi/Desktop/images/14012025/10/13/image_14012025_10_13_57_10343.jpg', '/home/pi/Desktop/images/14012025/10/13/image_14012025_10_14_06_9390.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/12/image_14012025_10_13_07_10342.jpg
/home/pi/Desktop/images/14012025/10/13/image_14012025_10_13_16_9345.jpg
/home/pi/Desktop/images/14012025/10/13/image_14012025_10_13_27_10407.jpg
/home/pi/Desktop/images/14012025/10/13/image_14012025_10_13_46_10350.jpg
/home/pi/Desktop/images/14012025/10/13/image_14012025_10_13_57_10343.jpg
/home/pi/Desktop/images/14012025/10/13/image_14012025_10_14_06_9390.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329160900","1329160863","1329160895","1329160889","1329160907","1329160904"],"photo_ids_order":["1329160863","1329160889","1329160895","1329160900","1329160904","1329160907"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9de1286700921a3866431352495eb190.jpg","text":"TemporaryFile(/tmp/multipartBody6262141672702169311asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954135450,"filename":"image_14012025_10_13_46_10350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f4603703180db6523dc6720a9027c8da.jpg","text":"TemporaryFile(/tmp/multipartBody3405513507058969525asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954135450,"filename":"image_14012025_10_13_07_10342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d9321514559d6acf62dc4f5f12da53f6.jpg","text":"TemporaryFile(/tmp/multipartBody8791292861585333484asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954135450,"filename":"image_14012025_10_13_27_10407.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/44e8a4a2b92ea1387cc48e68ea276dfe.jpg","text":"TemporaryFile(/tmp/multipartBody9047016746486054074asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954135450,"filename":"image_14012025_10_13_16_9345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8fd949ad1c71495a04e8e1f98f92bfa9.jpg","text":"TemporaryFile(/tmp/multipartBody2912815811082383819asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954135450,"filename":"image_14012025_10_14_06_9390.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d032f6b552b9ef514b2fac950edd795d.jpg","text":"TemporaryFile(/tmp/multipartBody4671313206575713500asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954135450,"filename":"image_14012025_10_13_57_10343.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329160895","file1":"1329160889","file0":"1329160863","file4":"1329160904","file5":"1329160907","file3":"1329160900"},"map_files_photo_id_array":[{"photo_id":"1329160907","filename":"file5"},{"photo_id":"1329160895","filename":"file2"},{"photo_id":"1329160904","filename":"file4"},{"photo_id":"1329160889","filename":"file1"},{"photo_id":"1329160863","filename":"file0"},{"photo_id":"1329160900","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329160900":["hashtag1","hashtag2"]},{"1329160863":["hashtag1","hashtag2"]},{"1329160895":["hashtag1","hashtag2"]},{"1329160889":["hashtag1","hashtag2"]},{"1329160907":["hashtag1","hashtag2"]},{"1329160904":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329160900, 1329160863, 1329160895, 1329160889, 1329160907, 1329160904)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.25170826911926 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 15 --only_old 1
2025-01-15 16:15:33.306352
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/14/image_14012025_10_14_17_10370.jpg', '/home/pi/Desktop/images/14012025/10/14/image_14012025_10_14_27_10336.jpg', '/home/pi/Desktop/images/14012025/10/14/image_14012025_10_14_36_9375.jpg', '/home/pi/Desktop/images/14012025/10/14/image_14012025_10_14_47_10402.jpg', '/home/pi/Desktop/images/14012025/10/14/image_14012025_10_14_56_9397.jpg', '/home/pi/Desktop/images/14012025/10/14/image_14012025_10_15_06_10438.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/14/image_14012025_10_14_17_10370.jpg
/home/pi/Desktop/images/14012025/10/14/image_14012025_10_14_27_10336.jpg
/home/pi/Desktop/images/14012025/10/14/image_14012025_10_14_36_9375.jpg
/home/pi/Desktop/images/14012025/10/14/image_14012025_10_14_47_10402.jpg
/home/pi/Desktop/images/14012025/10/14/image_14012025_10_14_56_9397.jpg
/home/pi/Desktop/images/14012025/10/14/image_14012025_10_15_06_10438.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329161141","1329161078","1329161057","1329160937","1329160919","1329160924"],"photo_ids_order":["1329160919","1329160924","1329160937","1329161057","1329161078","1329161141"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7e8e08eddb08b134a60ea57e4fff3bd5.jpg","text":"TemporaryFile(/tmp/multipartBody5723784193048139331asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954195854,"filename":"image_14012025_10_15_06_10438.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3b937bbef3ae730bdba2482169709a76.jpg","text":"TemporaryFile(/tmp/multipartBody2365633565398433477asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954195854,"filename":"image_14012025_10_14_56_9397.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bea06cad215af51a732bb233d71ef378.jpg","text":"TemporaryFile(/tmp/multipartBody5567333970305312050asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954195854,"filename":"image_14012025_10_14_47_10402.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/97dbaea15a229f5bd781cec623a9d105.jpg","text":"TemporaryFile(/tmp/multipartBody4683574831532213299asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954195854,"filename":"image_14012025_10_14_36_9375.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5d9ad6cb00f2e6ef91a0d01d3be2f9b2.jpg","text":"TemporaryFile(/tmp/multipartBody4841879998629675491asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954195854,"filename":"image_14012025_10_14_17_10370.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c61a0d573134cb883dadccf472273bd1.jpg","text":"TemporaryFile(/tmp/multipartBody3094590844148174740asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954195854,"filename":"image_14012025_10_14_27_10336.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329160937","file1":"1329160924","file0":"1329160919","file4":"1329161078","file5":"1329161141","file3":"1329161057"},"map_files_photo_id_array":[{"photo_id":"1329161141","filename":"file5"},{"photo_id":"1329160937","filename":"file2"},{"photo_id":"1329161078","filename":"file4"},{"photo_id":"1329160924","filename":"file1"},{"photo_id":"1329160919","filename":"file0"},{"photo_id":"1329161057","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329161141":["hashtag1","hashtag2"]},{"1329161078":["hashtag1","hashtag2"]},{"1329161057":["hashtag1","hashtag2"]},{"1329160937":["hashtag1","hashtag2"]},{"1329160919":["hashtag1","hashtag2"]},{"1329160924":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329161141, 1329161078, 1329161057, 1329160937, 1329160919, 1329160924)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.14062786102295 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 15 --only_old 1
2025-01-15 16:16:32.394466
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/15/image_14012025_10_15_17_10332.jpg', '/home/pi/Desktop/images/14012025/10/15/image_14012025_10_15_26_9445.jpg', '/home/pi/Desktop/images/14012025/10/15/image_14012025_10_15_37_10344.jpg', '/home/pi/Desktop/images/14012025/10/15/image_14012025_10_15_47_10414.jpg', '/home/pi/Desktop/images/14012025/10/15/image_14012025_10_15_56_9355.jpg', '/home/pi/Desktop/images/14012025/10/15/image_14012025_10_16_07_10326.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/15/image_14012025_10_15_17_10332.jpg
/home/pi/Desktop/images/14012025/10/15/image_14012025_10_15_26_9445.jpg
/home/pi/Desktop/images/14012025/10/15/image_14012025_10_15_37_10344.jpg
/home/pi/Desktop/images/14012025/10/15/image_14012025_10_15_47_10414.jpg
/home/pi/Desktop/images/14012025/10/15/image_14012025_10_15_56_9355.jpg
/home/pi/Desktop/images/14012025/10/15/image_14012025_10_16_07_10326.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329161250","1329161253","1329161219","1329161260","1329161224","1329161256"],"photo_ids_order":["1329161219","1329161224","1329161250","1329161253","1329161256","1329161260"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/14af09655cf9a0d6af9fe0bae2330203.jpg","text":"TemporaryFile(/tmp/multipartBody5039082185984595648asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954254935,"filename":"image_14012025_10_15_37_10344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bdfdceae0ce2c01ac7e832906c75253c.jpg","text":"TemporaryFile(/tmp/multipartBody3828479948499051125asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954254935,"filename":"image_14012025_10_15_47_10414.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/363051be6eae42df10d30e307ce5c2fd.jpg","text":"TemporaryFile(/tmp/multipartBody1531451534260453047asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954254935,"filename":"image_14012025_10_15_17_10332.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4632cb5770d0768a1b0e32457fa3605a.jpg","text":"TemporaryFile(/tmp/multipartBody7823143932971976531asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954254935,"filename":"image_14012025_10_16_07_10326.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/134a83a4c8a4fff324f7cd24de456f91.jpg","text":"TemporaryFile(/tmp/multipartBody2023677240301322250asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954254935,"filename":"image_14012025_10_15_26_9445.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/88cd1ceb8383cd10e8c86509be7f4105.jpg","text":"TemporaryFile(/tmp/multipartBody1226498749525534387asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954254935,"filename":"image_14012025_10_15_56_9355.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329161250","file1":"1329161224","file0":"1329161219","file4":"1329161256","file5":"1329161260","file3":"1329161253"},"map_files_photo_id_array":[{"photo_id":"1329161260","filename":"file5"},{"photo_id":"1329161250","filename":"file2"},{"photo_id":"1329161256","filename":"file4"},{"photo_id":"1329161224","filename":"file1"},{"photo_id":"1329161219","filename":"file0"},{"photo_id":"1329161253","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329161250":["hashtag1","hashtag2"]},{"1329161253":["hashtag1","hashtag2"]},{"1329161219":["hashtag1","hashtag2"]},{"1329161260":["hashtag1","hashtag2"]},{"1329161224":["hashtag1","hashtag2"]},{"1329161256":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329161250, 1329161253, 1329161219, 1329161260, 1329161224, 1329161256)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.38329577445984 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 15 --only_old 1
2025-01-15 16:17:32.661394
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/16/image_14012025_10_16_16_9337.jpg', '/home/pi/Desktop/images/14012025/10/16/image_14012025_10_16_26_10334.jpg', '/home/pi/Desktop/images/14012025/10/16/image_14012025_10_16_37_10350.jpg', '/home/pi/Desktop/images/14012025/10/16/image_14012025_10_16_46_9353.jpg', '/home/pi/Desktop/images/14012025/10/16/image_14012025_10_16_56_10394.jpg', '/home/pi/Desktop/images/14012025/10/16/image_14012025_10_17_07_10339.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/16/image_14012025_10_16_16_9337.jpg
/home/pi/Desktop/images/14012025/10/16/image_14012025_10_16_26_10334.jpg
/home/pi/Desktop/images/14012025/10/16/image_14012025_10_16_37_10350.jpg
/home/pi/Desktop/images/14012025/10/16/image_14012025_10_16_46_9353.jpg
/home/pi/Desktop/images/14012025/10/16/image_14012025_10_16_56_10394.jpg
/home/pi/Desktop/images/14012025/10/16/image_14012025_10_17_07_10339.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329161290","1329161284","1329161278","1329161287","1329161275","1329161329"],"photo_ids_order":["1329161275","1329161278","1329161284","1329161287","1329161290","1329161329"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e3547b51f7a8bcd90902eee8dfb81f1b.jpg","text":"TemporaryFile(/tmp/multipartBody3568346102122114677asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954315223,"filename":"image_14012025_10_16_56_10394.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/516f2aca25deb4080292b76123083c60.jpg","text":"TemporaryFile(/tmp/multipartBody4963255893654518249asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954315223,"filename":"image_14012025_10_16_37_10350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d6f4069f61f6314a88c2ffa9c349bac0.jpg","text":"TemporaryFile(/tmp/multipartBody3350595991789089998asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954315223,"filename":"image_14012025_10_16_26_10334.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f42ffc433a550e16e2376f6f98290e5a.jpg","text":"TemporaryFile(/tmp/multipartBody4270126621200600162asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954315223,"filename":"image_14012025_10_16_46_9353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4b13940149043b2c3fda0dc0db3b2f0f.jpg","text":"TemporaryFile(/tmp/multipartBody2931337134615214053asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954315223,"filename":"image_14012025_10_16_16_9337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2964a5e65f840c77805d13438479643f.jpg","text":"TemporaryFile(/tmp/multipartBody3853492676002595368asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954315223,"filename":"image_14012025_10_17_07_10339.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329161284","file1":"1329161278","file0":"1329161275","file4":"1329161290","file5":"1329161329","file3":"1329161287"},"map_files_photo_id_array":[{"photo_id":"1329161329","filename":"file5"},{"photo_id":"1329161284","filename":"file2"},{"photo_id":"1329161290","filename":"file4"},{"photo_id":"1329161278","filename":"file1"},{"photo_id":"1329161275","filename":"file0"},{"photo_id":"1329161287","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329161290":["hashtag1","hashtag2"]},{"1329161284":["hashtag1","hashtag2"]},{"1329161278":["hashtag1","hashtag2"]},{"1329161287":["hashtag1","hashtag2"]},{"1329161275":["hashtag1","hashtag2"]},{"1329161329":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329161290, 1329161284, 1329161278, 1329161287, 1329161275, 1329161329)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.325055837631226 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 15 --only_old 1
2025-01-15 16:18:33.011450
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/17/image_14012025_10_17_16_9423.jpg', '/home/pi/Desktop/images/14012025/10/17/image_14012025_10_17_27_10376.jpg', '/home/pi/Desktop/images/14012025/10/17/image_14012025_10_17_37_10344.jpg', '/home/pi/Desktop/images/14012025/10/17/image_14012025_10_17_46_9445.jpg', '/home/pi/Desktop/images/14012025/10/17/image_14012025_10_17_57_10332.jpg', '/home/pi/Desktop/images/14012025/10/17/image_14012025_10_18_06_9491.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/17/image_14012025_10_17_16_9423.jpg
/home/pi/Desktop/images/14012025/10/17/image_14012025_10_17_27_10376.jpg
/home/pi/Desktop/images/14012025/10/17/image_14012025_10_17_37_10344.jpg
/home/pi/Desktop/images/14012025/10/17/image_14012025_10_17_46_9445.jpg
/home/pi/Desktop/images/14012025/10/17/image_14012025_10_17_57_10332.jpg
/home/pi/Desktop/images/14012025/10/17/image_14012025_10_18_06_9491.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 2.1187973022460938 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
2025-01-15 16:18:42.888106
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/31/image_15012025_00_31_17_10454.jpg', '/home/pi/Desktop/images/15012025/00/31/image_15012025_00_31_27_10359.jpg', '/home/pi/Desktop/images/15012025/00/31/image_15012025_00_31_37_9345.jpg', '/home/pi/Desktop/images/15012025/00/31/image_15012025_00_31_47_10403.jpg', '/home/pi/Desktop/images/15012025/00/31/image_15012025_00_31_57_9364.jpg', '/home/pi/Desktop/images/15012025/00/31/image_15012025_00_32_07_10346.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/31/image_15012025_00_31_17_10454.jpg
/home/pi/Desktop/images/15012025/00/31/image_15012025_00_31_27_10359.jpg
/home/pi/Desktop/images/15012025/00/31/image_15012025_00_31_37_9345.jpg
/home/pi/Desktop/images/15012025/00/31/image_15012025_00_31_47_10403.jpg
/home/pi/Desktop/images/15012025/00/31/image_15012025_00_31_57_9364.jpg
/home/pi/Desktop/images/15012025/00/31/image_15012025_00_32_07_10346.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329161436","1329161465","1329161447","1329161443","1329161467","1329161449"],"photo_ids_order":["1329161436","1329161443","1329161447","1329161449","1329161465","1329161467"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/de3cd20f190d485badf980750d4aa2ac.jpg","text":"TemporaryFile(/tmp/multipartBody483317194948337123asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954383875,"filename":"image_15012025_00_31_17_10454.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/624d97dd224e88287bcc10da7cfbc1c7.jpg","text":"TemporaryFile(/tmp/multipartBody6759899682120386703asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954383875,"filename":"image_15012025_00_31_57_9364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e48a6b8673b0e373d984cfa2bb82720a.jpg","text":"TemporaryFile(/tmp/multipartBody6770725967591574510asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954383875,"filename":"image_15012025_00_31_37_9345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a6728fefe3ad3baa0a6fe6b390b1db59.jpg","text":"TemporaryFile(/tmp/multipartBody2751949889907967243asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954383875,"filename":"image_15012025_00_31_27_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1a1a13fc3a4511543e3216d5991b6cc4.jpg","text":"TemporaryFile(/tmp/multipartBody1832240366457977774asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954383875,"filename":"image_15012025_00_32_07_10346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6db51d537089d8bdb65394173483bd07.jpg","text":"TemporaryFile(/tmp/multipartBody2887713781141018297asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954383875,"filename":"image_15012025_00_31_47_10403.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329161447","file1":"1329161443","file0":"1329161436","file4":"1329161465","file5":"1329161467","file3":"1329161449"},"map_files_photo_id_array":[{"photo_id":"1329161467","filename":"file5"},{"photo_id":"1329161447","filename":"file2"},{"photo_id":"1329161465","filename":"file4"},{"photo_id":"1329161443","filename":"file1"},{"photo_id":"1329161436","filename":"file0"},{"photo_id":"1329161449","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329161436":["hashtag1","hashtag2"]},{"1329161465":["hashtag1","hashtag2"]},{"1329161447":["hashtag1","hashtag2"]},{"1329161443":["hashtag1","hashtag2"]},{"1329161467":["hashtag1","hashtag2"]},{"1329161449":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329161436, 1329161465, 1329161447, 1329161443, 1329161467, 1329161449)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.10881757736206 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 15 --only_old 1
2025-01-15 16:19:33.181660
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/17/image_14012025_10_17_16_9423.jpg', '/home/pi/Desktop/images/14012025/10/17/image_14012025_10_17_27_10376.jpg', '/home/pi/Desktop/images/14012025/10/17/image_14012025_10_17_37_10344.jpg', '/home/pi/Desktop/images/14012025/10/17/image_14012025_10_17_46_9445.jpg', '/home/pi/Desktop/images/14012025/10/17/image_14012025_10_17_57_10332.jpg', '/home/pi/Desktop/images/14012025/10/17/image_14012025_10_18_06_9491.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/17/image_14012025_10_17_16_9423.jpg
/home/pi/Desktop/images/14012025/10/17/image_14012025_10_17_27_10376.jpg
/home/pi/Desktop/images/14012025/10/17/image_14012025_10_17_37_10344.jpg
/home/pi/Desktop/images/14012025/10/17/image_14012025_10_17_46_9445.jpg
/home/pi/Desktop/images/14012025/10/17/image_14012025_10_17_57_10332.jpg
/home/pi/Desktop/images/14012025/10/17/image_14012025_10_18_06_9491.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329161631","1329161628","1329161621","1329161587","1329161606","1329161632"],"photo_ids_order":["1329161587","1329161606","1329161621","1329161628","1329161631","1329161632"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/04be8af5436813249fec0ecf95753c47.jpg","text":"TemporaryFile(/tmp/multipartBody6533459276767713334asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954435639,"filename":"image_14012025_10_17_57_10332.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a3cebe43105b2b2b3d68868f5408a08a.jpg","text":"TemporaryFile(/tmp/multipartBody7375498132319896238asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954435639,"filename":"image_14012025_10_17_46_9445.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/80b59c27c823ec1118e69ee5568ec9eb.jpg","text":"TemporaryFile(/tmp/multipartBody5578638898213524501asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954435639,"filename":"image_14012025_10_17_37_10344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/da71c8ff3479471f0c062a4713df4dff.jpg","text":"TemporaryFile(/tmp/multipartBody8324674481774196258asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954435639,"filename":"image_14012025_10_17_16_9423.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8fd4c19e459654e8715d90484b46574f.jpg","text":"TemporaryFile(/tmp/multipartBody3757742686115048852asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954435639,"filename":"image_14012025_10_17_27_10376.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e82af83a8789856db01dc2b4f39af007.jpg","text":"TemporaryFile(/tmp/multipartBody5003889500957253164asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954435639,"filename":"image_14012025_10_18_06_9491.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329161621","file1":"1329161606","file0":"1329161587","file4":"1329161631","file5":"1329161632","file3":"1329161628"},"map_files_photo_id_array":[{"photo_id":"1329161632","filename":"file5"},{"photo_id":"1329161621","filename":"file2"},{"photo_id":"1329161631","filename":"file4"},{"photo_id":"1329161606","filename":"file1"},{"photo_id":"1329161587","filename":"file0"},{"photo_id":"1329161628","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329161631":["hashtag1","hashtag2"]},{"1329161628":["hashtag1","hashtag2"]},{"1329161621":["hashtag1","hashtag2"]},{"1329161587":["hashtag1","hashtag2"]},{"1329161606":["hashtag1","hashtag2"]},{"1329161632":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329161631, 1329161628, 1329161621, 1329161587, 1329161606, 1329161632)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.058345317840576 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 15 --only_old 1
2025-01-15 16:20:32.302118
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/18/image_14012025_10_18_17_10337.jpg', '/home/pi/Desktop/images/14012025/10/18/image_14012025_10_18_27_10361.jpg', '/home/pi/Desktop/images/14012025/10/18/image_14012025_10_18_36_9411.jpg', '/home/pi/Desktop/images/14012025/10/18/image_14012025_10_18_56_9441.jpg', '/home/pi/Desktop/images/14012025/10/18/image_14012025_10_19_07_10445.jpg', '/home/pi/Desktop/images/14012025/10/19/image_14012025_10_19_16_9386.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/18/image_14012025_10_18_17_10337.jpg
/home/pi/Desktop/images/14012025/10/18/image_14012025_10_18_27_10361.jpg
/home/pi/Desktop/images/14012025/10/18/image_14012025_10_18_36_9411.jpg
/home/pi/Desktop/images/14012025/10/18/image_14012025_10_18_56_9441.jpg
/home/pi/Desktop/images/14012025/10/18/image_14012025_10_19_07_10445.jpg
/home/pi/Desktop/images/14012025/10/19/image_14012025_10_19_16_9386.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329161690","1329161714","1329161717","1329161680","1329161674","1329161668"],"photo_ids_order":["1329161668","1329161674","1329161680","1329161690","1329161714","1329161717"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8d08ee8f3088746973bd81bb35b38fdf.jpg","text":"TemporaryFile(/tmp/multipartBody1335773528499270144asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954494839,"filename":"image_14012025_10_18_56_9441.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/743df3334686980c969caa1883f40cee.jpg","text":"TemporaryFile(/tmp/multipartBody4716309021552169905asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954494839,"filename":"image_14012025_10_19_07_10445.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6b1d3f70d6615bb20814b7dec405ee9e.jpg","text":"TemporaryFile(/tmp/multipartBody2934248922585729407asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954494839,"filename":"image_14012025_10_19_16_9386.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cb6902e49b1d7f6ad3bf523effa75e48.jpg","text":"TemporaryFile(/tmp/multipartBody550696629928710257asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954494839,"filename":"image_14012025_10_18_36_9411.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/47bf7870bf5e853539bc86b26af2a376.jpg","text":"TemporaryFile(/tmp/multipartBody7267281930880102430asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954494839,"filename":"image_14012025_10_18_27_10361.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/da00aedb4c0e235f4a4680d9bbb084a6.jpg","text":"TemporaryFile(/tmp/multipartBody2363701027782752470asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954494839,"filename":"image_14012025_10_18_17_10337.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329161680","file1":"1329161674","file0":"1329161668","file4":"1329161714","file5":"1329161717","file3":"1329161690"},"map_files_photo_id_array":[{"photo_id":"1329161717","filename":"file5"},{"photo_id":"1329161680","filename":"file2"},{"photo_id":"1329161714","filename":"file4"},{"photo_id":"1329161674","filename":"file1"},{"photo_id":"1329161668","filename":"file0"},{"photo_id":"1329161690","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329161690":["hashtag1","hashtag2"]},{"1329161714":["hashtag1","hashtag2"]},{"1329161717":["hashtag1","hashtag2"]},{"1329161680":["hashtag1","hashtag2"]},{"1329161674":["hashtag1","hashtag2"]},{"1329161668":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329161690, 1329161714, 1329161717, 1329161680, 1329161674, 1329161668)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.15261387825012 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 15 --only_old 1
2025-01-15 16:21:32.704045
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/19/image_14012025_10_19_26_10399.jpg', '/home/pi/Desktop/images/14012025/10/19/image_14012025_10_19_37_10355.jpg', '/home/pi/Desktop/images/14012025/10/19/image_14012025_10_19_46_9511.jpg', '/home/pi/Desktop/images/14012025/10/19/image_14012025_10_19_57_10396.jpg', '/home/pi/Desktop/images/14012025/10/19/image_14012025_10_20_06_9470.jpg', '/home/pi/Desktop/images/14012025/10/20/image_14012025_10_20_17_10344.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/19/image_14012025_10_19_26_10399.jpg
/home/pi/Desktop/images/14012025/10/19/image_14012025_10_19_37_10355.jpg
/home/pi/Desktop/images/14012025/10/19/image_14012025_10_19_46_9511.jpg
/home/pi/Desktop/images/14012025/10/19/image_14012025_10_19_57_10396.jpg
/home/pi/Desktop/images/14012025/10/19/image_14012025_10_20_06_9470.jpg
/home/pi/Desktop/images/14012025/10/20/image_14012025_10_20_17_10344.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329161754","1329161733","1329161750","1329161740","1329161752","1329161745"],"photo_ids_order":["1329161733","1329161740","1329161745","1329161750","1329161752","1329161754"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a6cef506130dc74d0a57f18529d7a1b2.jpg","text":"TemporaryFile(/tmp/multipartBody7028743374556356708asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954555236,"filename":"image_14012025_10_20_17_10344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cb730dbfa556a0b92e038b3b3ddb2b21.jpg","text":"TemporaryFile(/tmp/multipartBody5379983731340046475asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954555236,"filename":"image_14012025_10_19_26_10399.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0cdb93354a11b9968871154b55620cdd.jpg","text":"TemporaryFile(/tmp/multipartBody6947384483125484985asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954555236,"filename":"image_14012025_10_19_57_10396.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b9bba33b0f5210ecc605dcbee005fa54.jpg","text":"TemporaryFile(/tmp/multipartBody6926847732115537460asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954555236,"filename":"image_14012025_10_19_37_10355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d8ab9be71dc4b72250c1f3cbe76747d6.jpg","text":"TemporaryFile(/tmp/multipartBody3960711970261325379asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954555236,"filename":"image_14012025_10_20_06_9470.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9d6da3d40438641a9812eff75093600d.jpg","text":"TemporaryFile(/tmp/multipartBody8936120105367534788asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954555236,"filename":"image_14012025_10_19_46_9511.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329161745","file1":"1329161740","file0":"1329161733","file4":"1329161752","file5":"1329161754","file3":"1329161750"},"map_files_photo_id_array":[{"photo_id":"1329161754","filename":"file5"},{"photo_id":"1329161745","filename":"file2"},{"photo_id":"1329161752","filename":"file4"},{"photo_id":"1329161740","filename":"file1"},{"photo_id":"1329161733","filename":"file0"},{"photo_id":"1329161750","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329161754":["hashtag1","hashtag2"]},{"1329161733":["hashtag1","hashtag2"]},{"1329161750":["hashtag1","hashtag2"]},{"1329161740":["hashtag1","hashtag2"]},{"1329161752":["hashtag1","hashtag2"]},{"1329161745":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329161754, 1329161733, 1329161750, 1329161740, 1329161752, 1329161745)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.29753065109253 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 15 --only_old 1
2025-01-15 16:22:32.833110
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/20/image_14012025_10_20_27_10341.jpg', '/home/pi/Desktop/images/14012025/10/20/image_14012025_10_20_36_9438.jpg', '/home/pi/Desktop/images/14012025/10/20/image_14012025_10_20_47_10358.jpg', '/home/pi/Desktop/images/14012025/10/20/image_14012025_10_20_57_10341.jpg', '/home/pi/Desktop/images/14012025/10/20/image_14012025_10_21_06_9365.jpg', '/home/pi/Desktop/images/14012025/10/21/image_14012025_10_21_17_10344.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/20/image_14012025_10_20_27_10341.jpg
/home/pi/Desktop/images/14012025/10/20/image_14012025_10_20_36_9438.jpg
/home/pi/Desktop/images/14012025/10/20/image_14012025_10_20_47_10358.jpg
/home/pi/Desktop/images/14012025/10/20/image_14012025_10_20_57_10341.jpg
/home/pi/Desktop/images/14012025/10/20/image_14012025_10_21_06_9365.jpg
/home/pi/Desktop/images/14012025/10/21/image_14012025_10_21_17_10344.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329161855","1329161810","1329161840","1329161834","1329161816","1329161851"],"photo_ids_order":["1329161810","1329161816","1329161834","1329161840","1329161851","1329161855"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/829f823072fb1a2e497e4b42f1595514.jpg","text":"TemporaryFile(/tmp/multipartBody850396761423242264asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954615375,"filename":"image_14012025_10_21_17_10344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/43fc9f15e6be42712c4381599cc22783.jpg","text":"TemporaryFile(/tmp/multipartBody3177765933738464474asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954615375,"filename":"image_14012025_10_20_27_10341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/79b81f05bb473bebcb69f67bca23487c.jpg","text":"TemporaryFile(/tmp/multipartBody2347357651931124127asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954615375,"filename":"image_14012025_10_20_57_10341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/007d175bc694c27fee1b10f662b5a4f7.jpg","text":"TemporaryFile(/tmp/multipartBody8424527176432205206asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954615375,"filename":"image_14012025_10_20_47_10358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f44e206383c3067b67e0783c51588759.jpg","text":"TemporaryFile(/tmp/multipartBody5069329363747944239asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954615375,"filename":"image_14012025_10_20_36_9438.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9e0f985281faf1153ad1c0734ec8434b.jpg","text":"TemporaryFile(/tmp/multipartBody8721336912842345588asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954615375,"filename":"image_14012025_10_21_06_9365.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329161834","file1":"1329161816","file0":"1329161810","file4":"1329161851","file5":"1329161855","file3":"1329161840"},"map_files_photo_id_array":[{"photo_id":"1329161855","filename":"file5"},{"photo_id":"1329161834","filename":"file2"},{"photo_id":"1329161851","filename":"file4"},{"photo_id":"1329161816","filename":"file1"},{"photo_id":"1329161810","filename":"file0"},{"photo_id":"1329161840","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329161855":["hashtag1","hashtag2"]},{"1329161810":["hashtag1","hashtag2"]},{"1329161840":["hashtag1","hashtag2"]},{"1329161834":["hashtag1","hashtag2"]},{"1329161816":["hashtag1","hashtag2"]},{"1329161851":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329161855, 1329161810, 1329161840, 1329161834, 1329161816, 1329161851)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 48.34381866455078 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 15 --only_old 1
2025-01-15 16:23:33.043907
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/21/image_14012025_10_21_26_9355.jpg', '/home/pi/Desktop/images/14012025/10/21/image_14012025_10_21_37_10416.jpg', '/home/pi/Desktop/images/14012025/10/21/image_14012025_10_21_47_10358.jpg', '/home/pi/Desktop/images/14012025/10/21/image_14012025_10_21_56_9395.jpg', '/home/pi/Desktop/images/14012025/10/21/image_14012025_10_22_07_10348.jpg', '/home/pi/Desktop/images/14012025/10/22/image_14012025_10_22_17_10392.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/21/image_14012025_10_21_26_9355.jpg
/home/pi/Desktop/images/14012025/10/21/image_14012025_10_21_37_10416.jpg
/home/pi/Desktop/images/14012025/10/21/image_14012025_10_21_47_10358.jpg
/home/pi/Desktop/images/14012025/10/21/image_14012025_10_21_56_9395.jpg
/home/pi/Desktop/images/14012025/10/21/image_14012025_10_22_07_10348.jpg
/home/pi/Desktop/images/14012025/10/22/image_14012025_10_22_17_10392.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329161874","1329161890","1329161884","1329161878","1329161974","1329161929"],"photo_ids_order":["1329161874","1329161878","1329161884","1329161890","1329161929","1329161974"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fe3be448c7b6037b78ccb073a06479aa.jpg","text":"TemporaryFile(/tmp/multipartBody6326724255638903072asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954675585,"filename":"image_14012025_10_21_26_9355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c81063cfb523b390e94cd569a7848b6f.jpg","text":"TemporaryFile(/tmp/multipartBody6123272161379447049asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954675585,"filename":"image_14012025_10_21_56_9395.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4d588af96ad7225820297a4e954ea5ea.jpg","text":"TemporaryFile(/tmp/multipartBody8745454548635600648asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954675585,"filename":"image_14012025_10_21_47_10358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dc40e71e975b670bbb31eea37bf8e7ce.jpg","text":"TemporaryFile(/tmp/multipartBody132498271595788688asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954675585,"filename":"image_14012025_10_21_37_10416.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/10fc01caf9abdc31c4275185193ad94d.jpg","text":"TemporaryFile(/tmp/multipartBody7210701759617022284asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954675585,"filename":"image_14012025_10_22_17_10392.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e4cabdf77563125c13724a4f48dbfde6.jpg","text":"TemporaryFile(/tmp/multipartBody8676517491213297355asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954675585,"filename":"image_14012025_10_22_07_10348.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329161884","file1":"1329161878","file0":"1329161874","file4":"1329161929","file5":"1329161974","file3":"1329161890"},"map_files_photo_id_array":[{"photo_id":"1329161974","filename":"file5"},{"photo_id":"1329161884","filename":"file2"},{"photo_id":"1329161929","filename":"file4"},{"photo_id":"1329161878","filename":"file1"},{"photo_id":"1329161874","filename":"file0"},{"photo_id":"1329161890","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329161874":["hashtag1","hashtag2"]},{"1329161890":["hashtag1","hashtag2"]},{"1329161884":["hashtag1","hashtag2"]},{"1329161878":["hashtag1","hashtag2"]},{"1329161974":["hashtag1","hashtag2"]},{"1329161929":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329161874, 1329161890, 1329161884, 1329161878, 1329161974, 1329161929)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 48.89860558509827 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 15 --only_old 1
2025-01-15 16:24:32.330207
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/22/image_14012025_10_22_26_9368.jpg', '/home/pi/Desktop/images/14012025/10/22/image_14012025_10_22_37_10343.jpg', '/home/pi/Desktop/images/14012025/10/22/image_14012025_10_22_46_9340.jpg', '/home/pi/Desktop/images/14012025/10/22/image_14012025_10_22_56_10442.jpg', '/home/pi/Desktop/images/14012025/10/22/image_14012025_10_23_07_10339.jpg', '/home/pi/Desktop/images/14012025/10/23/image_14012025_10_23_16_9432.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/22/image_14012025_10_22_26_9368.jpg
/home/pi/Desktop/images/14012025/10/22/image_14012025_10_22_37_10343.jpg
/home/pi/Desktop/images/14012025/10/22/image_14012025_10_22_46_9340.jpg
/home/pi/Desktop/images/14012025/10/22/image_14012025_10_22_56_10442.jpg
/home/pi/Desktop/images/14012025/10/22/image_14012025_10_23_07_10339.jpg
/home/pi/Desktop/images/14012025/10/23/image_14012025_10_23_16_9432.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329162053","1329162026","1329162040","1329162031","1329162051","1329162048"],"photo_ids_order":["1329162026","1329162031","1329162040","1329162048","1329162051","1329162053"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5bc211c0258710783e0208268699c625.jpg","text":"TemporaryFile(/tmp/multipartBody2448207720770728729asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954734862,"filename":"image_14012025_10_23_16_9432.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0a40e9d3854a942f8a1e9cb643f1f353.jpg","text":"TemporaryFile(/tmp/multipartBody2598614360419484189asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954734862,"filename":"image_14012025_10_22_26_9368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ddec249b2ae1397c08ec83acc2c0b549.jpg","text":"TemporaryFile(/tmp/multipartBody5293734301558691791asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954734862,"filename":"image_14012025_10_22_46_9340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f3b99c08d1a89d7c3320a82936678d95.jpg","text":"TemporaryFile(/tmp/multipartBody8746042327533185719asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954734862,"filename":"image_14012025_10_22_37_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/619d8649fb2ed7ad1ff26422b0111a08.jpg","text":"TemporaryFile(/tmp/multipartBody260974835177331677asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954734862,"filename":"image_14012025_10_23_07_10339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d647f044000840713f809eec88e76d42.jpg","text":"TemporaryFile(/tmp/multipartBody5442367806819923403asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954734862,"filename":"image_14012025_10_22_56_10442.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329162040","file1":"1329162031","file0":"1329162026","file4":"1329162051","file5":"1329162053","file3":"1329162048"},"map_files_photo_id_array":[{"photo_id":"1329162053","filename":"file5"},{"photo_id":"1329162040","filename":"file2"},{"photo_id":"1329162051","filename":"file4"},{"photo_id":"1329162031","filename":"file1"},{"photo_id":"1329162026","filename":"file0"},{"photo_id":"1329162048","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329162053":["hashtag1","hashtag2"]},{"1329162026":["hashtag1","hashtag2"]},{"1329162040":["hashtag1","hashtag2"]},{"1329162031":["hashtag1","hashtag2"]},{"1329162051":["hashtag1","hashtag2"]},{"1329162048":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329162053, 1329162026, 1329162040, 1329162031, 1329162051, 1329162048)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.25322651863098 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 15 --only_old 1
2025-01-15 16:25:32.650953
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/23/image_14012025_10_23_27_10395.jpg', '/home/pi/Desktop/images/14012025/10/23/image_14012025_10_23_37_10334.jpg', '/home/pi/Desktop/images/14012025/10/23/image_14012025_10_23_46_9417.jpg', '/home/pi/Desktop/images/14012025/10/24/image_14012025_10_24_27_10372.jpg', '/home/pi/Desktop/images/14012025/10/24/image_14012025_10_24_36_9435.jpg', '/home/pi/Desktop/images/14012025/10/24/image_14012025_10_24_47_10348.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/23/image_14012025_10_23_27_10395.jpg
/home/pi/Desktop/images/14012025/10/23/image_14012025_10_23_37_10334.jpg
/home/pi/Desktop/images/14012025/10/23/image_14012025_10_23_46_9417.jpg
/home/pi/Desktop/images/14012025/10/24/image_14012025_10_24_27_10372.jpg
/home/pi/Desktop/images/14012025/10/24/image_14012025_10_24_36_9435.jpg
/home/pi/Desktop/images/14012025/10/24/image_14012025_10_24_47_10348.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329162086","1329162071","1329162089","1329162082","1329162076","1329162093"],"photo_ids_order":["1329162071","1329162076","1329162082","1329162086","1329162089","1329162093"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9ae47de00f44eecff8b67ab8284f1846.jpg","text":"TemporaryFile(/tmp/multipartBody3374054488491863969asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954795202,"filename":"image_14012025_10_24_27_10372.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d3915ad3402fbdd7bdcbdf4455e874d8.jpg","text":"TemporaryFile(/tmp/multipartBody7801835735530396409asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954795202,"filename":"image_14012025_10_23_27_10395.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c928d24c0e183fb9f6774aba346c544f.jpg","text":"TemporaryFile(/tmp/multipartBody8440735409376096444asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954795202,"filename":"image_14012025_10_24_36_9435.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6835850ac80d9c3b6b9126890dabe582.jpg","text":"TemporaryFile(/tmp/multipartBody6110930443399909821asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954795202,"filename":"image_14012025_10_23_46_9417.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f00f409b74743ca4753de1b2092405b9.jpg","text":"TemporaryFile(/tmp/multipartBody8867923555957397726asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954795202,"filename":"image_14012025_10_23_37_10334.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/20598cbeaa395c136b0bf3ac58d652ee.jpg","text":"TemporaryFile(/tmp/multipartBody1988006345122698775asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954795202,"filename":"image_14012025_10_24_47_10348.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329162082","file1":"1329162076","file0":"1329162071","file4":"1329162089","file5":"1329162093","file3":"1329162086"},"map_files_photo_id_array":[{"photo_id":"1329162093","filename":"file5"},{"photo_id":"1329162082","filename":"file2"},{"photo_id":"1329162089","filename":"file4"},{"photo_id":"1329162076","filename":"file1"},{"photo_id":"1329162071","filename":"file0"},{"photo_id":"1329162086","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329162086":["hashtag1","hashtag2"]},{"1329162071":["hashtag1","hashtag2"]},{"1329162089":["hashtag1","hashtag2"]},{"1329162082":["hashtag1","hashtag2"]},{"1329162076":["hashtag1","hashtag2"]},{"1329162093":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329162086, 1329162071, 1329162089, 1329162082, 1329162076, 1329162093)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 51.70100665092468 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 15 --only_old 1
2025-01-15 16:26:32.768288
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/24/image_14012025_10_25_06_10362.jpg', '/home/pi/Desktop/images/14012025/10/25/image_14012025_10_25_17_10330.jpg', '/home/pi/Desktop/images/14012025/10/25/image_14012025_10_25_27_10078.jpg', '/home/pi/Desktop/images/14012025/10/25/image_14012025_10_25_47_10445.jpg', '/home/pi/Desktop/images/14012025/10/25/image_14012025_10_25_56_9397.jpg', '/home/pi/Desktop/images/14012025/10/25/image_14012025_10_26_07_10347.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/24/image_14012025_10_25_06_10362.jpg
/home/pi/Desktop/images/14012025/10/25/image_14012025_10_25_17_10330.jpg
/home/pi/Desktop/images/14012025/10/25/image_14012025_10_25_27_10078.jpg
/home/pi/Desktop/images/14012025/10/25/image_14012025_10_25_47_10445.jpg
/home/pi/Desktop/images/14012025/10/25/image_14012025_10_25_56_9397.jpg
/home/pi/Desktop/images/14012025/10/25/image_14012025_10_26_07_10347.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329162120","1329162110","1329162127","1329162136","1329162115","1329162132"],"photo_ids_order":["1329162110","1329162115","1329162120","1329162127","1329162132","1329162136"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/195b508b55ee55043ad3ed3108c2e3b1.jpg","text":"TemporaryFile(/tmp/multipartBody9175954829291665819asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954855961,"filename":"image_14012025_10_25_27_10078.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8c830bbe1ae960f4857ed300c1fda692.jpg","text":"TemporaryFile(/tmp/multipartBody635195585365577026asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954855961,"filename":"image_14012025_10_25_06_10362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c12e71b0eed9e697ec08549f1beba4e4.jpg","text":"TemporaryFile(/tmp/multipartBody6916318937369411688asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954855961,"filename":"image_14012025_10_25_47_10445.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8abea2d6482c3222222cdbb49069b238.jpg","text":"TemporaryFile(/tmp/multipartBody5869256458033196292asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954855961,"filename":"image_14012025_10_26_07_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8ea2b5e9a82425fd41631c6ffb83f566.jpg","text":"TemporaryFile(/tmp/multipartBody1945211052388910581asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954855961,"filename":"image_14012025_10_25_17_10330.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fdb4da243a31ec1ab1d5d83ad6fdeec7.jpg","text":"TemporaryFile(/tmp/multipartBody1040242917807494309asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954855961,"filename":"image_14012025_10_25_56_9397.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329162120","file1":"1329162115","file0":"1329162110","file4":"1329162132","file5":"1329162136","file3":"1329162127"},"map_files_photo_id_array":[{"photo_id":"1329162136","filename":"file5"},{"photo_id":"1329162120","filename":"file2"},{"photo_id":"1329162132","filename":"file4"},{"photo_id":"1329162115","filename":"file1"},{"photo_id":"1329162110","filename":"file0"},{"photo_id":"1329162127","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329162120":["hashtag1","hashtag2"]},{"1329162110":["hashtag1","hashtag2"]},{"1329162127":["hashtag1","hashtag2"]},{"1329162136":["hashtag1","hashtag2"]},{"1329162115":["hashtag1","hashtag2"]},{"1329162132":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329162120, 1329162110, 1329162127, 1329162136, 1329162115, 1329162132)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.04268789291382 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 15 --only_old 1
2025-01-15 16:27:33.069752
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/26/image_14012025_10_26_17_10437.jpg', '/home/pi/Desktop/images/14012025/10/26/image_14012025_10_26_26_9434.jpg', '/home/pi/Desktop/images/14012025/10/26/image_14012025_10_26_37_10323.jpg', '/home/pi/Desktop/images/14012025/10/26/image_14012025_10_26_46_9342.jpg', '/home/pi/Desktop/images/14012025/10/26/image_14012025_10_26_56_10359.jpg', '/home/pi/Desktop/images/14012025/10/26/image_14012025_10_27_07_10338.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/26/image_14012025_10_26_17_10437.jpg
/home/pi/Desktop/images/14012025/10/26/image_14012025_10_26_26_9434.jpg
/home/pi/Desktop/images/14012025/10/26/image_14012025_10_26_37_10323.jpg
/home/pi/Desktop/images/14012025/10/26/image_14012025_10_26_46_9342.jpg
/home/pi/Desktop/images/14012025/10/26/image_14012025_10_26_56_10359.jpg
/home/pi/Desktop/images/14012025/10/26/image_14012025_10_27_07_10338.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329162212","1329162206","1329162208","1329162202","1329162177","1329162159"],"photo_ids_order":["1329162159","1329162177","1329162202","1329162206","1329162208","1329162212"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/17a6efa22c07ac46320d5cfdc49fdd0f.jpg","text":"TemporaryFile(/tmp/multipartBody5339509850567718870asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954915607,"filename":"image_14012025_10_27_07_10338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/18503e0b93a387d44624844a6034485d.jpg","text":"TemporaryFile(/tmp/multipartBody9083939458431311625asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954915607,"filename":"image_14012025_10_26_46_9342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/06163d5ab96cd75e40b18527725fcea2.jpg","text":"TemporaryFile(/tmp/multipartBody898390952172887836asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954915607,"filename":"image_14012025_10_26_56_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d6b9b0be233937c1e8b7b958dd21ea7b.jpg","text":"TemporaryFile(/tmp/multipartBody5487461989738911582asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954915607,"filename":"image_14012025_10_26_37_10323.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/72b14c139124e643e0d57c389d1833d9.jpg","text":"TemporaryFile(/tmp/multipartBody3999620323249017916asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954915607,"filename":"image_14012025_10_26_26_9434.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7a848584c38a8157f0c4aa2fb72ee850.jpg","text":"TemporaryFile(/tmp/multipartBody6288860064906017390asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954915607,"filename":"image_14012025_10_26_17_10437.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329162202","file1":"1329162177","file0":"1329162159","file4":"1329162208","file5":"1329162212","file3":"1329162206"},"map_files_photo_id_array":[{"photo_id":"1329162212","filename":"file5"},{"photo_id":"1329162202","filename":"file2"},{"photo_id":"1329162208","filename":"file4"},{"photo_id":"1329162177","filename":"file1"},{"photo_id":"1329162159","filename":"file0"},{"photo_id":"1329162206","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329162212":["hashtag1","hashtag2"]},{"1329162206":["hashtag1","hashtag2"]},{"1329162208":["hashtag1","hashtag2"]},{"1329162202":["hashtag1","hashtag2"]},{"1329162177":["hashtag1","hashtag2"]},{"1329162159":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329162212, 1329162206, 1329162208, 1329162202, 1329162177, 1329162159)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.10429334640503 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 15 --only_old 1
2025-01-15 16:28:32.405362
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/27/image_14012025_10_27_16_9530.jpg', '/home/pi/Desktop/images/14012025/10/27/image_14012025_10_27_27_10409.jpg', '/home/pi/Desktop/images/14012025/10/27/image_14012025_10_27_36_9339.jpg', '/home/pi/Desktop/images/14012025/10/27/image_14012025_10_27_46_10344.jpg', '/home/pi/Desktop/images/14012025/10/27/image_14012025_10_27_57_10364.jpg', '/home/pi/Desktop/images/14012025/10/27/image_14012025_10_28_06_9423.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/27/image_14012025_10_27_16_9530.jpg
/home/pi/Desktop/images/14012025/10/27/image_14012025_10_27_27_10409.jpg
/home/pi/Desktop/images/14012025/10/27/image_14012025_10_27_36_9339.jpg
/home/pi/Desktop/images/14012025/10/27/image_14012025_10_27_46_10344.jpg
/home/pi/Desktop/images/14012025/10/27/image_14012025_10_27_57_10364.jpg
/home/pi/Desktop/images/14012025/10/27/image_14012025_10_28_06_9423.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329162519","1329162315","1329162332","1329162514","1329162304","1329162480"],"photo_ids_order":["1329162304","1329162315","1329162332","1329162480","1329162514","1329162519"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/180d0575c0c1765b77c58645d2fd385f.jpg","text":"TemporaryFile(/tmp/multipartBody8083026611584357224asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954974982,"filename":"image_14012025_10_28_06_9423.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/469ce24da12d8c347a6a2d56aae0496a.jpg","text":"TemporaryFile(/tmp/multipartBody7584021768293722193asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954974982,"filename":"image_14012025_10_27_27_10409.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8f233650c65e114155cd8e04d71e22d5.jpg","text":"TemporaryFile(/tmp/multipartBody93984103489823073asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954974982,"filename":"image_14012025_10_27_36_9339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1b577d302b3d300e6bc6ef3988cfc0ae.jpg","text":"TemporaryFile(/tmp/multipartBody7057655308259638171asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954974982,"filename":"image_14012025_10_27_57_10364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/815a3473363c9c83c2c75bdb1145f76f.jpg","text":"TemporaryFile(/tmp/multipartBody8841188288815247183asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954974982,"filename":"image_14012025_10_27_16_9530.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bf8426602e3980f95ede5598bfd26bbd.jpg","text":"TemporaryFile(/tmp/multipartBody3394803934920807271asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736954974982,"filename":"image_14012025_10_27_46_10344.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329162332","file1":"1329162315","file0":"1329162304","file4":"1329162514","file5":"1329162519","file3":"1329162480"},"map_files_photo_id_array":[{"photo_id":"1329162519","filename":"file5"},{"photo_id":"1329162332","filename":"file2"},{"photo_id":"1329162514","filename":"file4"},{"photo_id":"1329162315","filename":"file1"},{"photo_id":"1329162304","filename":"file0"},{"photo_id":"1329162480","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329162519":["hashtag1","hashtag2"]},{"1329162315":["hashtag1","hashtag2"]},{"1329162332":["hashtag1","hashtag2"]},{"1329162514":["hashtag1","hashtag2"]},{"1329162304":["hashtag1","hashtag2"]},{"1329162480":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329162519, 1329162315, 1329162332, 1329162514, 1329162304, 1329162480)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.23159337043762 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 15 --only_old 1
2025-01-15 16:29:32.754977
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/28/image_14012025_10_28_16_10337.jpg', '/home/pi/Desktop/images/14012025/10/28/image_14012025_10_28_27_10352.jpg', '/home/pi/Desktop/images/14012025/10/28/image_14012025_10_28_36_9377.jpg', '/home/pi/Desktop/images/14012025/10/28/image_14012025_10_28_47_10450.jpg', '/home/pi/Desktop/images/14012025/10/28/image_14012025_10_28_56_9348.jpg', '/home/pi/Desktop/images/14012025/10/28/image_14012025_10_29_06_10406.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/28/image_14012025_10_28_16_10337.jpg
/home/pi/Desktop/images/14012025/10/28/image_14012025_10_28_27_10352.jpg
/home/pi/Desktop/images/14012025/10/28/image_14012025_10_28_36_9377.jpg
/home/pi/Desktop/images/14012025/10/28/image_14012025_10_28_47_10450.jpg
/home/pi/Desktop/images/14012025/10/28/image_14012025_10_28_56_9348.jpg
/home/pi/Desktop/images/14012025/10/28/image_14012025_10_29_06_10406.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329162617","1329162628","1329162613","1329162747","1329162741","1329162714"],"photo_ids_order":["1329162613","1329162617","1329162628","1329162714","1329162741","1329162747"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/346365d41fc6ab916b25a1fae107d0a3.jpg","text":"TemporaryFile(/tmp/multipartBody306279146840488949asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955035323,"filename":"image_14012025_10_28_27_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7a6037c70760dfede82e911a1dffd563.jpg","text":"TemporaryFile(/tmp/multipartBody152193768350841282asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955035323,"filename":"image_14012025_10_28_36_9377.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f4d4ee64182db2df2f965bc2b00e6ab9.jpg","text":"TemporaryFile(/tmp/multipartBody6539083831485856753asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955035323,"filename":"image_14012025_10_28_16_10337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5e44262c6aace1d66565209d70a02f5f.jpg","text":"TemporaryFile(/tmp/multipartBody662670285372297241asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955035323,"filename":"image_14012025_10_29_06_10406.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/24b5397cfac1da3e310a73a2141c6719.jpg","text":"TemporaryFile(/tmp/multipartBody4352536847811053506asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955035323,"filename":"image_14012025_10_28_56_9348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9c8b1e00e2ff83d13e0ad63db6969fa4.jpg","text":"TemporaryFile(/tmp/multipartBody8818221978063359603asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955035323,"filename":"image_14012025_10_28_47_10450.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329162628","file1":"1329162617","file0":"1329162613","file4":"1329162741","file5":"1329162747","file3":"1329162714"},"map_files_photo_id_array":[{"photo_id":"1329162747","filename":"file5"},{"photo_id":"1329162628","filename":"file2"},{"photo_id":"1329162741","filename":"file4"},{"photo_id":"1329162617","filename":"file1"},{"photo_id":"1329162613","filename":"file0"},{"photo_id":"1329162714","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329162617":["hashtag1","hashtag2"]},{"1329162628":["hashtag1","hashtag2"]},{"1329162613":["hashtag1","hashtag2"]},{"1329162747":["hashtag1","hashtag2"]},{"1329162741":["hashtag1","hashtag2"]},{"1329162714":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329162617, 1329162628, 1329162613, 1329162747, 1329162741, 1329162714)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.78653597831726 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 15 --only_old 1
2025-01-15 16:30:33.050733
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/29/image_14012025_10_29_17_10343.jpg', '/home/pi/Desktop/images/14012025/10/29/image_14012025_10_29_26_9478.jpg', '/home/pi/Desktop/images/14012025/10/29/image_14012025_10_29_37_10346.jpg', '/home/pi/Desktop/images/14012025/10/29/image_14012025_10_29_47_10369.jpg', '/home/pi/Desktop/images/14012025/10/29/image_14012025_10_29_56_9347.jpg', '/home/pi/Desktop/images/14012025/10/29/image_14012025_10_30_07_10345.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/29/image_14012025_10_29_17_10343.jpg
/home/pi/Desktop/images/14012025/10/29/image_14012025_10_29_26_9478.jpg
/home/pi/Desktop/images/14012025/10/29/image_14012025_10_29_37_10346.jpg
/home/pi/Desktop/images/14012025/10/29/image_14012025_10_29_47_10369.jpg
/home/pi/Desktop/images/14012025/10/29/image_14012025_10_29_56_9347.jpg
/home/pi/Desktop/images/14012025/10/29/image_14012025_10_30_07_10345.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329162804","1329162836","1329162841","1329162817","1329162798","1329162828"],"photo_ids_order":["1329162798","1329162804","1329162817","1329162828","1329162836","1329162841"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bbd31e0bc3090b6b2b3248f08cda7549.jpg","text":"TemporaryFile(/tmp/multipartBody908376082126209658asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955095627,"filename":"image_14012025_10_29_26_9478.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f411239db955361b09b1c0678076a3fb.jpg","text":"TemporaryFile(/tmp/multipartBody1413198631077260710asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955095627,"filename":"image_14012025_10_29_56_9347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/103dcef55cb038ca45c9d3d6b0d4a2aa.jpg","text":"TemporaryFile(/tmp/multipartBody982682949121140626asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955095627,"filename":"image_14012025_10_30_07_10345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ca6bb42034825a2232ea5d4890861b65.jpg","text":"TemporaryFile(/tmp/multipartBody3646749951009611802asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955095627,"filename":"image_14012025_10_29_37_10346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/34b2ca8aaac21e38065191f2fbab42e3.jpg","text":"TemporaryFile(/tmp/multipartBody8505409480457606463asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955095627,"filename":"image_14012025_10_29_17_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/adef864f9a96bc308d853c310c4bcbda.jpg","text":"TemporaryFile(/tmp/multipartBody3822441733250850442asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955095627,"filename":"image_14012025_10_29_47_10369.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329162817","file1":"1329162804","file0":"1329162798","file4":"1329162836","file5":"1329162841","file3":"1329162828"},"map_files_photo_id_array":[{"photo_id":"1329162841","filename":"file5"},{"photo_id":"1329162817","filename":"file2"},{"photo_id":"1329162836","filename":"file4"},{"photo_id":"1329162804","filename":"file1"},{"photo_id":"1329162798","filename":"file0"},{"photo_id":"1329162828","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329162804":["hashtag1","hashtag2"]},{"1329162836":["hashtag1","hashtag2"]},{"1329162841":["hashtag1","hashtag2"]},{"1329162817":["hashtag1","hashtag2"]},{"1329162798":["hashtag1","hashtag2"]},{"1329162828":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329162804, 1329162836, 1329162841, 1329162817, 1329162798, 1329162828)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.69726014137268 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 15 --only_old 1
2025-01-15 16:31:32.233370
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31122024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20241231 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250101 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250102 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250103 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250104 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250105 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250106 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250107 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250108 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250109 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250110 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250111 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250112 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250113 ORDER BY id_local ASC LIMIT 6;
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14012025
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250114 ORDER BY id_local ASC LIMIT 6;
  port_id : 19559973
  datou_current_id : 2479276
in upload_from_sqlite, uploading in 19559973
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/14012025/10/30/image_14012025_10_31_07_10351.jpg', '/home/pi/Desktop/images/14012025/10/31/image_14012025_10_31_16_9355.jpg', '/home/pi/Desktop/images/14012025/10/31/image_14012025_10_31_27_10343.jpg', '/home/pi/Desktop/images/14012025/10/31/image_14012025_10_31_36_9473.jpg', '/home/pi/Desktop/images/14012025/10/31/image_14012025_10_31_57_10333.jpg', '/home/pi/Desktop/images/14012025/10/31/image_14012025_10_32_06_9388.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2479276&datou=0
/home/pi/Desktop/images/14012025/10/30/image_14012025_10_31_07_10351.jpg
/home/pi/Desktop/images/14012025/10/31/image_14012025_10_31_16_9355.jpg
/home/pi/Desktop/images/14012025/10/31/image_14012025_10_31_27_10343.jpg
/home/pi/Desktop/images/14012025/10/31/image_14012025_10_31_36_9473.jpg
/home/pi/Desktop/images/14012025/10/31/image_14012025_10_31_57_10333.jpg
/home/pi/Desktop/images/14012025/10/31/image_14012025_10_32_06_9388.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329162890","1329162935","1329162923","1329162930","1329162906","1329162896"],"photo_ids_order":["1329162890","1329162896","1329162906","1329162923","1329162930","1329162935"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/db4c720ce0ea8acd0e0666245eb4491d.jpg","text":"TemporaryFile(/tmp/multipartBody7759402367623115785asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955154772,"filename":"image_14012025_10_31_07_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e71a972c3d8472d1a607ea77be46b7ad.jpg","text":"TemporaryFile(/tmp/multipartBody1011048823922043618asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955154772,"filename":"image_14012025_10_32_06_9388.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a86bbb973b81c5a06a85940a9b439bc9.jpg","text":"TemporaryFile(/tmp/multipartBody3653730236465481813asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955154772,"filename":"image_14012025_10_31_36_9473.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/52d773e6c41cb505cbad66d679fdc9ab.jpg","text":"TemporaryFile(/tmp/multipartBody6887556473146317386asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955154772,"filename":"image_14012025_10_31_57_10333.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ca81a79c20a1b06c5f371a3e4151ec72.jpg","text":"TemporaryFile(/tmp/multipartBody2585326003740521530asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955154772,"filename":"image_14012025_10_31_27_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/19fb98accb83d878043506bd4868a799.jpg","text":"TemporaryFile(/tmp/multipartBody6523719170181619701asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955154772,"filename":"image_14012025_10_31_16_9355.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329162906","file1":"1329162896","file0":"1329162890","file4":"1329162930","file5":"1329162935","file3":"1329162923"},"map_files_photo_id_array":[{"photo_id":"1329162935","filename":"file5"},{"photo_id":"1329162906","filename":"file2"},{"photo_id":"1329162930","filename":"file4"},{"photo_id":"1329162896","filename":"file1"},{"photo_id":"1329162890","filename":"file0"},{"photo_id":"1329162923","filename":"file3"}],"portfolio_id":19559973,"hashtag_by_photo_ids":[{"1329162890":["hashtag1","hashtag2"]},{"1329162935":["hashtag1","hashtag2"]},{"1329162923":["hashtag1","hashtag2"]},{"1329162930":["hashtag1","hashtag2"]},{"1329162906":["hashtag1","hashtag2"]},{"1329162896":["hashtag1","hashtag2"]}],"comms":"Portfolio 19559973 used, photo_id : ArrayBuffer(1329162890, 1329162935, 1329162923, 1329162930, 1329162906, 1329162896)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.18046832084656 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 15 --only_old 0
2025-01-15 16:32:32.445574
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/32/image_15012025_00_32_17_10408.jpg', '/home/pi/Desktop/images/15012025/00/32/image_15012025_00_32_27_9404.jpg', '/home/pi/Desktop/images/15012025/00/32/image_15012025_00_32_37_10360.jpg', '/home/pi/Desktop/images/15012025/00/32/image_15012025_00_32_47_10354.jpg', '/home/pi/Desktop/images/15012025/00/32/image_15012025_00_32_57_9455.jpg', '/home/pi/Desktop/images/15012025/00/33/image_15012025_00_33_17_9333.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/32/image_15012025_00_32_17_10408.jpg
/home/pi/Desktop/images/15012025/00/32/image_15012025_00_32_27_9404.jpg
/home/pi/Desktop/images/15012025/00/32/image_15012025_00_32_37_10360.jpg
/home/pi/Desktop/images/15012025/00/32/image_15012025_00_32_47_10354.jpg
/home/pi/Desktop/images/15012025/00/32/image_15012025_00_32_57_9455.jpg
/home/pi/Desktop/images/15012025/00/33/image_15012025_00_33_17_9333.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329162983","1329162968","1329162947","1329163003","1329162955","1329162996"],"photo_ids_order":["1329162947","1329162955","1329162968","1329162983","1329162996","1329163003"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/da1d0d0ec32619a561ef03c7e656ada8.jpg","text":"TemporaryFile(/tmp/multipartBody5849161705745393772asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955213444,"filename":"image_15012025_00_32_47_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/457b243d3f530246871a2eb52fe08ee2.jpg","text":"TemporaryFile(/tmp/multipartBody9131614175647722226asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955213444,"filename":"image_15012025_00_32_37_10360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3f40d1622eebd260b61f9aeedcb63c7f.jpg","text":"TemporaryFile(/tmp/multipartBody1940563794164491179asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955213444,"filename":"image_15012025_00_32_17_10408.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/372181f07fcaac12c104f7f308822ec0.jpg","text":"TemporaryFile(/tmp/multipartBody1077923341497379699asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955213444,"filename":"image_15012025_00_33_17_9333.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b5be78d09bd1b690ae7e84b3edc27cc3.jpg","text":"TemporaryFile(/tmp/multipartBody6907837440625892115asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955213444,"filename":"image_15012025_00_32_27_9404.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e94ffee471ab29b2e9d4e1afed216b6e.jpg","text":"TemporaryFile(/tmp/multipartBody2121392178745511662asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955213444,"filename":"image_15012025_00_32_57_9455.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329162968","file1":"1329162955","file0":"1329162947","file4":"1329162996","file5":"1329163003","file3":"1329162983"},"map_files_photo_id_array":[{"photo_id":"1329163003","filename":"file5"},{"photo_id":"1329162968","filename":"file2"},{"photo_id":"1329162996","filename":"file4"},{"photo_id":"1329162955","filename":"file1"},{"photo_id":"1329162947","filename":"file0"},{"photo_id":"1329162983","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329162983":["hashtag1","hashtag2"]},{"1329162968":["hashtag1","hashtag2"]},{"1329162947":["hashtag1","hashtag2"]},{"1329163003":["hashtag1","hashtag2"]},{"1329162955":["hashtag1","hashtag2"]},{"1329162996":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329162983, 1329162968, 1329162947, 1329163003, 1329162955, 1329162996)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.341503620147705 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 15 --only_old 0
2025-01-15 16:33:32.678977
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/33/image_15012025_00_33_27_10466.jpg', '/home/pi/Desktop/images/15012025/00/33/image_15012025_00_33_37_10369.jpg', '/home/pi/Desktop/images/15012025/00/33/image_15012025_00_33_47_9365.jpg', '/home/pi/Desktop/images/15012025/00/33/image_15012025_00_33_57_10489.jpg', '/home/pi/Desktop/images/15012025/00/33/image_15012025_00_34_07_9422.jpg', '/home/pi/Desktop/images/15012025/00/34/image_15012025_00_34_17_10340.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/33/image_15012025_00_33_27_10466.jpg
/home/pi/Desktop/images/15012025/00/33/image_15012025_00_33_37_10369.jpg
/home/pi/Desktop/images/15012025/00/33/image_15012025_00_33_47_9365.jpg
/home/pi/Desktop/images/15012025/00/33/image_15012025_00_33_57_10489.jpg
/home/pi/Desktop/images/15012025/00/33/image_15012025_00_34_07_9422.jpg
/home/pi/Desktop/images/15012025/00/34/image_15012025_00_34_17_10340.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6021032333374023 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
2025-01-15 16:33:42.592934
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/33/image_15012025_00_33_27_10466.jpg', '/home/pi/Desktop/images/15012025/00/33/image_15012025_00_33_37_10369.jpg', '/home/pi/Desktop/images/15012025/00/33/image_15012025_00_33_47_9365.jpg', '/home/pi/Desktop/images/15012025/00/33/image_15012025_00_33_57_10489.jpg', '/home/pi/Desktop/images/15012025/00/33/image_15012025_00_34_07_9422.jpg', '/home/pi/Desktop/images/15012025/00/34/image_15012025_00_34_17_10340.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/33/image_15012025_00_33_27_10466.jpg
/home/pi/Desktop/images/15012025/00/33/image_15012025_00_33_37_10369.jpg
/home/pi/Desktop/images/15012025/00/33/image_15012025_00_33_47_9365.jpg
/home/pi/Desktop/images/15012025/00/33/image_15012025_00_33_57_10489.jpg
/home/pi/Desktop/images/15012025/00/33/image_15012025_00_34_07_9422.jpg
/home/pi/Desktop/images/15012025/00/34/image_15012025_00_34_17_10340.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329163115","1329163109","1329163090","1329163105","1329163097","1329163079"],"photo_ids_order":["1329163079","1329163090","1329163097","1329163105","1329163109","1329163115"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/849699b0d8c7038a2f3240625a1a6f1f.jpg","text":"TemporaryFile(/tmp/multipartBody5023155462912147110asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955283503,"filename":"image_15012025_00_34_17_10340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e069dcccca72404694314995021acce3.jpg","text":"TemporaryFile(/tmp/multipartBody4033833744276220266asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955283503,"filename":"image_15012025_00_34_07_9422.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ffc715a1991ab7db5f2e24a536c57372.jpg","text":"TemporaryFile(/tmp/multipartBody8709975316000315304asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955283503,"filename":"image_15012025_00_33_37_10369.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bb79908d51e8b85d95a9e1d2e0942d9a.jpg","text":"TemporaryFile(/tmp/multipartBody8222269817596417104asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955283503,"filename":"image_15012025_00_33_57_10489.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2f388c1eb46b416d87102b205d3f9d71.jpg","text":"TemporaryFile(/tmp/multipartBody3246374071775952380asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955283503,"filename":"image_15012025_00_33_47_9365.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f9708fe96feb66bf118ab973aaf4a5ad.jpg","text":"TemporaryFile(/tmp/multipartBody6814819677426154517asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955283503,"filename":"image_15012025_00_33_27_10466.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329163097","file1":"1329163090","file0":"1329163079","file4":"1329163109","file5":"1329163115","file3":"1329163105"},"map_files_photo_id_array":[{"photo_id":"1329163115","filename":"file5"},{"photo_id":"1329163097","filename":"file2"},{"photo_id":"1329163109","filename":"file4"},{"photo_id":"1329163090","filename":"file1"},{"photo_id":"1329163079","filename":"file0"},{"photo_id":"1329163105","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329163115":["hashtag1","hashtag2"]},{"1329163109":["hashtag1","hashtag2"]},{"1329163090":["hashtag1","hashtag2"]},{"1329163105":["hashtag1","hashtag2"]},{"1329163097":["hashtag1","hashtag2"]},{"1329163079":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329163115, 1329163109, 1329163090, 1329163105, 1329163097, 1329163079)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.27532958984375 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 15 --only_old 0
2025-01-15 16:34:32.820456
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/34/image_15012025_00_34_27_10357.jpg', '/home/pi/Desktop/images/15012025/00/34/image_15012025_00_34_37_9354.jpg', '/home/pi/Desktop/images/15012025/00/34/image_15012025_00_35_07_10401.jpg', '/home/pi/Desktop/images/15012025/00/35/image_15012025_00_35_27_9407.jpg', '/home/pi/Desktop/images/15012025/00/35/image_15012025_00_35_37_10373.jpg', '/home/pi/Desktop/images/15012025/00/35/image_15012025_00_35_48_10369.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/34/image_15012025_00_34_27_10357.jpg
/home/pi/Desktop/images/15012025/00/34/image_15012025_00_34_37_9354.jpg
/home/pi/Desktop/images/15012025/00/34/image_15012025_00_35_07_10401.jpg
/home/pi/Desktop/images/15012025/00/35/image_15012025_00_35_27_9407.jpg
/home/pi/Desktop/images/15012025/00/35/image_15012025_00_35_37_10373.jpg
/home/pi/Desktop/images/15012025/00/35/image_15012025_00_35_48_10369.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329163139","1329163154","1329163150","1329163146","1329163131","1329163157"],"photo_ids_order":["1329163131","1329163139","1329163146","1329163150","1329163154","1329163157"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/334369aa685654fc40cc673bbb9f0d45.jpg","text":"TemporaryFile(/tmp/multipartBody3322616148373083586asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955333821,"filename":"image_15012025_00_34_37_9354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/86bcbb72fa7746994f8a0fadcfa3b442.jpg","text":"TemporaryFile(/tmp/multipartBody3079059599605736164asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955333821,"filename":"image_15012025_00_35_37_10373.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5e4f31ce117698a8f42b4b402a402257.jpg","text":"TemporaryFile(/tmp/multipartBody4090962293627310327asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955333821,"filename":"image_15012025_00_35_27_9407.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/92d1977f169423091f5cbd707f016fac.jpg","text":"TemporaryFile(/tmp/multipartBody478243855664728498asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955333821,"filename":"image_15012025_00_35_07_10401.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0bed8646b05187d69a45e55d6bcb543d.jpg","text":"TemporaryFile(/tmp/multipartBody6618485033065042748asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955333821,"filename":"image_15012025_00_34_27_10357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cc806e6a17f401deb9176bb89b739884.jpg","text":"TemporaryFile(/tmp/multipartBody8024269966837528377asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955333821,"filename":"image_15012025_00_35_48_10369.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329163146","file1":"1329163139","file0":"1329163131","file4":"1329163154","file5":"1329163157","file3":"1329163150"},"map_files_photo_id_array":[{"photo_id":"1329163157","filename":"file5"},{"photo_id":"1329163146","filename":"file2"},{"photo_id":"1329163154","filename":"file4"},{"photo_id":"1329163139","filename":"file1"},{"photo_id":"1329163131","filename":"file0"},{"photo_id":"1329163150","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329163139":["hashtag1","hashtag2"]},{"1329163154":["hashtag1","hashtag2"]},{"1329163150":["hashtag1","hashtag2"]},{"1329163146":["hashtag1","hashtag2"]},{"1329163131":["hashtag1","hashtag2"]},{"1329163157":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329163139, 1329163154, 1329163150, 1329163146, 1329163131, 1329163157)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.4050190448761 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 15 --only_old 0
2025-01-15 16:35:33.075866
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/35/image_15012025_00_35_57_9352.jpg', '/home/pi/Desktop/images/15012025/00/36/image_15012025_00_36_17_9337.jpg', '/home/pi/Desktop/images/15012025/00/36/image_15012025_00_36_27_10494.jpg', '/home/pi/Desktop/images/15012025/00/36/image_15012025_00_36_37_10348.jpg', '/home/pi/Desktop/images/15012025/00/36/image_15012025_00_36_47_9358.jpg', '/home/pi/Desktop/images/15012025/00/37/image_15012025_00_37_17_9339.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/35/image_15012025_00_35_57_9352.jpg
/home/pi/Desktop/images/15012025/00/36/image_15012025_00_36_17_9337.jpg
/home/pi/Desktop/images/15012025/00/36/image_15012025_00_36_27_10494.jpg
/home/pi/Desktop/images/15012025/00/36/image_15012025_00_36_37_10348.jpg
/home/pi/Desktop/images/15012025/00/36/image_15012025_00_36_47_9358.jpg
/home/pi/Desktop/images/15012025/00/37/image_15012025_00_37_17_9339.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329163198","1329163180","1329163282","1329163207","1329163191","1329163470"],"photo_ids_order":["1329163180","1329163191","1329163198","1329163207","1329163282","1329163470"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0f1629a80262448de249100624a17009.jpg","text":"TemporaryFile(/tmp/multipartBody7778074032049868232asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955394062,"filename":"image_15012025_00_36_27_10494.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c11d212d2d402906f63da4c7563e5016.jpg","text":"TemporaryFile(/tmp/multipartBody943629692984002559asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955394062,"filename":"image_15012025_00_35_57_9352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bf03bd0d45c0e5b7e2d892cc78baf737.jpg","text":"TemporaryFile(/tmp/multipartBody8867434564685124882asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955394062,"filename":"image_15012025_00_36_47_9358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4fb848b634ff394ef0f25e72c8e594c4.jpg","text":"TemporaryFile(/tmp/multipartBody2613347051887451940asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955394062,"filename":"image_15012025_00_36_37_10348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4abb9e7345589f59b38a4340813f4656.jpg","text":"TemporaryFile(/tmp/multipartBody1900519000936147994asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955394062,"filename":"image_15012025_00_36_17_9337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6fe5c09a25c014bf1e8b2221eb8f8cf6.jpg","text":"TemporaryFile(/tmp/multipartBody6011033407186677603asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955394062,"filename":"image_15012025_00_37_17_9339.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329163198","file1":"1329163191","file0":"1329163180","file4":"1329163282","file5":"1329163470","file3":"1329163207"},"map_files_photo_id_array":[{"photo_id":"1329163470","filename":"file5"},{"photo_id":"1329163198","filename":"file2"},{"photo_id":"1329163282","filename":"file4"},{"photo_id":"1329163191","filename":"file1"},{"photo_id":"1329163180","filename":"file0"},{"photo_id":"1329163207","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329163198":["hashtag1","hashtag2"]},{"1329163180":["hashtag1","hashtag2"]},{"1329163282":["hashtag1","hashtag2"]},{"1329163207":["hashtag1","hashtag2"]},{"1329163191":["hashtag1","hashtag2"]},{"1329163470":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329163198, 1329163180, 1329163282, 1329163207, 1329163191, 1329163470)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.93757247924805 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 15 --only_old 0
2025-01-15 16:36:32.475753
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/37/image_15012025_00_37_27_10442.jpg', '/home/pi/Desktop/images/15012025/00/37/image_15012025_00_37_37_9351.jpg', '/home/pi/Desktop/images/15012025/00/37/image_15012025_00_37_47_10399.jpg', '/home/pi/Desktop/images/15012025/00/37/image_15012025_00_37_57_10368.jpg', '/home/pi/Desktop/images/15012025/00/38/image_15012025_00_38_27_9474.jpg', '/home/pi/Desktop/images/15012025/00/38/image_15012025_00_38_48_10353.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/37/image_15012025_00_37_27_10442.jpg
/home/pi/Desktop/images/15012025/00/37/image_15012025_00_37_37_9351.jpg
/home/pi/Desktop/images/15012025/00/37/image_15012025_00_37_47_10399.jpg
/home/pi/Desktop/images/15012025/00/37/image_15012025_00_37_57_10368.jpg
/home/pi/Desktop/images/15012025/00/38/image_15012025_00_38_27_9474.jpg
/home/pi/Desktop/images/15012025/00/38/image_15012025_00_38_48_10353.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329163966","1329164137","1329163977","1329163971","1329163982","1329164132"],"photo_ids_order":["1329163966","1329163971","1329163977","1329163982","1329164132","1329164137"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/86d9e4d3f7c5e542a0fc9e97f2eeaba7.jpg","text":"TemporaryFile(/tmp/multipartBody1009492778785049250asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955453487,"filename":"image_15012025_00_37_27_10442.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7f36396ffeb56793b9295079672a0530.jpg","text":"TemporaryFile(/tmp/multipartBody8847355387909897246asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955453487,"filename":"image_15012025_00_38_48_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2cd010128e3c77cbb64336057632ac06.jpg","text":"TemporaryFile(/tmp/multipartBody8661460457866622150asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955453487,"filename":"image_15012025_00_37_47_10399.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/df9b8c16e6e93a9738376c985c213b36.jpg","text":"TemporaryFile(/tmp/multipartBody2666447651358323110asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955453487,"filename":"image_15012025_00_37_37_9351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/97d3e35cd9d269294574c2a00986f4d5.jpg","text":"TemporaryFile(/tmp/multipartBody3533376984811450819asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955453487,"filename":"image_15012025_00_37_57_10368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/37e4a1ebb6689c0b27596155b151f15c.jpg","text":"TemporaryFile(/tmp/multipartBody5809474018573852282asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955453487,"filename":"image_15012025_00_38_27_9474.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329163977","file1":"1329163971","file0":"1329163966","file4":"1329164132","file5":"1329164137","file3":"1329163982"},"map_files_photo_id_array":[{"photo_id":"1329164137","filename":"file5"},{"photo_id":"1329163977","filename":"file2"},{"photo_id":"1329164132","filename":"file4"},{"photo_id":"1329163971","filename":"file1"},{"photo_id":"1329163966","filename":"file0"},{"photo_id":"1329163982","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329163966":["hashtag1","hashtag2"]},{"1329164137":["hashtag1","hashtag2"]},{"1329163977":["hashtag1","hashtag2"]},{"1329163971":["hashtag1","hashtag2"]},{"1329163982":["hashtag1","hashtag2"]},{"1329164132":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329163966, 1329164137, 1329163977, 1329163971, 1329163982, 1329164132)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.06037354469299 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 15 --only_old 0
2025-01-15 16:37:32.717525
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/38/image_15012025_00_39_07_10417.jpg', '/home/pi/Desktop/images/15012025/00/39/image_15012025_00_39_17_9356.jpg', '/home/pi/Desktop/images/15012025/00/39/image_15012025_00_39_37_10377.jpg', '/home/pi/Desktop/images/15012025/00/39/image_15012025_00_39_47_9355.jpg', '/home/pi/Desktop/images/15012025/00/39/image_15012025_00_40_07_9405.jpg', '/home/pi/Desktop/images/15012025/00/40/image_15012025_00_40_17_10347.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/38/image_15012025_00_39_07_10417.jpg
/home/pi/Desktop/images/15012025/00/39/image_15012025_00_39_17_9356.jpg
/home/pi/Desktop/images/15012025/00/39/image_15012025_00_39_37_10377.jpg
/home/pi/Desktop/images/15012025/00/39/image_15012025_00_39_47_9355.jpg
/home/pi/Desktop/images/15012025/00/39/image_15012025_00_40_07_9405.jpg
/home/pi/Desktop/images/15012025/00/40/image_15012025_00_40_17_10347.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329164207","1329164215","1329164230","1329164223","1329164234","1329164237"],"photo_ids_order":["1329164207","1329164215","1329164223","1329164230","1329164234","1329164237"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/11fc6ad2a2d48009287a6a3285564eac.jpg","text":"TemporaryFile(/tmp/multipartBody1140855416034994695asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955513742,"filename":"image_15012025_00_39_07_10417.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/122458b6a77569ca77ec50039b26b7ef.jpg","text":"TemporaryFile(/tmp/multipartBody892784670999574490asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955513742,"filename":"image_15012025_00_39_17_9356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f42c20e6486f8f6e8cf2b5f8ba361264.jpg","text":"TemporaryFile(/tmp/multipartBody3653847455800378172asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955513742,"filename":"image_15012025_00_39_47_9355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/87e4e9d65ea1dadce0b99f6dfbdccaa4.jpg","text":"TemporaryFile(/tmp/multipartBody5373189363971119831asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955513742,"filename":"image_15012025_00_39_37_10377.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7b8300b128f12676e67fd2ec8827e18b.jpg","text":"TemporaryFile(/tmp/multipartBody8530255742556273158asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955513742,"filename":"image_15012025_00_40_07_9405.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/96e3f3b082657e94678011af136748b9.jpg","text":"TemporaryFile(/tmp/multipartBody270636316924700855asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955513742,"filename":"image_15012025_00_40_17_10347.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329164223","file1":"1329164215","file0":"1329164207","file4":"1329164234","file5":"1329164237","file3":"1329164230"},"map_files_photo_id_array":[{"photo_id":"1329164237","filename":"file5"},{"photo_id":"1329164223","filename":"file2"},{"photo_id":"1329164234","filename":"file4"},{"photo_id":"1329164215","filename":"file1"},{"photo_id":"1329164207","filename":"file0"},{"photo_id":"1329164230","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329164207":["hashtag1","hashtag2"]},{"1329164215":["hashtag1","hashtag2"]},{"1329164230":["hashtag1","hashtag2"]},{"1329164223":["hashtag1","hashtag2"]},{"1329164234":["hashtag1","hashtag2"]},{"1329164237":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329164207, 1329164215, 1329164230, 1329164223, 1329164234, 1329164237)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.111424922943115 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 15 --only_old 0
2025-01-15 16:38:33.075021
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/40/image_15012025_00_40_27_10485.jpg', '/home/pi/Desktop/images/15012025/00/40/image_15012025_00_40_37_9433.jpg', '/home/pi/Desktop/images/15012025/00/40/image_15012025_00_40_47_10444.jpg', '/home/pi/Desktop/images/15012025/00/40/image_15012025_00_40_57_9388.jpg', '/home/pi/Desktop/images/15012025/00/40/image_15012025_00_41_07_10490.jpg', '/home/pi/Desktop/images/15012025/00/41/image_15012025_00_41_18_10345.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/40/image_15012025_00_40_27_10485.jpg
/home/pi/Desktop/images/15012025/00/40/image_15012025_00_40_37_9433.jpg
/home/pi/Desktop/images/15012025/00/40/image_15012025_00_40_47_10444.jpg
/home/pi/Desktop/images/15012025/00/40/image_15012025_00_40_57_9388.jpg
/home/pi/Desktop/images/15012025/00/40/image_15012025_00_41_07_10490.jpg
/home/pi/Desktop/images/15012025/00/41/image_15012025_00_41_18_10345.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329164586","1329164475","1329164640","1329164637","1329164471","1329164480"],"photo_ids_order":["1329164471","1329164475","1329164480","1329164586","1329164637","1329164640"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fc3a9a135da86662c029a9a508f7407f.jpg","text":"TemporaryFile(/tmp/multipartBody7629403363178859804asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955574067,"filename":"image_15012025_00_40_57_9388.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/04e741732813a03745ba0835b7c4701d.jpg","text":"TemporaryFile(/tmp/multipartBody7398998090577328819asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955574067,"filename":"image_15012025_00_40_37_9433.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ce471d70bdc026d3268b07d5a545d9e3.jpg","text":"TemporaryFile(/tmp/multipartBody3961897207353355776asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955574067,"filename":"image_15012025_00_41_18_10345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d468023b86667748cf36221cff722d1e.jpg","text":"TemporaryFile(/tmp/multipartBody1579083404670361838asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955574067,"filename":"image_15012025_00_41_07_10490.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fb5fbb23a8672fc4ac25282a64e986ee.jpg","text":"TemporaryFile(/tmp/multipartBody7628901363432662060asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955574067,"filename":"image_15012025_00_40_27_10485.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cd8c512c5263128539fb61c678a24a88.jpg","text":"TemporaryFile(/tmp/multipartBody6820410235959427566asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955574067,"filename":"image_15012025_00_40_47_10444.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329164480","file1":"1329164475","file0":"1329164471","file4":"1329164637","file5":"1329164640","file3":"1329164586"},"map_files_photo_id_array":[{"photo_id":"1329164640","filename":"file5"},{"photo_id":"1329164480","filename":"file2"},{"photo_id":"1329164637","filename":"file4"},{"photo_id":"1329164475","filename":"file1"},{"photo_id":"1329164471","filename":"file0"},{"photo_id":"1329164586","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329164586":["hashtag1","hashtag2"]},{"1329164475":["hashtag1","hashtag2"]},{"1329164640":["hashtag1","hashtag2"]},{"1329164637":["hashtag1","hashtag2"]},{"1329164471":["hashtag1","hashtag2"]},{"1329164480":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329164586, 1329164475, 1329164640, 1329164637, 1329164471, 1329164480)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.404510498046875 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 15 --only_old 0
2025-01-15 16:39:32.395004
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/41/image_15012025_00_41_27_9382.jpg', '/home/pi/Desktop/images/15012025/00/41/image_15012025_00_41_37_10440.jpg', '/home/pi/Desktop/images/15012025/00/41/image_15012025_00_41_47_9340.jpg', '/home/pi/Desktop/images/15012025/00/41/image_15012025_00_41_57_10458.jpg', '/home/pi/Desktop/images/15012025/00/41/image_15012025_00_42_08_10376.jpg', '/home/pi/Desktop/images/15012025/00/42/image_15012025_00_42_17_9341.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/41/image_15012025_00_41_27_9382.jpg
/home/pi/Desktop/images/15012025/00/41/image_15012025_00_41_37_10440.jpg
/home/pi/Desktop/images/15012025/00/41/image_15012025_00_41_47_9340.jpg
/home/pi/Desktop/images/15012025/00/41/image_15012025_00_41_57_10458.jpg
/home/pi/Desktop/images/15012025/00/41/image_15012025_00_42_08_10376.jpg
/home/pi/Desktop/images/15012025/00/42/image_15012025_00_42_17_9341.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329164776","1329164740","1329164778","1329164780","1329164774","1329164714"],"photo_ids_order":["1329164714","1329164740","1329164774","1329164776","1329164778","1329164780"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dbd674538ff5d1ef9096fb84dcf3fd37.jpg","text":"TemporaryFile(/tmp/multipartBody429333205582400052asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955633429,"filename":"image_15012025_00_41_57_10458.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/69717304a724bda6240a980ebe2aac3a.jpg","text":"TemporaryFile(/tmp/multipartBody5485902414909803906asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955633429,"filename":"image_15012025_00_41_37_10440.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/25654feb274338566717242bebbcd078.jpg","text":"TemporaryFile(/tmp/multipartBody8443903471558005746asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955633429,"filename":"image_15012025_00_42_08_10376.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0c13e5d4a6e17a82a7486660f50274b3.jpg","text":"TemporaryFile(/tmp/multipartBody2580938345477580496asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955633429,"filename":"image_15012025_00_42_17_9341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/69c96359becabf8dced24bd1619b7be4.jpg","text":"TemporaryFile(/tmp/multipartBody7888209755592158041asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955633429,"filename":"image_15012025_00_41_47_9340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3bf669bf8a1b6330a593df37af595bd1.jpg","text":"TemporaryFile(/tmp/multipartBody4588425313924076494asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955633429,"filename":"image_15012025_00_41_27_9382.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329164774","file1":"1329164740","file0":"1329164714","file4":"1329164778","file5":"1329164780","file3":"1329164776"},"map_files_photo_id_array":[{"photo_id":"1329164780","filename":"file5"},{"photo_id":"1329164774","filename":"file2"},{"photo_id":"1329164778","filename":"file4"},{"photo_id":"1329164740","filename":"file1"},{"photo_id":"1329164714","filename":"file0"},{"photo_id":"1329164776","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329164776":["hashtag1","hashtag2"]},{"1329164740":["hashtag1","hashtag2"]},{"1329164778":["hashtag1","hashtag2"]},{"1329164780":["hashtag1","hashtag2"]},{"1329164774":["hashtag1","hashtag2"]},{"1329164714":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329164776, 1329164740, 1329164778, 1329164780, 1329164774, 1329164714)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.43334341049194 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 15 --only_old 0
2025-01-15 16:40:32.569539
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/42/image_15012025_00_42_27_10355.jpg', '/home/pi/Desktop/images/15012025/00/42/image_15012025_00_42_37_9374.jpg', '/home/pi/Desktop/images/15012025/00/42/image_15012025_00_42_47_10345.jpg', '/home/pi/Desktop/images/15012025/00/42/image_15012025_00_42_57_10433.jpg', '/home/pi/Desktop/images/15012025/00/42/image_15012025_00_43_07_9351.jpg', '/home/pi/Desktop/images/15012025/00/43/image_15012025_00_43_17_10422.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/42/image_15012025_00_42_27_10355.jpg
/home/pi/Desktop/images/15012025/00/42/image_15012025_00_42_37_9374.jpg
/home/pi/Desktop/images/15012025/00/42/image_15012025_00_42_47_10345.jpg
/home/pi/Desktop/images/15012025/00/42/image_15012025_00_42_57_10433.jpg
/home/pi/Desktop/images/15012025/00/42/image_15012025_00_43_07_9351.jpg
/home/pi/Desktop/images/15012025/00/43/image_15012025_00_43_17_10422.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329164821","1329164830","1329164832","1329164808","1329164804","1329164828"],"photo_ids_order":["1329164804","1329164808","1329164821","1329164828","1329164830","1329164832"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/06a5c7c409199f31de738da72830ce0b.jpg","text":"TemporaryFile(/tmp/multipartBody1702776822078058255asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955693566,"filename":"image_15012025_00_42_47_10345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ffdc996a3fbe557c62280e9c6bbc1aa9.jpg","text":"TemporaryFile(/tmp/multipartBody3936511496304882087asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955693566,"filename":"image_15012025_00_43_07_9351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/284216fd29fae071e54952af52d0990f.jpg","text":"TemporaryFile(/tmp/multipartBody4521813860877921563asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955693566,"filename":"image_15012025_00_43_17_10422.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1d803876b934c127915040b97af20b14.jpg","text":"TemporaryFile(/tmp/multipartBody3524782258827912976asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955693566,"filename":"image_15012025_00_42_37_9374.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c999259fada36aac161fa391b731283a.jpg","text":"TemporaryFile(/tmp/multipartBody1887119533487440487asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955693566,"filename":"image_15012025_00_42_27_10355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3062954e9f1ed55d125c909b439fbf82.jpg","text":"TemporaryFile(/tmp/multipartBody6918316052266265515asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955693566,"filename":"image_15012025_00_42_57_10433.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329164821","file1":"1329164808","file0":"1329164804","file4":"1329164830","file5":"1329164832","file3":"1329164828"},"map_files_photo_id_array":[{"photo_id":"1329164832","filename":"file5"},{"photo_id":"1329164821","filename":"file2"},{"photo_id":"1329164830","filename":"file4"},{"photo_id":"1329164808","filename":"file1"},{"photo_id":"1329164804","filename":"file0"},{"photo_id":"1329164828","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329164821":["hashtag1","hashtag2"]},{"1329164830":["hashtag1","hashtag2"]},{"1329164832":["hashtag1","hashtag2"]},{"1329164808":["hashtag1","hashtag2"]},{"1329164804":["hashtag1","hashtag2"]},{"1329164828":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329164821, 1329164830, 1329164832, 1329164808, 1329164804, 1329164828)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.53054976463318 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 15 --only_old 0
2025-01-15 16:41:33.333831
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/43/image_15012025_00_43_28_10358.jpg', '/home/pi/Desktop/images/15012025/00/43/image_15012025_00_43_37_9336.jpg', '/home/pi/Desktop/images/15012025/00/43/image_15012025_00_43_47_10372.jpg', '/home/pi/Desktop/images/15012025/00/43/image_15012025_00_43_57_9434.jpg', '/home/pi/Desktop/images/15012025/00/43/image_15012025_00_44_07_10391.jpg', '/home/pi/Desktop/images/15012025/00/44/image_15012025_00_44_17_10400.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/43/image_15012025_00_43_28_10358.jpg
/home/pi/Desktop/images/15012025/00/43/image_15012025_00_43_37_9336.jpg
/home/pi/Desktop/images/15012025/00/43/image_15012025_00_43_47_10372.jpg
/home/pi/Desktop/images/15012025/00/43/image_15012025_00_43_57_9434.jpg
/home/pi/Desktop/images/15012025/00/43/image_15012025_00_44_07_10391.jpg
/home/pi/Desktop/images/15012025/00/44/image_15012025_00_44_17_10400.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329164869","1329164839","1329164865","1329164850","1329164844","1329164873"],"photo_ids_order":["1329164839","1329164844","1329164850","1329164865","1329164869","1329164873"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d3f75ce24bcf8abc9fc6df3a8cdb3396.jpg","text":"TemporaryFile(/tmp/multipartBody7924402572261982456asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955754311,"filename":"image_15012025_00_44_07_10391.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ae4f6d7cfd87b3a6844b7edeae70a40c.jpg","text":"TemporaryFile(/tmp/multipartBody2952142788531053159asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955754311,"filename":"image_15012025_00_43_28_10358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/db19fa724e9f58242e62be262bc379ca.jpg","text":"TemporaryFile(/tmp/multipartBody2764155617671215424asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955754311,"filename":"image_15012025_00_43_57_9434.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d1ea7a1e88e0bd9bbe001e00d83a5dcd.jpg","text":"TemporaryFile(/tmp/multipartBody280231262333761847asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955754311,"filename":"image_15012025_00_43_47_10372.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e073a5b3a0248a006dcb7045a7b0b18f.jpg","text":"TemporaryFile(/tmp/multipartBody5216511940467768938asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955754311,"filename":"image_15012025_00_43_37_9336.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/932c7c52367f858db44789b519bc9ca5.jpg","text":"TemporaryFile(/tmp/multipartBody892737152309820202asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955754311,"filename":"image_15012025_00_44_17_10400.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329164850","file1":"1329164844","file0":"1329164839","file4":"1329164869","file5":"1329164873","file3":"1329164865"},"map_files_photo_id_array":[{"photo_id":"1329164873","filename":"file5"},{"photo_id":"1329164850","filename":"file2"},{"photo_id":"1329164869","filename":"file4"},{"photo_id":"1329164844","filename":"file1"},{"photo_id":"1329164839","filename":"file0"},{"photo_id":"1329164865","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329164869":["hashtag1","hashtag2"]},{"1329164839":["hashtag1","hashtag2"]},{"1329164865":["hashtag1","hashtag2"]},{"1329164850":["hashtag1","hashtag2"]},{"1329164844":["hashtag1","hashtag2"]},{"1329164873":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329164869, 1329164839, 1329164865, 1329164850, 1329164844, 1329164873)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.37837743759155 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 15 --only_old 0
2025-01-15 16:42:33.048846
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/44/image_15012025_00_44_48_10371.jpg', '/home/pi/Desktop/images/15012025/00/44/image_15012025_00_44_57_9363.jpg', '/home/pi/Desktop/images/15012025/00/44/image_15012025_00_45_07_10379.jpg', '/home/pi/Desktop/images/15012025/00/45/image_15012025_00_45_27_10346.jpg', '/home/pi/Desktop/images/15012025/00/45/image_15012025_00_45_47_9372.jpg', '/home/pi/Desktop/images/15012025/00/46/image_15012025_00_46_27_10370.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/44/image_15012025_00_44_48_10371.jpg
/home/pi/Desktop/images/15012025/00/44/image_15012025_00_44_57_9363.jpg
/home/pi/Desktop/images/15012025/00/44/image_15012025_00_45_07_10379.jpg
/home/pi/Desktop/images/15012025/00/45/image_15012025_00_45_27_10346.jpg
/home/pi/Desktop/images/15012025/00/45/image_15012025_00_45_47_9372.jpg
/home/pi/Desktop/images/15012025/00/46/image_15012025_00_46_27_10370.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329164950","1329164923","1329164926","1329164961","1329164966","1329164957"],"photo_ids_order":["1329164923","1329164926","1329164950","1329164957","1329164961","1329164966"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a77bed9e090337d2926e70c99e965e2a.jpg","text":"TemporaryFile(/tmp/multipartBody824686625713022666asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955814063,"filename":"image_15012025_00_45_07_10379.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8a322d5770b1f0bbdb1742b7a8f30bd3.jpg","text":"TemporaryFile(/tmp/multipartBody8282606705893754204asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955814063,"filename":"image_15012025_00_44_48_10371.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e3c8eb56c146cc6125c4054062df0eb8.jpg","text":"TemporaryFile(/tmp/multipartBody6004175587401832893asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955814063,"filename":"image_15012025_00_44_57_9363.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/de579d74293987ac76e395d048c0a9da.jpg","text":"TemporaryFile(/tmp/multipartBody8402172401551196880asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955814063,"filename":"image_15012025_00_45_47_9372.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/10be189a6ce6a8b79277f3b81f24ffb2.jpg","text":"TemporaryFile(/tmp/multipartBody2206999913955048298asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955814063,"filename":"image_15012025_00_46_27_10370.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ddd877defd79c24f20cd54458d7b70e7.jpg","text":"TemporaryFile(/tmp/multipartBody8055401016170352145asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955814063,"filename":"image_15012025_00_45_27_10346.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329164950","file1":"1329164926","file0":"1329164923","file4":"1329164961","file5":"1329164966","file3":"1329164957"},"map_files_photo_id_array":[{"photo_id":"1329164966","filename":"file5"},{"photo_id":"1329164950","filename":"file2"},{"photo_id":"1329164961","filename":"file4"},{"photo_id":"1329164926","filename":"file1"},{"photo_id":"1329164923","filename":"file0"},{"photo_id":"1329164957","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329164950":["hashtag1","hashtag2"]},{"1329164923":["hashtag1","hashtag2"]},{"1329164926":["hashtag1","hashtag2"]},{"1329164961":["hashtag1","hashtag2"]},{"1329164966":["hashtag1","hashtag2"]},{"1329164957":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329164950, 1329164923, 1329164926, 1329164961, 1329164966, 1329164957)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.95955681800842 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 15 --only_old 0
2025-01-15 16:43:32.214558
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/46/image_15012025_00_46_47_10350.jpg', '/home/pi/Desktop/images/15012025/00/46/image_15012025_00_46_57_10360.jpg', '/home/pi/Desktop/images/15012025/00/47/image_15012025_00_47_17_10405.jpg', '/home/pi/Desktop/images/15012025/00/47/image_15012025_00_47_27_10369.jpg', '/home/pi/Desktop/images/15012025/00/47/image_15012025_00_47_57_9348.jpg', '/home/pi/Desktop/images/15012025/00/48/image_15012025_00_48_17_10446.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/46/image_15012025_00_46_47_10350.jpg
/home/pi/Desktop/images/15012025/00/46/image_15012025_00_46_57_10360.jpg
/home/pi/Desktop/images/15012025/00/47/image_15012025_00_47_17_10405.jpg
/home/pi/Desktop/images/15012025/00/47/image_15012025_00_47_27_10369.jpg
/home/pi/Desktop/images/15012025/00/47/image_15012025_00_47_57_9348.jpg
/home/pi/Desktop/images/15012025/00/48/image_15012025_00_48_17_10446.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329165016","1329165001","1329164997","1329165009","1329164993","1329165005"],"photo_ids_order":["1329164993","1329164997","1329165001","1329165005","1329165009","1329165016"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9ebf875d4e3c3d85babd2468b073ab8d.jpg","text":"TemporaryFile(/tmp/multipartBody5730250168520140996asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955873236,"filename":"image_15012025_00_48_17_10446.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5ba7f8bc8000257dadf17cb1800f44be.jpg","text":"TemporaryFile(/tmp/multipartBody4566979063346964214asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955873236,"filename":"image_15012025_00_47_17_10405.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/083e914effc14799e0b7c8906d432126.jpg","text":"TemporaryFile(/tmp/multipartBody9009904194869230699asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955873236,"filename":"image_15012025_00_46_57_10360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/26cb30779d7c422ebdaba8c4b534f7ba.jpg","text":"TemporaryFile(/tmp/multipartBody7199249909168668184asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955873236,"filename":"image_15012025_00_47_57_9348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2ab8b8e32e5eea2661cd39c8f821137b.jpg","text":"TemporaryFile(/tmp/multipartBody6054455996532567207asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955873236,"filename":"image_15012025_00_46_47_10350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5cf86ed644629e38089c4462ac6bc356.jpg","text":"TemporaryFile(/tmp/multipartBody6362767127842080318asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955873236,"filename":"image_15012025_00_47_27_10369.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329165001","file1":"1329164997","file0":"1329164993","file4":"1329165009","file5":"1329165016","file3":"1329165005"},"map_files_photo_id_array":[{"photo_id":"1329165016","filename":"file5"},{"photo_id":"1329165001","filename":"file2"},{"photo_id":"1329165009","filename":"file4"},{"photo_id":"1329164997","filename":"file1"},{"photo_id":"1329164993","filename":"file0"},{"photo_id":"1329165005","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329165016":["hashtag1","hashtag2"]},{"1329165001":["hashtag1","hashtag2"]},{"1329164997":["hashtag1","hashtag2"]},{"1329165009":["hashtag1","hashtag2"]},{"1329164993":["hashtag1","hashtag2"]},{"1329165005":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329165016, 1329165001, 1329164997, 1329165009, 1329164993, 1329165005)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.85700488090515 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 15 --only_old 0
2025-01-15 16:44:32.422610
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/48/image_15012025_00_48_27_9575.jpg', '/home/pi/Desktop/images/15012025/00/48/image_15012025_00_48_47_9358.jpg', '/home/pi/Desktop/images/15012025/00/48/image_15012025_00_48_57_10497.jpg', '/home/pi/Desktop/images/15012025/00/48/image_15012025_00_49_07_9374.jpg', '/home/pi/Desktop/images/15012025/00/49/image_15012025_00_49_27_10443.jpg', '/home/pi/Desktop/images/15012025/00/49/image_15012025_00_49_47_10371.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/48/image_15012025_00_48_27_9575.jpg
/home/pi/Desktop/images/15012025/00/48/image_15012025_00_48_47_9358.jpg
/home/pi/Desktop/images/15012025/00/48/image_15012025_00_48_57_10497.jpg
/home/pi/Desktop/images/15012025/00/48/image_15012025_00_49_07_9374.jpg
/home/pi/Desktop/images/15012025/00/49/image_15012025_00_49_27_10443.jpg
/home/pi/Desktop/images/15012025/00/49/image_15012025_00_49_47_10371.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329165106","1329165075","1329165126","1329165065","1329165134","1329165070"],"photo_ids_order":["1329165065","1329165070","1329165075","1329165106","1329165126","1329165134"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/db77ef6dda726897e8cdb2f2a1f014c9.jpg","text":"TemporaryFile(/tmp/multipartBody9173757181292975363asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955933445,"filename":"image_15012025_00_49_07_9374.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/37bc836997e06565d0848b9f4f457efd.jpg","text":"TemporaryFile(/tmp/multipartBody7626742500756658817asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955933445,"filename":"image_15012025_00_48_57_10497.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/00fd8e53e668c46f0c76150b6cb7bc99.jpg","text":"TemporaryFile(/tmp/multipartBody1215942682279705191asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955933445,"filename":"image_15012025_00_49_27_10443.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2b4bd9092e99034ad1aa3b8091453ee7.jpg","text":"TemporaryFile(/tmp/multipartBody9185400466859486673asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955933445,"filename":"image_15012025_00_48_27_9575.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7ef72f27817025aeae1c272d79560066.jpg","text":"TemporaryFile(/tmp/multipartBody6317844007676974186asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955933445,"filename":"image_15012025_00_49_47_10371.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/01fb1d32f85f3d45936e127da4010c65.jpg","text":"TemporaryFile(/tmp/multipartBody2064514817799869042asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955933445,"filename":"image_15012025_00_48_47_9358.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329165075","file1":"1329165070","file0":"1329165065","file4":"1329165126","file5":"1329165134","file3":"1329165106"},"map_files_photo_id_array":[{"photo_id":"1329165134","filename":"file5"},{"photo_id":"1329165075","filename":"file2"},{"photo_id":"1329165126","filename":"file4"},{"photo_id":"1329165070","filename":"file1"},{"photo_id":"1329165065","filename":"file0"},{"photo_id":"1329165106","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329165106":["hashtag1","hashtag2"]},{"1329165075":["hashtag1","hashtag2"]},{"1329165126":["hashtag1","hashtag2"]},{"1329165065":["hashtag1","hashtag2"]},{"1329165134":["hashtag1","hashtag2"]},{"1329165070":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329165106, 1329165075, 1329165126, 1329165065, 1329165134, 1329165070)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.64485716819763 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 15 --only_old 0
2025-01-15 16:45:32.796764
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/49/image_15012025_00_49_57_10358.jpg', '/home/pi/Desktop/images/15012025/00/50/image_15012025_00_50_17_10446.jpg', '/home/pi/Desktop/images/15012025/00/50/image_15012025_00_50_27_9350.jpg', '/home/pi/Desktop/images/15012025/00/50/image_15012025_00_50_47_10356.jpg', '/home/pi/Desktop/images/15012025/00/51/image_15012025_00_51_27_9361.jpg', '/home/pi/Desktop/images/15012025/00/51/image_15012025_00_51_37_10354.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/49/image_15012025_00_49_57_10358.jpg
/home/pi/Desktop/images/15012025/00/50/image_15012025_00_50_17_10446.jpg
/home/pi/Desktop/images/15012025/00/50/image_15012025_00_50_27_9350.jpg
/home/pi/Desktop/images/15012025/00/50/image_15012025_00_50_47_10356.jpg
/home/pi/Desktop/images/15012025/00/51/image_15012025_00_51_27_9361.jpg
/home/pi/Desktop/images/15012025/00/51/image_15012025_00_51_37_10354.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329165195","1329165182","1329165194","1329165326","1329165233","1329165190"],"photo_ids_order":["1329165182","1329165190","1329165194","1329165195","1329165233","1329165326"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0fed73a6f5422d34b145eaae9f0f51f9.jpg","text":"TemporaryFile(/tmp/multipartBody8732894994535332679asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955999606,"filename":"image_15012025_00_50_47_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9e9ebf1ff159f5a9280ababa492b513b.jpg","text":"TemporaryFile(/tmp/multipartBody7328712030702390887asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955999606,"filename":"image_15012025_00_49_57_10358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/75f2f4a0c2fe56bf59e50ae245ad74d3.jpg","text":"TemporaryFile(/tmp/multipartBody3779910633573936001asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955999606,"filename":"image_15012025_00_50_27_9350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/633247f7d270a103ac8ee0e6b4f31660.jpg","text":"TemporaryFile(/tmp/multipartBody580487185488547971asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955999606,"filename":"image_15012025_00_51_37_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/53ce766c6405359ae9fb69bfe6f99ea8.jpg","text":"TemporaryFile(/tmp/multipartBody7644914356422611531asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955999606,"filename":"image_15012025_00_51_27_9361.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a04c8e75c0f330b3664595c5452c3e4c.jpg","text":"TemporaryFile(/tmp/multipartBody7635873562855293204asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736955999606,"filename":"image_15012025_00_50_17_10446.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329165194","file1":"1329165190","file0":"1329165182","file4":"1329165233","file5":"1329165326","file3":"1329165195"},"map_files_photo_id_array":[{"photo_id":"1329165326","filename":"file5"},{"photo_id":"1329165194","filename":"file2"},{"photo_id":"1329165233","filename":"file4"},{"photo_id":"1329165190","filename":"file1"},{"photo_id":"1329165182","filename":"file0"},{"photo_id":"1329165195","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329165195":["hashtag1","hashtag2"]},{"1329165182":["hashtag1","hashtag2"]},{"1329165194":["hashtag1","hashtag2"]},{"1329165326":["hashtag1","hashtag2"]},{"1329165233":["hashtag1","hashtag2"]},{"1329165190":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329165195, 1329165182, 1329165194, 1329165326, 1329165233, 1329165190)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 48.170448780059814 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 15 --only_old 0
2025-01-15 16:46:32.858818
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/51/image_15012025_00_51_47_9458.jpg', '/home/pi/Desktop/images/15012025/00/51/image_15012025_00_51_57_10372.jpg', '/home/pi/Desktop/images/15012025/00/51/image_15012025_00_52_07_10376.jpg', '/home/pi/Desktop/images/15012025/00/52/image_15012025_00_52_17_9331.jpg', '/home/pi/Desktop/images/15012025/00/52/image_15012025_00_52_27_10440.jpg', '/home/pi/Desktop/images/15012025/00/52/image_15012025_00_52_37_10368.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/51/image_15012025_00_51_47_9458.jpg
/home/pi/Desktop/images/15012025/00/51/image_15012025_00_51_57_10372.jpg
/home/pi/Desktop/images/15012025/00/51/image_15012025_00_52_07_10376.jpg
/home/pi/Desktop/images/15012025/00/52/image_15012025_00_52_17_9331.jpg
/home/pi/Desktop/images/15012025/00/52/image_15012025_00_52_27_10440.jpg
/home/pi/Desktop/images/15012025/00/52/image_15012025_00_52_37_10368.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329165420","1329165423","1329165417","1329165408","1329165413","1329165404"],"photo_ids_order":["1329165404","1329165408","1329165413","1329165417","1329165420","1329165423"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e79a0b2c32ae6ca66e8329a4ed3aaad6.jpg","text":"TemporaryFile(/tmp/multipartBody1187722672092678428asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956053897,"filename":"image_15012025_00_52_27_10440.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/01beac7c6615c221db15f2ab6a56b27d.jpg","text":"TemporaryFile(/tmp/multipartBody7881316621738454981asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956053897,"filename":"image_15012025_00_52_37_10368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7333a26f55a8f6033bfb920e7801939f.jpg","text":"TemporaryFile(/tmp/multipartBody4214034655775852041asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956053897,"filename":"image_15012025_00_52_17_9331.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d09920c1fcfc7f7a43522045ec88da68.jpg","text":"TemporaryFile(/tmp/multipartBody8231524659065464302asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956053897,"filename":"image_15012025_00_51_57_10372.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/04d27308932ea1b1bd9501669b28fb1d.jpg","text":"TemporaryFile(/tmp/multipartBody10377280917304330asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956053897,"filename":"image_15012025_00_52_07_10376.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b739a587d365784ad26a95b2c9e7c3f1.jpg","text":"TemporaryFile(/tmp/multipartBody2043512838078665917asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956053897,"filename":"image_15012025_00_51_47_9458.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329165413","file1":"1329165408","file0":"1329165404","file4":"1329165420","file5":"1329165423","file3":"1329165417"},"map_files_photo_id_array":[{"photo_id":"1329165423","filename":"file5"},{"photo_id":"1329165413","filename":"file2"},{"photo_id":"1329165420","filename":"file4"},{"photo_id":"1329165408","filename":"file1"},{"photo_id":"1329165404","filename":"file0"},{"photo_id":"1329165417","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329165420":["hashtag1","hashtag2"]},{"1329165423":["hashtag1","hashtag2"]},{"1329165417":["hashtag1","hashtag2"]},{"1329165408":["hashtag1","hashtag2"]},{"1329165413":["hashtag1","hashtag2"]},{"1329165404":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329165420, 1329165423, 1329165417, 1329165408, 1329165413, 1329165404)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.915191888809204 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 15 --only_old 0
2025-01-15 16:47:32.996243
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/52/image_15012025_00_52_47_9354.jpg', '/home/pi/Desktop/images/15012025/00/52/image_15012025_00_52_57_10360.jpg', '/home/pi/Desktop/images/15012025/00/52/image_15012025_00_53_08_10339.jpg', '/home/pi/Desktop/images/15012025/00/53/image_15012025_00_53_17_9354.jpg', '/home/pi/Desktop/images/15012025/00/53/image_15012025_00_53_37_9356.jpg', '/home/pi/Desktop/images/15012025/00/53/image_15012025_00_53_47_10417.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/52/image_15012025_00_52_47_9354.jpg
/home/pi/Desktop/images/15012025/00/52/image_15012025_00_52_57_10360.jpg
/home/pi/Desktop/images/15012025/00/52/image_15012025_00_53_08_10339.jpg
/home/pi/Desktop/images/15012025/00/53/image_15012025_00_53_17_9354.jpg
/home/pi/Desktop/images/15012025/00/53/image_15012025_00_53_37_9356.jpg
/home/pi/Desktop/images/15012025/00/53/image_15012025_00_53_47_10417.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329165478","1329165471","1329165465","1329165452","1329165490","1329165460"],"photo_ids_order":["1329165452","1329165460","1329165465","1329165471","1329165478","1329165490"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4d75c421da15ae6418abe5c35ebb6e51.jpg","text":"TemporaryFile(/tmp/multipartBody3341762270282348704asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956113997,"filename":"image_15012025_00_53_37_9356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/97db0f12dbc71b504ea9e30368301324.jpg","text":"TemporaryFile(/tmp/multipartBody7928250143190570070asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956113997,"filename":"image_15012025_00_53_17_9354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/58aaaed1d50ac6098ae5e1ac61613c1b.jpg","text":"TemporaryFile(/tmp/multipartBody6551504934520299961asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956113997,"filename":"image_15012025_00_53_08_10339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/86e827063ff4fec7792516415687c897.jpg","text":"TemporaryFile(/tmp/multipartBody2891205346428954679asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956113997,"filename":"image_15012025_00_52_47_9354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/daca92e62fd1183a6aebc6b116229c5d.jpg","text":"TemporaryFile(/tmp/multipartBody1622273105994150784asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956113997,"filename":"image_15012025_00_53_47_10417.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/10f11c9909c57c4badf0d517ead2fb89.jpg","text":"TemporaryFile(/tmp/multipartBody842536621324366609asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956113997,"filename":"image_15012025_00_52_57_10360.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329165465","file1":"1329165460","file0":"1329165452","file4":"1329165478","file5":"1329165490","file3":"1329165471"},"map_files_photo_id_array":[{"photo_id":"1329165490","filename":"file5"},{"photo_id":"1329165465","filename":"file2"},{"photo_id":"1329165478","filename":"file4"},{"photo_id":"1329165460","filename":"file1"},{"photo_id":"1329165452","filename":"file0"},{"photo_id":"1329165471","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329165478":["hashtag1","hashtag2"]},{"1329165471":["hashtag1","hashtag2"]},{"1329165465":["hashtag1","hashtag2"]},{"1329165452":["hashtag1","hashtag2"]},{"1329165490":["hashtag1","hashtag2"]},{"1329165460":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329165478, 1329165471, 1329165465, 1329165452, 1329165490, 1329165460)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.72826814651489 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 15 --only_old 0
2025-01-15 16:48:32.328349
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/53/image_15012025_00_53_57_10358.jpg', '/home/pi/Desktop/images/15012025/00/54/image_15012025_00_54_17_10389.jpg', '/home/pi/Desktop/images/15012025/00/54/image_15012025_00_54_28_10351.jpg', '/home/pi/Desktop/images/15012025/00/54/image_15012025_00_54_37_9398.jpg', '/home/pi/Desktop/images/15012025/00/54/image_15012025_00_54_57_9340.jpg', '/home/pi/Desktop/images/15012025/00/54/image_15012025_00_55_07_10436.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/53/image_15012025_00_53_57_10358.jpg
/home/pi/Desktop/images/15012025/00/54/image_15012025_00_54_17_10389.jpg
/home/pi/Desktop/images/15012025/00/54/image_15012025_00_54_28_10351.jpg
/home/pi/Desktop/images/15012025/00/54/image_15012025_00_54_37_9398.jpg
/home/pi/Desktop/images/15012025/00/54/image_15012025_00_54_57_9340.jpg
/home/pi/Desktop/images/15012025/00/54/image_15012025_00_55_07_10436.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329165517","1329165525","1329165510","1329165530","1329165533","1329165503"],"photo_ids_order":["1329165503","1329165510","1329165517","1329165525","1329165530","1329165533"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ea107ae2ced2954b304d36130ba9326d.jpg","text":"TemporaryFile(/tmp/multipartBody6628500456082695314asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956173341,"filename":"image_15012025_00_54_28_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5fbf01e20d50a633d71ddf1594febee7.jpg","text":"TemporaryFile(/tmp/multipartBody2973721746231380717asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956173341,"filename":"image_15012025_00_54_37_9398.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b27518112f2f97403fafa933c523943e.jpg","text":"TemporaryFile(/tmp/multipartBody6132475223240841209asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956173341,"filename":"image_15012025_00_54_17_10389.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e56327864c337d0c39191a6b56445431.jpg","text":"TemporaryFile(/tmp/multipartBody6006307429751339940asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956173341,"filename":"image_15012025_00_54_57_9340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a3732de8e86ebdf5e7111ff9389cdb31.jpg","text":"TemporaryFile(/tmp/multipartBody7207930486656325766asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956173341,"filename":"image_15012025_00_55_07_10436.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/98a4017010215347aae01d6cea4d0334.jpg","text":"TemporaryFile(/tmp/multipartBody7042074053478418789asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956173341,"filename":"image_15012025_00_53_57_10358.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329165517","file1":"1329165510","file0":"1329165503","file4":"1329165530","file5":"1329165533","file3":"1329165525"},"map_files_photo_id_array":[{"photo_id":"1329165533","filename":"file5"},{"photo_id":"1329165517","filename":"file2"},{"photo_id":"1329165530","filename":"file4"},{"photo_id":"1329165510","filename":"file1"},{"photo_id":"1329165503","filename":"file0"},{"photo_id":"1329165525","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329165517":["hashtag1","hashtag2"]},{"1329165525":["hashtag1","hashtag2"]},{"1329165510":["hashtag1","hashtag2"]},{"1329165530":["hashtag1","hashtag2"]},{"1329165533":["hashtag1","hashtag2"]},{"1329165503":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329165517, 1329165525, 1329165510, 1329165530, 1329165533, 1329165503)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.60687708854675 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 15 --only_old 0
2025-01-15 16:49:32.578405
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/55/image_15012025_00_55_27_9351.jpg', '/home/pi/Desktop/images/15012025/00/55/image_15012025_00_55_37_10415.jpg', '/home/pi/Desktop/images/15012025/00/55/image_15012025_00_55_57_10493.jpg', '/home/pi/Desktop/images/15012025/00/55/image_15012025_00_56_07_10362.jpg', '/home/pi/Desktop/images/15012025/00/56/image_15012025_00_56_27_10473.jpg', '/home/pi/Desktop/images/15012025/00/57/image_15012025_00_57_17_10364.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/55/image_15012025_00_55_27_9351.jpg
/home/pi/Desktop/images/15012025/00/55/image_15012025_00_55_37_10415.jpg
/home/pi/Desktop/images/15012025/00/55/image_15012025_00_55_57_10493.jpg
/home/pi/Desktop/images/15012025/00/55/image_15012025_00_56_07_10362.jpg
/home/pi/Desktop/images/15012025/00/56/image_15012025_00_56_27_10473.jpg
/home/pi/Desktop/images/15012025/00/57/image_15012025_00_57_17_10364.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329165559","1329165550","1329165732","1329165749","1329165566","1329165602"],"photo_ids_order":["1329165550","1329165559","1329165566","1329165602","1329165732","1329165749"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b4210e1e871dd3f86c7bcf0c6b6434c3.jpg","text":"TemporaryFile(/tmp/multipartBody3755149500756853210asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956233615,"filename":"image_15012025_00_55_37_10415.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5f0fc12a0dff8229abb004e2a4874d53.jpg","text":"TemporaryFile(/tmp/multipartBody8859993614129207632asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956233615,"filename":"image_15012025_00_55_27_9351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/511e6013cfbeaf95ebb59f6109563a37.jpg","text":"TemporaryFile(/tmp/multipartBody6798774519941118187asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956233615,"filename":"image_15012025_00_56_27_10473.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5a3fc052c43e5a08ba112deb35b7ae38.jpg","text":"TemporaryFile(/tmp/multipartBody3889791265909880240asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956233615,"filename":"image_15012025_00_57_17_10364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5e8c6ea4c7f19b377532398d04ca4e28.jpg","text":"TemporaryFile(/tmp/multipartBody1292383066575925580asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956233615,"filename":"image_15012025_00_55_57_10493.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1877d3fe5c8751bd16fe2f9b98332381.jpg","text":"TemporaryFile(/tmp/multipartBody2108974811755613125asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956233615,"filename":"image_15012025_00_56_07_10362.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329165566","file1":"1329165559","file0":"1329165550","file4":"1329165732","file5":"1329165749","file3":"1329165602"},"map_files_photo_id_array":[{"photo_id":"1329165749","filename":"file5"},{"photo_id":"1329165566","filename":"file2"},{"photo_id":"1329165732","filename":"file4"},{"photo_id":"1329165559","filename":"file1"},{"photo_id":"1329165550","filename":"file0"},{"photo_id":"1329165602","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329165559":["hashtag1","hashtag2"]},{"1329165550":["hashtag1","hashtag2"]},{"1329165732":["hashtag1","hashtag2"]},{"1329165749":["hashtag1","hashtag2"]},{"1329165566":["hashtag1","hashtag2"]},{"1329165602":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329165559, 1329165550, 1329165732, 1329165749, 1329165566, 1329165602)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.367267370224 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 15 --only_old 0
2025-01-15 16:50:32.895887
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/57/image_15012025_00_57_28_10356.jpg', '/home/pi/Desktop/images/15012025/00/57/image_15012025_00_57_37_9339.jpg', '/home/pi/Desktop/images/15012025/00/57/image_15012025_00_57_47_10349.jpg', '/home/pi/Desktop/images/15012025/00/57/image_15012025_00_58_07_10453.jpg', '/home/pi/Desktop/images/15012025/00/58/image_15012025_00_58_17_10371.jpg', '/home/pi/Desktop/images/15012025/00/58/image_15012025_00_58_27_9439.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/57/image_15012025_00_57_28_10356.jpg
/home/pi/Desktop/images/15012025/00/57/image_15012025_00_57_37_9339.jpg
/home/pi/Desktop/images/15012025/00/57/image_15012025_00_57_47_10349.jpg
/home/pi/Desktop/images/15012025/00/57/image_15012025_00_58_07_10453.jpg
/home/pi/Desktop/images/15012025/00/58/image_15012025_00_58_17_10371.jpg
/home/pi/Desktop/images/15012025/00/58/image_15012025_00_58_27_9439.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329165802","1329165819","1329165810","1329165828","1329165830","1329165824"],"photo_ids_order":["1329165802","1329165810","1329165819","1329165824","1329165828","1329165830"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5fcf3c1fa2c77ed21eba4caeb822de9a.jpg","text":"TemporaryFile(/tmp/multipartBody7934785303769535694asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956293892,"filename":"image_15012025_00_57_28_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f1e202568cf603449d0e1059076175e6.jpg","text":"TemporaryFile(/tmp/multipartBody3674719379262650312asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956293892,"filename":"image_15012025_00_57_47_10349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/82350e11c3ccb9a585eca5661d802ea9.jpg","text":"TemporaryFile(/tmp/multipartBody7843711754082818689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956293892,"filename":"image_15012025_00_57_37_9339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d2bab070b59753d6d5cee019a4b5a334.jpg","text":"TemporaryFile(/tmp/multipartBody2969902205061800094asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956293892,"filename":"image_15012025_00_58_17_10371.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6d95c9c11a5408486da9eb16282528f7.jpg","text":"TemporaryFile(/tmp/multipartBody8314990861947399129asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956293892,"filename":"image_15012025_00_58_27_9439.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d1a2aff4bb69610c601d3856c1d012f3.jpg","text":"TemporaryFile(/tmp/multipartBody3223339936031532117asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956293892,"filename":"image_15012025_00_58_07_10453.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329165819","file1":"1329165810","file0":"1329165802","file4":"1329165828","file5":"1329165830","file3":"1329165824"},"map_files_photo_id_array":[{"photo_id":"1329165830","filename":"file5"},{"photo_id":"1329165819","filename":"file2"},{"photo_id":"1329165828","filename":"file4"},{"photo_id":"1329165810","filename":"file1"},{"photo_id":"1329165802","filename":"file0"},{"photo_id":"1329165824","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329165802":["hashtag1","hashtag2"]},{"1329165819":["hashtag1","hashtag2"]},{"1329165810":["hashtag1","hashtag2"]},{"1329165828":["hashtag1","hashtag2"]},{"1329165830":["hashtag1","hashtag2"]},{"1329165824":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329165802, 1329165819, 1329165810, 1329165828, 1329165830, 1329165824)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.44933605194092 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 15 --only_old 0
2025-01-15 16:51:33.147287
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/58/image_15012025_00_58_37_10480.jpg', '/home/pi/Desktop/images/15012025/00/58/image_15012025_00_58_47_9440.jpg', '/home/pi/Desktop/images/15012025/00/58/image_15012025_00_58_57_10361.jpg', '/home/pi/Desktop/images/15012025/00/58/image_15012025_00_59_08_10355.jpg', '/home/pi/Desktop/images/15012025/00/59/image_15012025_00_59_37_9470.jpg', '/home/pi/Desktop/images/15012025/00/59/image_15012025_00_59_47_10350.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/58/image_15012025_00_58_37_10480.jpg
/home/pi/Desktop/images/15012025/00/58/image_15012025_00_58_47_9440.jpg
/home/pi/Desktop/images/15012025/00/58/image_15012025_00_58_57_10361.jpg
/home/pi/Desktop/images/15012025/00/58/image_15012025_00_59_08_10355.jpg
/home/pi/Desktop/images/15012025/00/59/image_15012025_00_59_37_9470.jpg
/home/pi/Desktop/images/15012025/00/59/image_15012025_00_59_47_10350.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329166053","1329166046","1329166049","1329166040","1329166033","1329166027"],"photo_ids_order":["1329166027","1329166033","1329166040","1329166046","1329166049","1329166053"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2c4dd1a3f1c1ecc5d70d3436283d2958.jpg","text":"TemporaryFile(/tmp/multipartBody472820986755955556asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956354156,"filename":"image_15012025_00_59_47_10350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/26c86c793c18763c00942b15c6b65702.jpg","text":"TemporaryFile(/tmp/multipartBody8911941928878361163asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956354156,"filename":"image_15012025_00_59_08_10355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/131a80e984b1920d1d0e1dcd676576c3.jpg","text":"TemporaryFile(/tmp/multipartBody8885694694365781461asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956354156,"filename":"image_15012025_00_59_37_9470.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8f6d861074ac492331ea8e03944efbca.jpg","text":"TemporaryFile(/tmp/multipartBody5902859842484584457asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956354156,"filename":"image_15012025_00_58_57_10361.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2d003b362b8fac29662fbb08db431aa5.jpg","text":"TemporaryFile(/tmp/multipartBody3857596124150798472asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956354156,"filename":"image_15012025_00_58_47_9440.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/62a6524723a09b882f673233ee0cad61.jpg","text":"TemporaryFile(/tmp/multipartBody7772673681372051987asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956354156,"filename":"image_15012025_00_58_37_10480.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329166040","file1":"1329166033","file0":"1329166027","file4":"1329166049","file5":"1329166053","file3":"1329166046"},"map_files_photo_id_array":[{"photo_id":"1329166053","filename":"file5"},{"photo_id":"1329166040","filename":"file2"},{"photo_id":"1329166049","filename":"file4"},{"photo_id":"1329166033","filename":"file1"},{"photo_id":"1329166027","filename":"file0"},{"photo_id":"1329166046","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329166053":["hashtag1","hashtag2"]},{"1329166046":["hashtag1","hashtag2"]},{"1329166049":["hashtag1","hashtag2"]},{"1329166040":["hashtag1","hashtag2"]},{"1329166033":["hashtag1","hashtag2"]},{"1329166027":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329166053, 1329166046, 1329166049, 1329166040, 1329166033, 1329166027)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.22199082374573 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 15 --only_old 0
2025-01-15 16:52:33.083207
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/00/59/image_15012025_00_59_57_9427.jpg', '/home/pi/Desktop/images/15012025/01/01/image_15012025_01_01_14_10077.jpg', '/home/pi/Desktop/images/15012025/01/01/image_15012025_01_01_35_10365.jpg', '/home/pi/Desktop/images/15012025/01/01/image_15012025_01_01_45_9357.jpg', '/home/pi/Desktop/images/15012025/01/02/image_15012025_01_02_15_9341.jpg', '/home/pi/Desktop/images/15012025/01/02/image_15012025_01_02_35_9333.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/00/59/image_15012025_00_59_57_9427.jpg
/home/pi/Desktop/images/15012025/01/01/image_15012025_01_01_14_10077.jpg
/home/pi/Desktop/images/15012025/01/01/image_15012025_01_01_35_10365.jpg
/home/pi/Desktop/images/15012025/01/01/image_15012025_01_01_45_9357.jpg
/home/pi/Desktop/images/15012025/01/02/image_15012025_01_02_15_9341.jpg
/home/pi/Desktop/images/15012025/01/02/image_15012025_01_02_35_9333.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329166161","1329166169","1329166166","1329166148","1329166136","1329166171"],"photo_ids_order":["1329166136","1329166148","1329166161","1329166166","1329166169","1329166171"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2286892716f907420a4dd6153b2335d3.jpg","text":"TemporaryFile(/tmp/multipartBody8730981660151332452asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956414089,"filename":"image_15012025_01_01_35_10365.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e761eeb247d7a9c3ad77b2f7426467b8.jpg","text":"TemporaryFile(/tmp/multipartBody5539497440580684917asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956414089,"filename":"image_15012025_01_02_15_9341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e6f1b727c133d4d7bbeb40ec51826b09.jpg","text":"TemporaryFile(/tmp/multipartBody1310255571661305332asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956414089,"filename":"image_15012025_01_01_45_9357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b9dcfe87c1e541d0cb4fa02a86647197.jpg","text":"TemporaryFile(/tmp/multipartBody3029668667011180322asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956414089,"filename":"image_15012025_01_01_14_10077.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d3fe3953e815d1525bb3dd05a635a623.jpg","text":"TemporaryFile(/tmp/multipartBody7628633441509666531asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956414089,"filename":"image_15012025_00_59_57_9427.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c9673c830a983117c5f248c8b610cdf0.jpg","text":"TemporaryFile(/tmp/multipartBody6164700374439796223asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956414089,"filename":"image_15012025_01_02_35_9333.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329166161","file1":"1329166148","file0":"1329166136","file4":"1329166169","file5":"1329166171","file3":"1329166166"},"map_files_photo_id_array":[{"photo_id":"1329166171","filename":"file5"},{"photo_id":"1329166161","filename":"file2"},{"photo_id":"1329166169","filename":"file4"},{"photo_id":"1329166148","filename":"file1"},{"photo_id":"1329166136","filename":"file0"},{"photo_id":"1329166166","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329166161":["hashtag1","hashtag2"]},{"1329166169":["hashtag1","hashtag2"]},{"1329166166":["hashtag1","hashtag2"]},{"1329166148":["hashtag1","hashtag2"]},{"1329166136":["hashtag1","hashtag2"]},{"1329166171":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329166161, 1329166169, 1329166166, 1329166148, 1329166136, 1329166171)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.34093165397644 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 15 --only_old 0
2025-01-15 16:53:32.436806
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/03/image_15012025_01_03_25_10417.jpg', '/home/pi/Desktop/images/15012025/01/03/image_15012025_01_03_35_9416.jpg', '/home/pi/Desktop/images/15012025/01/03/image_15012025_01_03_45_10359.jpg', '/home/pi/Desktop/images/15012025/01/03/image_15012025_01_03_54_9334.jpg', '/home/pi/Desktop/images/15012025/01/03/image_15012025_01_04_05_10397.jpg', '/home/pi/Desktop/images/15012025/01/04/image_15012025_01_04_25_9361.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/03/image_15012025_01_03_25_10417.jpg
/home/pi/Desktop/images/15012025/01/03/image_15012025_01_03_35_9416.jpg
/home/pi/Desktop/images/15012025/01/03/image_15012025_01_03_45_10359.jpg
/home/pi/Desktop/images/15012025/01/03/image_15012025_01_03_54_9334.jpg
/home/pi/Desktop/images/15012025/01/03/image_15012025_01_04_05_10397.jpg
/home/pi/Desktop/images/15012025/01/04/image_15012025_01_04_25_9361.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.604290246963501 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
2025-01-15 16:53:42.394737
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/03/image_15012025_01_03_25_10417.jpg', '/home/pi/Desktop/images/15012025/01/03/image_15012025_01_03_35_9416.jpg', '/home/pi/Desktop/images/15012025/01/03/image_15012025_01_03_45_10359.jpg', '/home/pi/Desktop/images/15012025/01/03/image_15012025_01_03_54_9334.jpg', '/home/pi/Desktop/images/15012025/01/03/image_15012025_01_04_05_10397.jpg', '/home/pi/Desktop/images/15012025/01/04/image_15012025_01_04_25_9361.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/03/image_15012025_01_03_25_10417.jpg
/home/pi/Desktop/images/15012025/01/03/image_15012025_01_03_35_9416.jpg
/home/pi/Desktop/images/15012025/01/03/image_15012025_01_03_45_10359.jpg
/home/pi/Desktop/images/15012025/01/03/image_15012025_01_03_54_9334.jpg
/home/pi/Desktop/images/15012025/01/03/image_15012025_01_04_05_10397.jpg
/home/pi/Desktop/images/15012025/01/04/image_15012025_01_04_25_9361.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329166266","1329166221","1329166271","1329166214","1329166217","1329166210"],"photo_ids_order":["1329166210","1329166214","1329166217","1329166221","1329166266","1329166271"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/939e7b24a79ab952b47d15e2b213480d.jpg","text":"TemporaryFile(/tmp/multipartBody1794989582047365482asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956483300,"filename":"image_15012025_01_04_05_10397.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0a7773351fe9df7a7d6771bb5b9e5bf6.jpg","text":"TemporaryFile(/tmp/multipartBody8723416056466764503asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956483300,"filename":"image_15012025_01_03_54_9334.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2d05da32b3e934ee164284b3d29c8615.jpg","text":"TemporaryFile(/tmp/multipartBody4182661562013448778asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956483300,"filename":"image_15012025_01_04_25_9361.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/00c57bbf9a67a6b9edb6958721bea8b6.jpg","text":"TemporaryFile(/tmp/multipartBody1585559479939359419asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956483300,"filename":"image_15012025_01_03_35_9416.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e88c17aba1a5c7e8d82807d855184c31.jpg","text":"TemporaryFile(/tmp/multipartBody5582098280718789041asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956483300,"filename":"image_15012025_01_03_45_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/14c1f4f0bbd9c2c0f735eb44db06b195.jpg","text":"TemporaryFile(/tmp/multipartBody8016782696980769511asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956483300,"filename":"image_15012025_01_03_25_10417.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329166217","file1":"1329166214","file0":"1329166210","file4":"1329166266","file5":"1329166271","file3":"1329166221"},"map_files_photo_id_array":[{"photo_id":"1329166271","filename":"file5"},{"photo_id":"1329166217","filename":"file2"},{"photo_id":"1329166266","filename":"file4"},{"photo_id":"1329166214","filename":"file1"},{"photo_id":"1329166210","filename":"file0"},{"photo_id":"1329166221","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329166266":["hashtag1","hashtag2"]},{"1329166221":["hashtag1","hashtag2"]},{"1329166271":["hashtag1","hashtag2"]},{"1329166214":["hashtag1","hashtag2"]},{"1329166217":["hashtag1","hashtag2"]},{"1329166210":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329166266, 1329166221, 1329166271, 1329166214, 1329166217, 1329166210)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.828779458999634 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 15 --only_old 0
2025-01-15 16:54:32.639816
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/04/image_15012025_01_04_35_10338.jpg', '/home/pi/Desktop/images/15012025/01/04/image_15012025_01_04_45_10439.jpg', '/home/pi/Desktop/images/15012025/01/04/image_15012025_01_05_05_10382.jpg', '/home/pi/Desktop/images/15012025/01/05/image_15012025_01_05_14_9378.jpg', '/home/pi/Desktop/images/15012025/01/05/image_15012025_01_05_25_10389.jpg', '/home/pi/Desktop/images/15012025/01/05/image_15012025_01_05_35_10432.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/04/image_15012025_01_04_35_10338.jpg
/home/pi/Desktop/images/15012025/01/04/image_15012025_01_04_45_10439.jpg
/home/pi/Desktop/images/15012025/01/04/image_15012025_01_05_05_10382.jpg
/home/pi/Desktop/images/15012025/01/05/image_15012025_01_05_14_9378.jpg
/home/pi/Desktop/images/15012025/01/05/image_15012025_01_05_25_10389.jpg
/home/pi/Desktop/images/15012025/01/05/image_15012025_01_05_35_10432.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329166312","1329166314","1329166305","1329166295","1329166316","1329166285"],"photo_ids_order":["1329166285","1329166295","1329166305","1329166312","1329166314","1329166316"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6cb8272700eae94f76d71a77b4a16eee.jpg","text":"TemporaryFile(/tmp/multipartBody5326315227971119065asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956533643,"filename":"image_15012025_01_05_14_9378.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/755c02ac8c0117e693056af2e6df0b3c.jpg","text":"TemporaryFile(/tmp/multipartBody7492738029082476255asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956533643,"filename":"image_15012025_01_05_25_10389.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5e5081d54bd647e22b839eb14df593af.jpg","text":"TemporaryFile(/tmp/multipartBody2075477754113298385asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956533643,"filename":"image_15012025_01_05_05_10382.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ba9b26e7f2f2f6bc9ed13de295965829.jpg","text":"TemporaryFile(/tmp/multipartBody8478516576852118403asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956533643,"filename":"image_15012025_01_04_45_10439.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ce09783b42672f26e483c5b81c116630.jpg","text":"TemporaryFile(/tmp/multipartBody2125281869403864260asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956533643,"filename":"image_15012025_01_05_35_10432.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b509d2e1196828ae7ed6df7996fabcb8.jpg","text":"TemporaryFile(/tmp/multipartBody4554986125006549674asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956533643,"filename":"image_15012025_01_04_35_10338.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329166305","file1":"1329166295","file0":"1329166285","file4":"1329166314","file5":"1329166316","file3":"1329166312"},"map_files_photo_id_array":[{"photo_id":"1329166316","filename":"file5"},{"photo_id":"1329166305","filename":"file2"},{"photo_id":"1329166314","filename":"file4"},{"photo_id":"1329166295","filename":"file1"},{"photo_id":"1329166285","filename":"file0"},{"photo_id":"1329166312","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329166312":["hashtag1","hashtag2"]},{"1329166314":["hashtag1","hashtag2"]},{"1329166305":["hashtag1","hashtag2"]},{"1329166295":["hashtag1","hashtag2"]},{"1329166316":["hashtag1","hashtag2"]},{"1329166285":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329166312, 1329166314, 1329166305, 1329166295, 1329166316, 1329166285)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.446051359176636 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 15 --only_old 0
2025-01-15 16:55:32.903667
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/05/image_15012025_01_05_45_9352.jpg', '/home/pi/Desktop/images/15012025/01/05/image_15012025_01_05_55_10481.jpg', '/home/pi/Desktop/images/15012025/01/06/image_15012025_01_06_15_10349.jpg', '/home/pi/Desktop/images/15012025/01/06/image_15012025_01_06_25_10361.jpg', '/home/pi/Desktop/images/15012025/01/06/image_15012025_01_06_35_9351.jpg', '/home/pi/Desktop/images/15012025/01/06/image_15012025_01_06_45_10367.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/05/image_15012025_01_05_45_9352.jpg
/home/pi/Desktop/images/15012025/01/05/image_15012025_01_05_55_10481.jpg
/home/pi/Desktop/images/15012025/01/06/image_15012025_01_06_15_10349.jpg
/home/pi/Desktop/images/15012025/01/06/image_15012025_01_06_25_10361.jpg
/home/pi/Desktop/images/15012025/01/06/image_15012025_01_06_35_9351.jpg
/home/pi/Desktop/images/15012025/01/06/image_15012025_01_06_45_10367.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329166362","1329166365","1329166353","1329166361","1329166358","1329166348"],"photo_ids_order":["1329166348","1329166353","1329166358","1329166361","1329166362","1329166365"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/37c4c561e8a7b7fabbae1696923bc6fe.jpg","text":"TemporaryFile(/tmp/multipartBody3920059769686050880asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956593906,"filename":"image_15012025_01_06_35_9351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/06d083a4639d4a061ff0f2b03dc7e166.jpg","text":"TemporaryFile(/tmp/multipartBody8613101444463537046asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956593906,"filename":"image_15012025_01_06_45_10367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d4d2a880ece0632897cd29228bb6f1e7.jpg","text":"TemporaryFile(/tmp/multipartBody3237119135703236643asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956593906,"filename":"image_15012025_01_05_55_10481.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d06ae122299a42f6245c59573e51bf43.jpg","text":"TemporaryFile(/tmp/multipartBody7916927966489729881asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956593906,"filename":"image_15012025_01_06_25_10361.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/eeec7ce5bcd4fad1b0cc8c45bfbcd198.jpg","text":"TemporaryFile(/tmp/multipartBody7835097908124091462asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956593906,"filename":"image_15012025_01_06_15_10349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/50dcec30dbe758ab898f1da74cc4221b.jpg","text":"TemporaryFile(/tmp/multipartBody3077275242982115537asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956593906,"filename":"image_15012025_01_05_45_9352.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329166358","file1":"1329166353","file0":"1329166348","file4":"1329166362","file5":"1329166365","file3":"1329166361"},"map_files_photo_id_array":[{"photo_id":"1329166365","filename":"file5"},{"photo_id":"1329166358","filename":"file2"},{"photo_id":"1329166362","filename":"file4"},{"photo_id":"1329166353","filename":"file1"},{"photo_id":"1329166348","filename":"file0"},{"photo_id":"1329166361","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329166362":["hashtag1","hashtag2"]},{"1329166365":["hashtag1","hashtag2"]},{"1329166353":["hashtag1","hashtag2"]},{"1329166361":["hashtag1","hashtag2"]},{"1329166358":["hashtag1","hashtag2"]},{"1329166348":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329166362, 1329166365, 1329166353, 1329166361, 1329166358, 1329166348)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.449164152145386 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 15 --only_old 0
2025-01-15 16:56:33.165672
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/06/image_15012025_01_06_55_10459.jpg', '/home/pi/Desktop/images/15012025/01/06/image_15012025_01_07_05_9358.jpg', '/home/pi/Desktop/images/15012025/01/07/image_15012025_01_07_15_10409.jpg', '/home/pi/Desktop/images/15012025/01/07/image_15012025_01_07_24_9362.jpg', '/home/pi/Desktop/images/15012025/01/07/image_15012025_01_07_35_10431.jpg', '/home/pi/Desktop/images/15012025/01/07/image_15012025_01_07_45_10453.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/06/image_15012025_01_06_55_10459.jpg
/home/pi/Desktop/images/15012025/01/06/image_15012025_01_07_05_9358.jpg
/home/pi/Desktop/images/15012025/01/07/image_15012025_01_07_15_10409.jpg
/home/pi/Desktop/images/15012025/01/07/image_15012025_01_07_24_9362.jpg
/home/pi/Desktop/images/15012025/01/07/image_15012025_01_07_35_10431.jpg
/home/pi/Desktop/images/15012025/01/07/image_15012025_01_07_45_10453.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329166419","1329166404","1329166412","1329166409","1329166384","1329166378"],"photo_ids_order":["1329166378","1329166384","1329166404","1329166409","1329166412","1329166419"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1ec9d0aea4d00a7959aab476e06a80a5.jpg","text":"TemporaryFile(/tmp/multipartBody5326352026359427531asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956654155,"filename":"image_15012025_01_07_45_10453.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/017c1b3a16fb42d48836417e14de1637.jpg","text":"TemporaryFile(/tmp/multipartBody5764468457406507810asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956654155,"filename":"image_15012025_01_07_15_10409.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9e68c502c5541363582dd96e2711013f.jpg","text":"TemporaryFile(/tmp/multipartBody3849529220267137082asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956654155,"filename":"image_15012025_01_07_35_10431.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bd30fe4a8eb317f255a259150daacc56.jpg","text":"TemporaryFile(/tmp/multipartBody5017468757748864319asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956654155,"filename":"image_15012025_01_07_24_9362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ba48e197191169d5ddb68485ee17030c.jpg","text":"TemporaryFile(/tmp/multipartBody4244058687094200270asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956654155,"filename":"image_15012025_01_07_05_9358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f44f5cb854ccb6db322a9aba18b96afc.jpg","text":"TemporaryFile(/tmp/multipartBody1605570967605971169asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956654155,"filename":"image_15012025_01_06_55_10459.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329166404","file1":"1329166384","file0":"1329166378","file4":"1329166412","file5":"1329166419","file3":"1329166409"},"map_files_photo_id_array":[{"photo_id":"1329166419","filename":"file5"},{"photo_id":"1329166404","filename":"file2"},{"photo_id":"1329166412","filename":"file4"},{"photo_id":"1329166384","filename":"file1"},{"photo_id":"1329166378","filename":"file0"},{"photo_id":"1329166409","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329166419":["hashtag1","hashtag2"]},{"1329166404":["hashtag1","hashtag2"]},{"1329166412":["hashtag1","hashtag2"]},{"1329166409":["hashtag1","hashtag2"]},{"1329166384":["hashtag1","hashtag2"]},{"1329166378":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329166419, 1329166404, 1329166412, 1329166409, 1329166384, 1329166378)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.99483895301819 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 15 --only_old 0
2025-01-15 16:57:32.229840
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/07/image_15012025_01_07_55_9352.jpg', '/home/pi/Desktop/images/15012025/01/07/image_15012025_01_08_05_10437.jpg', '/home/pi/Desktop/images/15012025/01/08/image_15012025_01_08_14_9322.jpg', '/home/pi/Desktop/images/15012025/01/08/image_15012025_01_08_25_10363.jpg', '/home/pi/Desktop/images/15012025/01/08/image_15012025_01_08_35_10409.jpg', '/home/pi/Desktop/images/15012025/01/08/image_15012025_01_08_45_9357.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/07/image_15012025_01_07_55_9352.jpg
/home/pi/Desktop/images/15012025/01/07/image_15012025_01_08_05_10437.jpg
/home/pi/Desktop/images/15012025/01/08/image_15012025_01_08_14_9322.jpg
/home/pi/Desktop/images/15012025/01/08/image_15012025_01_08_25_10363.jpg
/home/pi/Desktop/images/15012025/01/08/image_15012025_01_08_35_10409.jpg
/home/pi/Desktop/images/15012025/01/08/image_15012025_01_08_45_9357.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
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
2025-01-15 16:59:03.657254
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/07/image_15012025_01_07_55_9352.jpg', '/home/pi/Desktop/images/15012025/01/07/image_15012025_01_08_05_10437.jpg', '/home/pi/Desktop/images/15012025/01/08/image_15012025_01_08_14_9322.jpg', '/home/pi/Desktop/images/15012025/01/08/image_15012025_01_08_25_10363.jpg', '/home/pi/Desktop/images/15012025/01/08/image_15012025_01_08_35_10409.jpg', '/home/pi/Desktop/images/15012025/01/08/image_15012025_01_08_45_9357.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/07/image_15012025_01_07_55_9352.jpg
/home/pi/Desktop/images/15012025/01/07/image_15012025_01_08_05_10437.jpg
/home/pi/Desktop/images/15012025/01/08/image_15012025_01_08_14_9322.jpg
/home/pi/Desktop/images/15012025/01/08/image_15012025_01_08_25_10363.jpg
/home/pi/Desktop/images/15012025/01/08/image_15012025_01_08_35_10409.jpg
/home/pi/Desktop/images/15012025/01/08/image_15012025_01_08_45_9357.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329166890","1329166872","1329166898","1329166865","1329166879","1329166966"],"photo_ids_order":["1329166865","1329166872","1329166879","1329166890","1329166898","1329166966"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/563ac3db2cfe8ea9f8ab3ec65ccf4c45.jpg","text":"TemporaryFile(/tmp/multipartBody4364829432089601714asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956804647,"filename":"image_15012025_01_08_25_10363.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/83868bc911dbeb33ef576b98036eae88.jpg","text":"TemporaryFile(/tmp/multipartBody7415249205590686825asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956804647,"filename":"image_15012025_01_08_05_10437.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/228ba7642f661ed1abcedf8b80eccc65.jpg","text":"TemporaryFile(/tmp/multipartBody8285517028686592909asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956804647,"filename":"image_15012025_01_08_35_10409.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ba6d2ef07388a634d330223c36a6ba0e.jpg","text":"TemporaryFile(/tmp/multipartBody4948476941522774838asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956804647,"filename":"image_15012025_01_07_55_9352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a35590532eb6dbe6a0a741f2877985fe.jpg","text":"TemporaryFile(/tmp/multipartBody1805610423540514390asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956804647,"filename":"image_15012025_01_08_14_9322.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b9cde4054ad71e9e40d579e4eb6cd90f.jpg","text":"TemporaryFile(/tmp/multipartBody5483722213825498999asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956804647,"filename":"image_15012025_01_08_45_9357.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329166879","file1":"1329166872","file0":"1329166865","file4":"1329166898","file5":"1329166966","file3":"1329166890"},"map_files_photo_id_array":[{"photo_id":"1329166966","filename":"file5"},{"photo_id":"1329166879","filename":"file2"},{"photo_id":"1329166898","filename":"file4"},{"photo_id":"1329166872","filename":"file1"},{"photo_id":"1329166865","filename":"file0"},{"photo_id":"1329166890","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329166890":["hashtag1","hashtag2"]},{"1329166872":["hashtag1","hashtag2"]},{"1329166898":["hashtag1","hashtag2"]},{"1329166865":["hashtag1","hashtag2"]},{"1329166879":["hashtag1","hashtag2"]},{"1329166966":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329166890, 1329166872, 1329166898, 1329166865, 1329166879, 1329166966)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.883565187454224 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 15 --only_old 0
2025-01-15 16:59:52.251333
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/08/image_15012025_01_08_55_10427.jpg', '/home/pi/Desktop/images/15012025/01/08/image_15012025_01_09_05_10362.jpg', '/home/pi/Desktop/images/15012025/01/09/image_15012025_01_09_15_9326.jpg', '/home/pi/Desktop/images/15012025/01/09/image_15012025_01_09_25_10367.jpg', '/home/pi/Desktop/images/15012025/01/09/image_15012025_01_09_34_9344.jpg', '/home/pi/Desktop/images/15012025/01/09/image_15012025_01_09_45_10321.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/08/image_15012025_01_08_55_10427.jpg
/home/pi/Desktop/images/15012025/01/08/image_15012025_01_09_05_10362.jpg
/home/pi/Desktop/images/15012025/01/09/image_15012025_01_09_15_9326.jpg
/home/pi/Desktop/images/15012025/01/09/image_15012025_01_09_25_10367.jpg
/home/pi/Desktop/images/15012025/01/09/image_15012025_01_09_34_9344.jpg
/home/pi/Desktop/images/15012025/01/09/image_15012025_01_09_45_10321.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329167291","1329167330","1329167335","1329167236","1329167203","1329167206"],"photo_ids_order":["1329167203","1329167206","1329167236","1329167291","1329167330","1329167335"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5fd5f4c2d6a5f4e65c8dc1e49546ef83.jpg","text":"TemporaryFile(/tmp/multipartBody8239217070108912704asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956853250,"filename":"image_15012025_01_09_25_10367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fc82f27c7ab090711ea539fd426b9c88.jpg","text":"TemporaryFile(/tmp/multipartBody5288185103499377240asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956853250,"filename":"image_15012025_01_09_34_9344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/99a9033e81b8158c32551fbb56d31709.jpg","text":"TemporaryFile(/tmp/multipartBody3542371242295551251asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956853250,"filename":"image_15012025_01_09_45_10321.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d5f28f20029a4f95b3b6554684909f58.jpg","text":"TemporaryFile(/tmp/multipartBody1870554282860561886asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956853250,"filename":"image_15012025_01_09_15_9326.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9c0e547e60e90a8aaa408ee2be39213f.jpg","text":"TemporaryFile(/tmp/multipartBody1301294712000522181asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956853250,"filename":"image_15012025_01_08_55_10427.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e64c363a36618913f8ce6ad7eaa4f5b0.jpg","text":"TemporaryFile(/tmp/multipartBody56684006301912745asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956853250,"filename":"image_15012025_01_09_05_10362.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329167236","file1":"1329167206","file0":"1329167203","file4":"1329167330","file5":"1329167335","file3":"1329167291"},"map_files_photo_id_array":[{"photo_id":"1329167335","filename":"file5"},{"photo_id":"1329167236","filename":"file2"},{"photo_id":"1329167330","filename":"file4"},{"photo_id":"1329167206","filename":"file1"},{"photo_id":"1329167203","filename":"file0"},{"photo_id":"1329167291","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329167291":["hashtag1","hashtag2"]},{"1329167330":["hashtag1","hashtag2"]},{"1329167335":["hashtag1","hashtag2"]},{"1329167236":["hashtag1","hashtag2"]},{"1329167203":["hashtag1","hashtag2"]},{"1329167206":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329167291, 1329167330, 1329167335, 1329167236, 1329167203, 1329167206)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.69424104690552 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
2025-01-15 17:00:42.442648
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/09/image_15012025_01_09_55_10350.jpg', '/home/pi/Desktop/images/15012025/01/09/image_15012025_01_10_04_9338.jpg', '/home/pi/Desktop/images/15012025/01/10/image_15012025_01_10_15_10366.jpg', '/home/pi/Desktop/images/15012025/01/10/image_15012025_01_10_25_10440.jpg', '/home/pi/Desktop/images/15012025/01/10/image_15012025_01_10_35_9355.jpg', '/home/pi/Desktop/images/15012025/01/10/image_15012025_01_10_45_10438.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/09/image_15012025_01_09_55_10350.jpg
/home/pi/Desktop/images/15012025/01/09/image_15012025_01_10_04_9338.jpg
/home/pi/Desktop/images/15012025/01/10/image_15012025_01_10_15_10366.jpg
/home/pi/Desktop/images/15012025/01/10/image_15012025_01_10_25_10440.jpg
/home/pi/Desktop/images/15012025/01/10/image_15012025_01_10_35_9355.jpg
/home/pi/Desktop/images/15012025/01/10/image_15012025_01_10_45_10438.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329167579","1329167573","1329167453","1329167555","1329167549","1329167587"],"photo_ids_order":["1329167453","1329167549","1329167555","1329167573","1329167579","1329167587"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a8f92c339575a39c253e47e29a948f93.jpg","text":"TemporaryFile(/tmp/multipartBody95053578161017941asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956903430,"filename":"image_15012025_01_10_35_9355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/03266ed424038885520b90ebc102b7ce.jpg","text":"TemporaryFile(/tmp/multipartBody3321502089912914116asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956903430,"filename":"image_15012025_01_10_25_10440.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f9dea931b3835ad852b53e7ea6e8fc1b.jpg","text":"TemporaryFile(/tmp/multipartBody6761795114364858878asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956903430,"filename":"image_15012025_01_09_55_10350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4c278e82e9201720216a01d125e02571.jpg","text":"TemporaryFile(/tmp/multipartBody8255801021683710800asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956903430,"filename":"image_15012025_01_10_15_10366.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/19093c9cdf395f0506ea06a25d75ef06.jpg","text":"TemporaryFile(/tmp/multipartBody2566634249595562563asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956903430,"filename":"image_15012025_01_10_04_9338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/499a8640bad787f009748a4cd832f359.jpg","text":"TemporaryFile(/tmp/multipartBody9097595999754473747asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956903430,"filename":"image_15012025_01_10_45_10438.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329167555","file1":"1329167549","file0":"1329167453","file4":"1329167579","file5":"1329167587","file3":"1329167573"},"map_files_photo_id_array":[{"photo_id":"1329167587","filename":"file5"},{"photo_id":"1329167555","filename":"file2"},{"photo_id":"1329167579","filename":"file4"},{"photo_id":"1329167549","filename":"file1"},{"photo_id":"1329167453","filename":"file0"},{"photo_id":"1329167573","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329167579":["hashtag1","hashtag2"]},{"1329167573":["hashtag1","hashtag2"]},{"1329167453":["hashtag1","hashtag2"]},{"1329167555":["hashtag1","hashtag2"]},{"1329167549":["hashtag1","hashtag2"]},{"1329167587":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329167579, 1329167573, 1329167453, 1329167555, 1329167549, 1329167587)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.03964924812317 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 15 --only_old 0
2025-01-15 17:01:32.904878
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/10/image_15012025_01_11_05_9371.jpg', '/home/pi/Desktop/images/15012025/01/11/image_15012025_01_11_15_10457.jpg', '/home/pi/Desktop/images/15012025/01/11/image_15012025_01_11_25_9359.jpg', '/home/pi/Desktop/images/15012025/01/11/image_15012025_01_11_35_10340.jpg', '/home/pi/Desktop/images/15012025/01/11/image_15012025_01_11_55_9345.jpg', '/home/pi/Desktop/images/15012025/01/11/image_15012025_01_12_05_10431.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/10/image_15012025_01_11_05_9371.jpg
/home/pi/Desktop/images/15012025/01/11/image_15012025_01_11_15_10457.jpg
/home/pi/Desktop/images/15012025/01/11/image_15012025_01_11_25_9359.jpg
/home/pi/Desktop/images/15012025/01/11/image_15012025_01_11_35_10340.jpg
/home/pi/Desktop/images/15012025/01/11/image_15012025_01_11_55_9345.jpg
/home/pi/Desktop/images/15012025/01/11/image_15012025_01_12_05_10431.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329167604","1329167607","1329167627","1329167621","1329167617","1329167614"],"photo_ids_order":["1329167604","1329167607","1329167614","1329167617","1329167621","1329167627"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8494f3e26c099f5779e506581a49719a.jpg","text":"TemporaryFile(/tmp/multipartBody6667496233442074182asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956953920,"filename":"image_15012025_01_11_05_9371.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ac1322e344a6cedc38b0877109a4782e.jpg","text":"TemporaryFile(/tmp/multipartBody2821462599693087820asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956953920,"filename":"image_15012025_01_11_15_10457.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b3a201318ca34c2d6d3450413fbe3d62.jpg","text":"TemporaryFile(/tmp/multipartBody1037462997639962461asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956953920,"filename":"image_15012025_01_12_05_10431.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ca3cc5f745c8e478a4d36bd0b3838a12.jpg","text":"TemporaryFile(/tmp/multipartBody8351591455885692198asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956953920,"filename":"image_15012025_01_11_55_9345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/10254a001f49a01fada564b194dc059e.jpg","text":"TemporaryFile(/tmp/multipartBody949998312265757912asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956953920,"filename":"image_15012025_01_11_35_10340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f727039ae82e70d891f88b1d4c2bf3a7.jpg","text":"TemporaryFile(/tmp/multipartBody4940046744912169339asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736956953920,"filename":"image_15012025_01_11_25_9359.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329167614","file1":"1329167607","file0":"1329167604","file4":"1329167621","file5":"1329167627","file3":"1329167617"},"map_files_photo_id_array":[{"photo_id":"1329167627","filename":"file5"},{"photo_id":"1329167614","filename":"file2"},{"photo_id":"1329167621","filename":"file4"},{"photo_id":"1329167607","filename":"file1"},{"photo_id":"1329167604","filename":"file0"},{"photo_id":"1329167617","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329167604":["hashtag1","hashtag2"]},{"1329167607":["hashtag1","hashtag2"]},{"1329167627":["hashtag1","hashtag2"]},{"1329167621":["hashtag1","hashtag2"]},{"1329167617":["hashtag1","hashtag2"]},{"1329167614":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329167604, 1329167607, 1329167627, 1329167621, 1329167617, 1329167614)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.506109952926636 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 15 --only_old 0
2025-01-15 17:02:32.966775
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/12/image_15012025_01_12_14_9374.jpg', '/home/pi/Desktop/images/15012025/01/12/image_15012025_01_12_25_10449.jpg', '/home/pi/Desktop/images/15012025/01/12/image_15012025_01_12_35_10470.jpg', '/home/pi/Desktop/images/15012025/01/13/image_15012025_01_13_15_10352.jpg', '/home/pi/Desktop/images/15012025/01/13/image_15012025_01_13_25_10487.jpg', '/home/pi/Desktop/images/15012025/01/13/image_15012025_01_13_35_9328.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/12/image_15012025_01_12_14_9374.jpg
/home/pi/Desktop/images/15012025/01/12/image_15012025_01_12_25_10449.jpg
/home/pi/Desktop/images/15012025/01/12/image_15012025_01_12_35_10470.jpg
/home/pi/Desktop/images/15012025/01/13/image_15012025_01_13_15_10352.jpg
/home/pi/Desktop/images/15012025/01/13/image_15012025_01_13_25_10487.jpg
/home/pi/Desktop/images/15012025/01/13/image_15012025_01_13_35_9328.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329167655","1329167640","1329167669","1329167666","1329167650","1329167644"],"photo_ids_order":["1329167640","1329167644","1329167650","1329167655","1329167666","1329167669"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f6e8376cde4efab82b5639994776f1bf.jpg","text":"TemporaryFile(/tmp/multipartBody9168624083638069902asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957013982,"filename":"image_15012025_01_13_15_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cc204d11c5da2c7ed078f20f7e2a6ea2.jpg","text":"TemporaryFile(/tmp/multipartBody3894747762329020048asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957013982,"filename":"image_15012025_01_12_14_9374.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bbb5cbe4f802060c7f1921a1640af65e.jpg","text":"TemporaryFile(/tmp/multipartBody7211181005878472527asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957013982,"filename":"image_15012025_01_13_35_9328.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8a0140e63f8029d5a6b8a80d21e12a2a.jpg","text":"TemporaryFile(/tmp/multipartBody7578908366566224198asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957013982,"filename":"image_15012025_01_13_25_10487.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/95474fa961d78daf36ac6d543dc8f44d.jpg","text":"TemporaryFile(/tmp/multipartBody8540644913158817110asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957013982,"filename":"image_15012025_01_12_35_10470.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/455a31a190b86369f99e365d2464839e.jpg","text":"TemporaryFile(/tmp/multipartBody5250323348161964941asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957013982,"filename":"image_15012025_01_12_25_10449.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329167650","file1":"1329167644","file0":"1329167640","file4":"1329167666","file5":"1329167669","file3":"1329167655"},"map_files_photo_id_array":[{"photo_id":"1329167669","filename":"file5"},{"photo_id":"1329167650","filename":"file2"},{"photo_id":"1329167666","filename":"file4"},{"photo_id":"1329167644","filename":"file1"},{"photo_id":"1329167640","filename":"file0"},{"photo_id":"1329167655","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329167655":["hashtag1","hashtag2"]},{"1329167640":["hashtag1","hashtag2"]},{"1329167669":["hashtag1","hashtag2"]},{"1329167666":["hashtag1","hashtag2"]},{"1329167650":["hashtag1","hashtag2"]},{"1329167644":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329167655, 1329167640, 1329167669, 1329167666, 1329167650, 1329167644)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.88800311088562 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 15 --only_old 0
2025-01-15 17:03:32.221527
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/13/image_15012025_01_14_05_10338.jpg', '/home/pi/Desktop/images/15012025/01/14/image_15012025_01_14_25_9374.jpg', '/home/pi/Desktop/images/15012025/01/14/image_15012025_01_14_44_9355.jpg', '/home/pi/Desktop/images/15012025/01/14/image_15012025_01_15_05_10348.jpg', '/home/pi/Desktop/images/15012025/01/15/image_15012025_01_15_35_10210.jpg', '/home/pi/Desktop/images/15012025/01/15/image_15012025_01_15_44_9346.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/13/image_15012025_01_14_05_10338.jpg
/home/pi/Desktop/images/15012025/01/14/image_15012025_01_14_25_9374.jpg
/home/pi/Desktop/images/15012025/01/14/image_15012025_01_14_44_9355.jpg
/home/pi/Desktop/images/15012025/01/14/image_15012025_01_15_05_10348.jpg
/home/pi/Desktop/images/15012025/01/15/image_15012025_01_15_35_10210.jpg
/home/pi/Desktop/images/15012025/01/15/image_15012025_01_15_44_9346.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329167715","1329167709","1329167700","1329167747","1329167743","1329167745"],"photo_ids_order":["1329167700","1329167709","1329167715","1329167743","1329167745","1329167747"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b4a0042ce12bd9f81b8060b85089d018.jpg","text":"TemporaryFile(/tmp/multipartBody3773463085750301887asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957073232,"filename":"image_15012025_01_14_44_9355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/88e70e3f4db4a1cc50ac9f79ef626400.jpg","text":"TemporaryFile(/tmp/multipartBody5079316952768935252asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957073232,"filename":"image_15012025_01_14_25_9374.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a60b3b8839507326f1909ae209823741.jpg","text":"TemporaryFile(/tmp/multipartBody2441877375809716805asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957073232,"filename":"image_15012025_01_14_05_10338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/eb8f61ccfe7882a8e3472b0e2e8f3f26.jpg","text":"TemporaryFile(/tmp/multipartBody2012338204842621558asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957073232,"filename":"image_15012025_01_15_44_9346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fc35a92c5f522d5e7c03d18bae1db257.jpg","text":"TemporaryFile(/tmp/multipartBody8013240208652437027asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957073232,"filename":"image_15012025_01_15_05_10348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/26c8d13cf3186fa27d25bcfaffcfc1f3.jpg","text":"TemporaryFile(/tmp/multipartBody6100046004618282780asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957073232,"filename":"image_15012025_01_15_35_10210.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329167715","file1":"1329167709","file0":"1329167700","file4":"1329167745","file5":"1329167747","file3":"1329167743"},"map_files_photo_id_array":[{"photo_id":"1329167747","filename":"file5"},{"photo_id":"1329167715","filename":"file2"},{"photo_id":"1329167745","filename":"file4"},{"photo_id":"1329167709","filename":"file1"},{"photo_id":"1329167700","filename":"file0"},{"photo_id":"1329167743","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329167715":["hashtag1","hashtag2"]},{"1329167709":["hashtag1","hashtag2"]},{"1329167700":["hashtag1","hashtag2"]},{"1329167747":["hashtag1","hashtag2"]},{"1329167743":["hashtag1","hashtag2"]},{"1329167745":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329167715, 1329167709, 1329167700, 1329167747, 1329167743, 1329167745)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.65602397918701 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 15 --only_old 0
2025-01-15 17:04:32.377891
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/15/image_15012025_01_16_05_10457.jpg', '/home/pi/Desktop/images/15012025/01/16/image_15012025_01_16_15_9355.jpg', '/home/pi/Desktop/images/15012025/01/16/image_15012025_01_16_25_10495.jpg', '/home/pi/Desktop/images/15012025/01/16/image_15012025_01_16_35_9457.jpg', '/home/pi/Desktop/images/15012025/01/16/image_15012025_01_16_45_10444.jpg', '/home/pi/Desktop/images/15012025/01/16/image_15012025_01_16_55_10357.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/15/image_15012025_01_16_05_10457.jpg
/home/pi/Desktop/images/15012025/01/16/image_15012025_01_16_15_9355.jpg
/home/pi/Desktop/images/15012025/01/16/image_15012025_01_16_25_10495.jpg
/home/pi/Desktop/images/15012025/01/16/image_15012025_01_16_35_9457.jpg
/home/pi/Desktop/images/15012025/01/16/image_15012025_01_16_45_10444.jpg
/home/pi/Desktop/images/15012025/01/16/image_15012025_01_16_55_10357.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329167828","1329167899","1329167884","1329167889","1329167775","1329167784"],"photo_ids_order":["1329167775","1329167784","1329167828","1329167884","1329167889","1329167899"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1f872891414795b5c2d1d3fb86fa0646.jpg","text":"TemporaryFile(/tmp/multipartBody923639881433122729asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957133384,"filename":"image_15012025_01_16_25_10495.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5f5fbdfee94e1a3931926e6b2e1d4da5.jpg","text":"TemporaryFile(/tmp/multipartBody6311816060697289274asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957133384,"filename":"image_15012025_01_16_55_10357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/47ee61d964f55f2b39a004c7de649049.jpg","text":"TemporaryFile(/tmp/multipartBody5634852445074938779asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957133384,"filename":"image_15012025_01_16_35_9457.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c20298e4c81bac1e0605141bc3713bd4.jpg","text":"TemporaryFile(/tmp/multipartBody5258170808202985965asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957133384,"filename":"image_15012025_01_16_45_10444.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/80f8c32659fa43d57931d183caf1c5b6.jpg","text":"TemporaryFile(/tmp/multipartBody792841295252177439asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957133384,"filename":"image_15012025_01_16_05_10457.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/62c8d5722e0c42b87be20d5db4cf6699.jpg","text":"TemporaryFile(/tmp/multipartBody1492760775835558824asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957133384,"filename":"image_15012025_01_16_15_9355.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329167828","file1":"1329167784","file0":"1329167775","file4":"1329167889","file5":"1329167899","file3":"1329167884"},"map_files_photo_id_array":[{"photo_id":"1329167899","filename":"file5"},{"photo_id":"1329167828","filename":"file2"},{"photo_id":"1329167889","filename":"file4"},{"photo_id":"1329167784","filename":"file1"},{"photo_id":"1329167775","filename":"file0"},{"photo_id":"1329167884","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329167828":["hashtag1","hashtag2"]},{"1329167899":["hashtag1","hashtag2"]},{"1329167884":["hashtag1","hashtag2"]},{"1329167889":["hashtag1","hashtag2"]},{"1329167775":["hashtag1","hashtag2"]},{"1329167784":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329167828, 1329167899, 1329167884, 1329167889, 1329167775, 1329167784)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.67212104797363 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 15 --only_old 0
2025-01-15 17:05:32.892312
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/16/image_15012025_01_17_05_9341.jpg', '/home/pi/Desktop/images/15012025/01/17/image_15012025_01_17_15_10379.jpg', '/home/pi/Desktop/images/15012025/01/17/image_15012025_01_17_25_9365.jpg', '/home/pi/Desktop/images/15012025/01/17/image_15012025_01_17_35_10367.jpg', '/home/pi/Desktop/images/15012025/01/17/image_15012025_01_17_45_10369.jpg', '/home/pi/Desktop/images/15012025/01/17/image_15012025_01_17_55_9360.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/16/image_15012025_01_17_05_9341.jpg
/home/pi/Desktop/images/15012025/01/17/image_15012025_01_17_15_10379.jpg
/home/pi/Desktop/images/15012025/01/17/image_15012025_01_17_25_9365.jpg
/home/pi/Desktop/images/15012025/01/17/image_15012025_01_17_35_10367.jpg
/home/pi/Desktop/images/15012025/01/17/image_15012025_01_17_45_10369.jpg
/home/pi/Desktop/images/15012025/01/17/image_15012025_01_17_55_9360.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329167952","1329167931","1329167941","1329167973","1329167976","1329167961"],"photo_ids_order":["1329167931","1329167941","1329167952","1329167961","1329167973","1329167976"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e27da1905fa72bc330a1cccd2507b77b.jpg","text":"TemporaryFile(/tmp/multipartBody4794996341799222413asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957193893,"filename":"image_15012025_01_17_25_9365.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/522390f1ed25b2f25b7075cb3d3ac594.jpg","text":"TemporaryFile(/tmp/multipartBody8271354693020353287asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957193893,"filename":"image_15012025_01_17_05_9341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3150a72340f95b5a26de3c5333d0220f.jpg","text":"TemporaryFile(/tmp/multipartBody8556637075497726212asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957193893,"filename":"image_15012025_01_17_15_10379.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/473a51ea878caeca9444ecc99b400ef4.jpg","text":"TemporaryFile(/tmp/multipartBody5605452728739152114asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957193893,"filename":"image_15012025_01_17_45_10369.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f8749f55d1776432369cbeab0fb839f4.jpg","text":"TemporaryFile(/tmp/multipartBody5407603397227895980asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957193893,"filename":"image_15012025_01_17_55_9360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8eb83a98fcd2197d525fdfe03c8e589d.jpg","text":"TemporaryFile(/tmp/multipartBody419064565487939600asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957193893,"filename":"image_15012025_01_17_35_10367.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329167952","file1":"1329167941","file0":"1329167931","file4":"1329167973","file5":"1329167976","file3":"1329167961"},"map_files_photo_id_array":[{"photo_id":"1329167976","filename":"file5"},{"photo_id":"1329167952","filename":"file2"},{"photo_id":"1329167973","filename":"file4"},{"photo_id":"1329167941","filename":"file1"},{"photo_id":"1329167931","filename":"file0"},{"photo_id":"1329167961","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329167952":["hashtag1","hashtag2"]},{"1329167931":["hashtag1","hashtag2"]},{"1329167941":["hashtag1","hashtag2"]},{"1329167973":["hashtag1","hashtag2"]},{"1329167976":["hashtag1","hashtag2"]},{"1329167961":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329167952, 1329167931, 1329167941, 1329167973, 1329167976, 1329167961)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 49.516732692718506 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 15 --only_old 0
2025-01-15 17:06:32.844437
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/17/image_15012025_01_18_05_10347.jpg', '/home/pi/Desktop/images/15012025/01/18/image_15012025_01_18_25_9343.jpg', '/home/pi/Desktop/images/15012025/01/18/image_15012025_01_18_35_10432.jpg', '/home/pi/Desktop/images/15012025/01/18/image_15012025_01_18_44_9356.jpg', '/home/pi/Desktop/images/15012025/01/18/image_15012025_01_18_55_10343.jpg', '/home/pi/Desktop/images/15012025/01/18/image_15012025_01_19_05_10439.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/17/image_15012025_01_18_05_10347.jpg
/home/pi/Desktop/images/15012025/01/18/image_15012025_01_18_25_9343.jpg
/home/pi/Desktop/images/15012025/01/18/image_15012025_01_18_35_10432.jpg
/home/pi/Desktop/images/15012025/01/18/image_15012025_01_18_44_9356.jpg
/home/pi/Desktop/images/15012025/01/18/image_15012025_01_18_55_10343.jpg
/home/pi/Desktop/images/15012025/01/18/image_15012025_01_19_05_10439.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.5978610515594482 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
2025-01-15 17:06:42.871182
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/17/image_15012025_01_18_05_10347.jpg', '/home/pi/Desktop/images/15012025/01/18/image_15012025_01_18_25_9343.jpg', '/home/pi/Desktop/images/15012025/01/18/image_15012025_01_18_35_10432.jpg', '/home/pi/Desktop/images/15012025/01/18/image_15012025_01_18_44_9356.jpg', '/home/pi/Desktop/images/15012025/01/18/image_15012025_01_18_55_10343.jpg', '/home/pi/Desktop/images/15012025/01/18/image_15012025_01_19_05_10439.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/17/image_15012025_01_18_05_10347.jpg
/home/pi/Desktop/images/15012025/01/18/image_15012025_01_18_25_9343.jpg
/home/pi/Desktop/images/15012025/01/18/image_15012025_01_18_35_10432.jpg
/home/pi/Desktop/images/15012025/01/18/image_15012025_01_18_44_9356.jpg
/home/pi/Desktop/images/15012025/01/18/image_15012025_01_18_55_10343.jpg
/home/pi/Desktop/images/15012025/01/18/image_15012025_01_19_05_10439.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329168086","1329168050","1329168011","1329168008","1329168004","1329168078"],"photo_ids_order":["1329168004","1329168008","1329168011","1329168050","1329168078","1329168086"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/baf12a7e253ebaac4b234174bf7667a3.jpg","text":"TemporaryFile(/tmp/multipartBody9052966219758272989asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957263801,"filename":"image_15012025_01_19_05_10439.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5a9b670b915c31f65bbc434b4115f9be.jpg","text":"TemporaryFile(/tmp/multipartBody2352679081538006120asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957263801,"filename":"image_15012025_01_18_44_9356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/72c079c91de71586bc04182bde148804.jpg","text":"TemporaryFile(/tmp/multipartBody659173541068509620asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957263801,"filename":"image_15012025_01_18_35_10432.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fb99f24815c026796ef4fa99fefe88fa.jpg","text":"TemporaryFile(/tmp/multipartBody1533985488095475968asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957263801,"filename":"image_15012025_01_18_25_9343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/17d5cebdec06a5e81b5bae93bcbbd579.jpg","text":"TemporaryFile(/tmp/multipartBody5134350558836730425asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957263801,"filename":"image_15012025_01_18_05_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/84e95f07b69518cd9504858c0cbc793c.jpg","text":"TemporaryFile(/tmp/multipartBody272216127636005199asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957263801,"filename":"image_15012025_01_18_55_10343.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329168011","file1":"1329168008","file0":"1329168004","file4":"1329168078","file5":"1329168086","file3":"1329168050"},"map_files_photo_id_array":[{"photo_id":"1329168086","filename":"file5"},{"photo_id":"1329168011","filename":"file2"},{"photo_id":"1329168078","filename":"file4"},{"photo_id":"1329168008","filename":"file1"},{"photo_id":"1329168004","filename":"file0"},{"photo_id":"1329168050","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329168086":["hashtag1","hashtag2"]},{"1329168050":["hashtag1","hashtag2"]},{"1329168011":["hashtag1","hashtag2"]},{"1329168008":["hashtag1","hashtag2"]},{"1329168004":["hashtag1","hashtag2"]},{"1329168078":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329168086, 1329168050, 1329168011, 1329168008, 1329168004, 1329168078)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.48847436904907 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 15 --only_old 0
2025-01-15 17:07:33.077509
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/19/image_15012025_01_19_15_9355.jpg', '/home/pi/Desktop/images/15012025/01/19/image_15012025_01_19_25_10413.jpg', '/home/pi/Desktop/images/15012025/01/19/image_15012025_01_19_35_10347.jpg', '/home/pi/Desktop/images/15012025/01/19/image_15012025_01_19_55_10462.jpg', '/home/pi/Desktop/images/15012025/01/19/image_15012025_01_20_04_9250.jpg', '/home/pi/Desktop/images/15012025/01/20/image_15012025_01_20_35_9345.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/19/image_15012025_01_19_15_9355.jpg
/home/pi/Desktop/images/15012025/01/19/image_15012025_01_19_25_10413.jpg
/home/pi/Desktop/images/15012025/01/19/image_15012025_01_19_35_10347.jpg
/home/pi/Desktop/images/15012025/01/19/image_15012025_01_19_55_10462.jpg
/home/pi/Desktop/images/15012025/01/19/image_15012025_01_20_04_9250.jpg
/home/pi/Desktop/images/15012025/01/20/image_15012025_01_20_35_9345.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329168115","1329168150","1329168138","1329168132","1329168111","1329168105"],"photo_ids_order":["1329168105","1329168111","1329168115","1329168132","1329168138","1329168150"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4c62f6b992b3aaa241839a2f89d8c072.jpg","text":"TemporaryFile(/tmp/multipartBody8312345830542480584asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957314072,"filename":"image_15012025_01_19_35_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d2b58fed83ed404f04947b33f0b094b5.jpg","text":"TemporaryFile(/tmp/multipartBody8326660651582589619asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957314072,"filename":"image_15012025_01_20_35_9345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/aa18799948d1f0e8518c7abf4d6b6e41.jpg","text":"TemporaryFile(/tmp/multipartBody368094820571269484asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957314072,"filename":"image_15012025_01_20_04_9250.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/74bdda1193e7666741e0258163cecdad.jpg","text":"TemporaryFile(/tmp/multipartBody7753626526920245055asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957314072,"filename":"image_15012025_01_19_55_10462.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c11f455b397038a392c6e4c1ae5e23f2.jpg","text":"TemporaryFile(/tmp/multipartBody75892629405740529asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957314072,"filename":"image_15012025_01_19_25_10413.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/377c1208f5508574589fbe9fb0d92498.jpg","text":"TemporaryFile(/tmp/multipartBody768789092419894778asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957314072,"filename":"image_15012025_01_19_15_9355.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329168115","file1":"1329168111","file0":"1329168105","file4":"1329168138","file5":"1329168150","file3":"1329168132"},"map_files_photo_id_array":[{"photo_id":"1329168150","filename":"file5"},{"photo_id":"1329168115","filename":"file2"},{"photo_id":"1329168138","filename":"file4"},{"photo_id":"1329168111","filename":"file1"},{"photo_id":"1329168105","filename":"file0"},{"photo_id":"1329168132","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329168115":["hashtag1","hashtag2"]},{"1329168150":["hashtag1","hashtag2"]},{"1329168138":["hashtag1","hashtag2"]},{"1329168132":["hashtag1","hashtag2"]},{"1329168111":["hashtag1","hashtag2"]},{"1329168105":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329168115, 1329168150, 1329168138, 1329168132, 1329168111, 1329168105)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 49.71985125541687 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 15 --only_old 0
2025-01-15 17:08:32.298540
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/20/image_15012025_01_20_55_9440.jpg', '/home/pi/Desktop/images/15012025/01/20/image_15012025_01_21_05_10413.jpg', '/home/pi/Desktop/images/15012025/01/22/image_15012025_01_23_05_9355.jpg', '/home/pi/Desktop/images/15012025/01/23/image_15012025_01_23_15_10379.jpg', '/home/pi/Desktop/images/15012025/01/23/image_15012025_01_23_45_10482.jpg', '/home/pi/Desktop/images/15012025/01/24/image_15012025_01_24_15_10452.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/20/image_15012025_01_20_55_9440.jpg
/home/pi/Desktop/images/15012025/01/20/image_15012025_01_21_05_10413.jpg
/home/pi/Desktop/images/15012025/01/22/image_15012025_01_23_05_9355.jpg
/home/pi/Desktop/images/15012025/01/23/image_15012025_01_23_15_10379.jpg
/home/pi/Desktop/images/15012025/01/23/image_15012025_01_23_45_10482.jpg
/home/pi/Desktop/images/15012025/01/24/image_15012025_01_24_15_10452.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329168548","1329168248","1329168448","1329168171","1329168165","1329168330"],"photo_ids_order":["1329168165","1329168171","1329168248","1329168330","1329168448","1329168548"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6abd7893e68668a281060ea3e86beb1a.jpg","text":"TemporaryFile(/tmp/multipartBody8652407871702686247asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957373318,"filename":"image_15012025_01_24_15_10452.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/26259d13b0ca9c70fcb12150abf41572.jpg","text":"TemporaryFile(/tmp/multipartBody1386637120779392980asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957373318,"filename":"image_15012025_01_23_05_9355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1214076c626b98f72e699fd5e111fb7a.jpg","text":"TemporaryFile(/tmp/multipartBody4202361083701592513asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957373318,"filename":"image_15012025_01_23_45_10482.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/704607f23fe39ca9354f48cf076f2f28.jpg","text":"TemporaryFile(/tmp/multipartBody3072258891374936209asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957373318,"filename":"image_15012025_01_21_05_10413.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c15678bde12f518f0c7be30ad0e2e828.jpg","text":"TemporaryFile(/tmp/multipartBody410746241226281123asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957373318,"filename":"image_15012025_01_20_55_9440.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9aa945abc6993b6ac2c2ef0fa6fce72b.jpg","text":"TemporaryFile(/tmp/multipartBody4297154556462172896asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957373318,"filename":"image_15012025_01_23_15_10379.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329168248","file1":"1329168171","file0":"1329168165","file4":"1329168448","file5":"1329168548","file3":"1329168330"},"map_files_photo_id_array":[{"photo_id":"1329168548","filename":"file5"},{"photo_id":"1329168248","filename":"file2"},{"photo_id":"1329168448","filename":"file4"},{"photo_id":"1329168171","filename":"file1"},{"photo_id":"1329168165","filename":"file0"},{"photo_id":"1329168330","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329168548":["hashtag1","hashtag2"]},{"1329168248":["hashtag1","hashtag2"]},{"1329168448":["hashtag1","hashtag2"]},{"1329168171":["hashtag1","hashtag2"]},{"1329168165":["hashtag1","hashtag2"]},{"1329168330":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329168548, 1329168248, 1329168448, 1329168171, 1329168165, 1329168330)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.93491339683533 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 15 --only_old 0
2025-01-15 17:09:32.546879
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/24/image_15012025_01_25_05_10415.jpg', '/home/pi/Desktop/images/15012025/01/25/image_15012025_01_25_15_9372.jpg', '/home/pi/Desktop/images/15012025/01/25/image_15012025_01_26_05_9345.jpg', '/home/pi/Desktop/images/15012025/01/26/image_15012025_01_26_25_10450.jpg', '/home/pi/Desktop/images/15012025/01/26/image_15012025_01_26_35_9348.jpg', '/home/pi/Desktop/images/15012025/01/26/image_15012025_01_26_45_10404.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/24/image_15012025_01_25_05_10415.jpg
/home/pi/Desktop/images/15012025/01/25/image_15012025_01_25_15_9372.jpg
/home/pi/Desktop/images/15012025/01/25/image_15012025_01_26_05_9345.jpg
/home/pi/Desktop/images/15012025/01/26/image_15012025_01_26_25_10450.jpg
/home/pi/Desktop/images/15012025/01/26/image_15012025_01_26_35_9348.jpg
/home/pi/Desktop/images/15012025/01/26/image_15012025_01_26_45_10404.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329169573","1329169281","1329169116","1329169586","1329169589","1329169481"],"photo_ids_order":["1329169116","1329169281","1329169481","1329169573","1329169586","1329169589"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9791d797a9819a0c7673afc0b1c01747.jpg","text":"TemporaryFile(/tmp/multipartBody8428986437268966270asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957433551,"filename":"image_15012025_01_26_25_10450.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/73f8fb22a86df329c672f4f0d9bf00a3.jpg","text":"TemporaryFile(/tmp/multipartBody6776178554823126993asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957433551,"filename":"image_15012025_01_25_15_9372.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/11b6160fb0b5e4ccc5a8f8a9d3e71556.jpg","text":"TemporaryFile(/tmp/multipartBody7304411510394589156asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957433551,"filename":"image_15012025_01_25_05_10415.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/90c088cca7412ed883114088a3cfc8d2.jpg","text":"TemporaryFile(/tmp/multipartBody5999807549794042954asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957433551,"filename":"image_15012025_01_26_35_9348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3a19995c33c676e51d6b64b869dae7c7.jpg","text":"TemporaryFile(/tmp/multipartBody1646552071447595679asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957433551,"filename":"image_15012025_01_26_45_10404.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/11fb311dc79d06712e4011aabb761acb.jpg","text":"TemporaryFile(/tmp/multipartBody8755569194807477217asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957433551,"filename":"image_15012025_01_26_05_9345.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329169481","file1":"1329169281","file0":"1329169116","file4":"1329169586","file5":"1329169589","file3":"1329169573"},"map_files_photo_id_array":[{"photo_id":"1329169589","filename":"file5"},{"photo_id":"1329169481","filename":"file2"},{"photo_id":"1329169586","filename":"file4"},{"photo_id":"1329169281","filename":"file1"},{"photo_id":"1329169116","filename":"file0"},{"photo_id":"1329169573","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329169573":["hashtag1","hashtag2"]},{"1329169281":["hashtag1","hashtag2"]},{"1329169116":["hashtag1","hashtag2"]},{"1329169586":["hashtag1","hashtag2"]},{"1329169589":["hashtag1","hashtag2"]},{"1329169481":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329169573, 1329169281, 1329169116, 1329169586, 1329169589, 1329169481)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 55.2314567565918 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 15 --only_old 0
2025-01-15 17:10:32.809012
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/26/image_15012025_01_26_54_9335.jpg', '/home/pi/Desktop/images/15012025/01/26/image_15012025_01_27_05_10377.jpg', '/home/pi/Desktop/images/15012025/01/27/image_15012025_01_27_15_9872.jpg', '/home/pi/Desktop/images/15012025/01/27/image_15012025_01_27_25_10383.jpg', '/home/pi/Desktop/images/15012025/01/27/image_15012025_01_28_05_9354.jpg', '/home/pi/Desktop/images/15012025/01/28/image_15012025_01_28_15_10400.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/26/image_15012025_01_26_54_9335.jpg
/home/pi/Desktop/images/15012025/01/26/image_15012025_01_27_05_10377.jpg
/home/pi/Desktop/images/15012025/01/27/image_15012025_01_27_15_9872.jpg
/home/pi/Desktop/images/15012025/01/27/image_15012025_01_27_25_10383.jpg
/home/pi/Desktop/images/15012025/01/27/image_15012025_01_28_05_9354.jpg
/home/pi/Desktop/images/15012025/01/28/image_15012025_01_28_15_10400.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329169619","1329169610","1329169638","1329169602","1329169632","1329169626"],"photo_ids_order":["1329169602","1329169610","1329169619","1329169626","1329169632","1329169638"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/10fb8e3b0056b7c67ca809102fefbfb2.jpg","text":"TemporaryFile(/tmp/multipartBody3085927136691042290asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957493814,"filename":"image_15012025_01_27_15_9872.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/48dd79d39bf0b98ab65a0a99f0c87329.jpg","text":"TemporaryFile(/tmp/multipartBody1318243315835664833asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957493814,"filename":"image_15012025_01_27_05_10377.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/09c23276d11fbfc1492f7f2f6bd863f2.jpg","text":"TemporaryFile(/tmp/multipartBody8781874641337629250asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957493814,"filename":"image_15012025_01_28_15_10400.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ba385059718a7d4c177894ae10ca0a46.jpg","text":"TemporaryFile(/tmp/multipartBody8876191937834283071asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957493814,"filename":"image_15012025_01_26_54_9335.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c90b766322ff65c06ba6dc237be29077.jpg","text":"TemporaryFile(/tmp/multipartBody8634336351375707910asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957493814,"filename":"image_15012025_01_28_05_9354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9fe8429a90fabca597dad346f30700da.jpg","text":"TemporaryFile(/tmp/multipartBody5942660078193339945asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957493814,"filename":"image_15012025_01_27_25_10383.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329169619","file1":"1329169610","file0":"1329169602","file4":"1329169632","file5":"1329169638","file3":"1329169626"},"map_files_photo_id_array":[{"photo_id":"1329169638","filename":"file5"},{"photo_id":"1329169619","filename":"file2"},{"photo_id":"1329169632","filename":"file4"},{"photo_id":"1329169610","filename":"file1"},{"photo_id":"1329169602","filename":"file0"},{"photo_id":"1329169626","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329169619":["hashtag1","hashtag2"]},{"1329169610":["hashtag1","hashtag2"]},{"1329169638":["hashtag1","hashtag2"]},{"1329169602":["hashtag1","hashtag2"]},{"1329169632":["hashtag1","hashtag2"]},{"1329169626":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329169619, 1329169610, 1329169638, 1329169602, 1329169632, 1329169626)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.2065691947937 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 15 --only_old 0
2025-01-15 17:11:33.060705
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/28/image_15012025_01_28_24_9393.jpg', '/home/pi/Desktop/images/15012025/01/28/image_15012025_01_28_35_10373.jpg', '/home/pi/Desktop/images/15012025/01/28/image_15012025_01_28_45_10352.jpg', '/home/pi/Desktop/images/15012025/01/28/image_15012025_01_28_55_9367.jpg', '/home/pi/Desktop/images/15012025/01/29/image_15012025_01_29_15_10351.jpg', '/home/pi/Desktop/images/15012025/01/29/image_15012025_01_29_35_10446.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/28/image_15012025_01_28_24_9393.jpg
/home/pi/Desktop/images/15012025/01/28/image_15012025_01_28_35_10373.jpg
/home/pi/Desktop/images/15012025/01/28/image_15012025_01_28_45_10352.jpg
/home/pi/Desktop/images/15012025/01/28/image_15012025_01_28_55_9367.jpg
/home/pi/Desktop/images/15012025/01/29/image_15012025_01_29_15_10351.jpg
/home/pi/Desktop/images/15012025/01/29/image_15012025_01_29_35_10446.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6184122562408447 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
2025-01-15 17:11:43.010510
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/28/image_15012025_01_28_24_9393.jpg', '/home/pi/Desktop/images/15012025/01/28/image_15012025_01_28_35_10373.jpg', '/home/pi/Desktop/images/15012025/01/28/image_15012025_01_28_45_10352.jpg', '/home/pi/Desktop/images/15012025/01/28/image_15012025_01_28_55_9367.jpg', '/home/pi/Desktop/images/15012025/01/29/image_15012025_01_29_15_10351.jpg', '/home/pi/Desktop/images/15012025/01/29/image_15012025_01_29_35_10446.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/28/image_15012025_01_28_24_9393.jpg
/home/pi/Desktop/images/15012025/01/28/image_15012025_01_28_35_10373.jpg
/home/pi/Desktop/images/15012025/01/28/image_15012025_01_28_45_10352.jpg
/home/pi/Desktop/images/15012025/01/28/image_15012025_01_28_55_9367.jpg
/home/pi/Desktop/images/15012025/01/29/image_15012025_01_29_15_10351.jpg
/home/pi/Desktop/images/15012025/01/29/image_15012025_01_29_35_10446.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329170216","1329169822","1329170151","1329169997","1329169940","1329169685"],"photo_ids_order":["1329169685","1329169822","1329169940","1329169997","1329170151","1329170216"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3f7f1af362c39ae25f7495ea93f78d10.jpg","text":"TemporaryFile(/tmp/multipartBody5650375254425439854asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957563923,"filename":"image_15012025_01_29_35_10446.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/af4a1567ad243b3f772389196a403ff2.jpg","text":"TemporaryFile(/tmp/multipartBody4626622097112143282asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957563923,"filename":"image_15012025_01_28_35_10373.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/95dfa0d6b4970e37acd993b3ef91ea6f.jpg","text":"TemporaryFile(/tmp/multipartBody2005780064340503103asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957563923,"filename":"image_15012025_01_29_15_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b03beec28895b69a19967dff91779bc9.jpg","text":"TemporaryFile(/tmp/multipartBody526862598747471630asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957563923,"filename":"image_15012025_01_28_55_9367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/29c91fd37fbe8bcaff55c943d2d0bce2.jpg","text":"TemporaryFile(/tmp/multipartBody8134154669205937647asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957563923,"filename":"image_15012025_01_28_45_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5b0f6ca41c8f71b351423f6c577bd5a2.jpg","text":"TemporaryFile(/tmp/multipartBody6510224576289268250asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957563923,"filename":"image_15012025_01_28_24_9393.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329169940","file1":"1329169822","file0":"1329169685","file4":"1329170151","file5":"1329170216","file3":"1329169997"},"map_files_photo_id_array":[{"photo_id":"1329170216","filename":"file5"},{"photo_id":"1329169940","filename":"file2"},{"photo_id":"1329170151","filename":"file4"},{"photo_id":"1329169822","filename":"file1"},{"photo_id":"1329169685","filename":"file0"},{"photo_id":"1329169997","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329170216":["hashtag1","hashtag2"]},{"1329169822":["hashtag1","hashtag2"]},{"1329170151":["hashtag1","hashtag2"]},{"1329169997":["hashtag1","hashtag2"]},{"1329169940":["hashtag1","hashtag2"]},{"1329169685":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329170216, 1329169822, 1329170151, 1329169997, 1329169940, 1329169685)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.25469636917114 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 15 --only_old 0
2025-01-15 17:12:33.102652
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/29/image_15012025_01_29_44_9348.jpg', '/home/pi/Desktop/images/15012025/01/29/image_15012025_01_30_05_10436.jpg', '/home/pi/Desktop/images/15012025/01/30/image_15012025_01_30_15_9346.jpg', '/home/pi/Desktop/images/15012025/01/30/image_15012025_01_30_25_10426.jpg', '/home/pi/Desktop/images/15012025/01/30/image_15012025_01_30_35_10363.jpg', '/home/pi/Desktop/images/15012025/01/30/image_15012025_01_30_45_9352.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/29/image_15012025_01_29_44_9348.jpg
/home/pi/Desktop/images/15012025/01/29/image_15012025_01_30_05_10436.jpg
/home/pi/Desktop/images/15012025/01/30/image_15012025_01_30_15_9346.jpg
/home/pi/Desktop/images/15012025/01/30/image_15012025_01_30_25_10426.jpg
/home/pi/Desktop/images/15012025/01/30/image_15012025_01_30_35_10363.jpg
/home/pi/Desktop/images/15012025/01/30/image_15012025_01_30_45_9352.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329170366","1329170389","1329170327","1329170300","1329170271","1329170304"],"photo_ids_order":["1329170271","1329170300","1329170304","1329170327","1329170366","1329170389"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c0444eb62d9100bf9b3e3ed9861d2599.jpg","text":"TemporaryFile(/tmp/multipartBody110416085426245849asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957614204,"filename":"image_15012025_01_30_35_10363.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/456969c6a8b5c8b00cc02452f894f766.jpg","text":"TemporaryFile(/tmp/multipartBody7959379726661564944asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957614204,"filename":"image_15012025_01_30_45_9352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4eba88c7acaced9400eab179543d7a15.jpg","text":"TemporaryFile(/tmp/multipartBody2833397811531484763asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957614204,"filename":"image_15012025_01_30_25_10426.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e509ce8faf960035ff50f25ed2485f3b.jpg","text":"TemporaryFile(/tmp/multipartBody38046488198179037asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957614204,"filename":"image_15012025_01_30_05_10436.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/979e97c7812ce785a56c7ea0c15bfc6d.jpg","text":"TemporaryFile(/tmp/multipartBody3318885957070421549asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957614204,"filename":"image_15012025_01_29_44_9348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/706aa7355b0cbb2821c732e35df45cd8.jpg","text":"TemporaryFile(/tmp/multipartBody423560743695656756asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957614204,"filename":"image_15012025_01_30_15_9346.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329170304","file1":"1329170300","file0":"1329170271","file4":"1329170366","file5":"1329170389","file3":"1329170327"},"map_files_photo_id_array":[{"photo_id":"1329170389","filename":"file5"},{"photo_id":"1329170304","filename":"file2"},{"photo_id":"1329170366","filename":"file4"},{"photo_id":"1329170300","filename":"file1"},{"photo_id":"1329170271","filename":"file0"},{"photo_id":"1329170327","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329170366":["hashtag1","hashtag2"]},{"1329170389":["hashtag1","hashtag2"]},{"1329170327":["hashtag1","hashtag2"]},{"1329170300":["hashtag1","hashtag2"]},{"1329170271":["hashtag1","hashtag2"]},{"1329170304":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329170366, 1329170389, 1329170327, 1329170300, 1329170271, 1329170304)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.43041515350342 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 15 --only_old 0
2025-01-15 17:13:32.432579
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/30/image_15012025_01_30_55_10386.jpg', '/home/pi/Desktop/images/15012025/01/30/image_15012025_01_31_04_9351.jpg', '/home/pi/Desktop/images/15012025/01/31/image_15012025_01_31_15_10371.jpg', '/home/pi/Desktop/images/15012025/01/31/image_15012025_01_31_25_10376.jpg', '/home/pi/Desktop/images/15012025/01/31/image_15012025_01_31_35_9354.jpg', '/home/pi/Desktop/images/15012025/01/31/image_15012025_01_31_45_10343.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/30/image_15012025_01_30_55_10386.jpg
/home/pi/Desktop/images/15012025/01/30/image_15012025_01_31_04_9351.jpg
/home/pi/Desktop/images/15012025/01/31/image_15012025_01_31_15_10371.jpg
/home/pi/Desktop/images/15012025/01/31/image_15012025_01_31_25_10376.jpg
/home/pi/Desktop/images/15012025/01/31/image_15012025_01_31_35_9354.jpg
/home/pi/Desktop/images/15012025/01/31/image_15012025_01_31_45_10343.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329170409","1329170426","1329170420","1329170414","1329170430","1329170433"],"photo_ids_order":["1329170409","1329170414","1329170420","1329170426","1329170430","1329170433"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/877fda2efce4e19d02674ee16a57b8a9.jpg","text":"TemporaryFile(/tmp/multipartBody695772809658864769asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957673441,"filename":"image_15012025_01_30_55_10386.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3c839cffc5d214fe93f89551a0acdec3.jpg","text":"TemporaryFile(/tmp/multipartBody6222351317670222703asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957673441,"filename":"image_15012025_01_31_25_10376.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/32157d694d2335b8271d9899760ba381.jpg","text":"TemporaryFile(/tmp/multipartBody1743278479568443865asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957673441,"filename":"image_15012025_01_31_15_10371.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/eeb37e641ad1e055df6f0eb89fb48c9c.jpg","text":"TemporaryFile(/tmp/multipartBody5980287656510079702asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957673441,"filename":"image_15012025_01_31_04_9351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c4bc8c7c66de14902c6f6fa8e89e1f53.jpg","text":"TemporaryFile(/tmp/multipartBody3147011793385000544asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957673441,"filename":"image_15012025_01_31_35_9354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/79d22642c60da941a0616de9a0777cc9.jpg","text":"TemporaryFile(/tmp/multipartBody3052074568040699486asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957673441,"filename":"image_15012025_01_31_45_10343.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329170420","file1":"1329170414","file0":"1329170409","file4":"1329170430","file5":"1329170433","file3":"1329170426"},"map_files_photo_id_array":[{"photo_id":"1329170433","filename":"file5"},{"photo_id":"1329170420","filename":"file2"},{"photo_id":"1329170430","filename":"file4"},{"photo_id":"1329170414","filename":"file1"},{"photo_id":"1329170409","filename":"file0"},{"photo_id":"1329170426","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329170409":["hashtag1","hashtag2"]},{"1329170426":["hashtag1","hashtag2"]},{"1329170420":["hashtag1","hashtag2"]},{"1329170414":["hashtag1","hashtag2"]},{"1329170430":["hashtag1","hashtag2"]},{"1329170433":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329170409, 1329170426, 1329170420, 1329170414, 1329170430, 1329170433)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.9894323348999 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 15 --only_old 0
2025-01-15 17:14:32.854984
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/31/image_15012025_01_31_55_10363.jpg', '/home/pi/Desktop/images/15012025/01/32/image_15012025_01_32_15_10458.jpg', '/home/pi/Desktop/images/15012025/01/32/image_15012025_01_32_25_9445.jpg', '/home/pi/Desktop/images/15012025/01/32/image_15012025_01_32_35_10415.jpg', '/home/pi/Desktop/images/15012025/01/32/image_15012025_01_32_45_10349.jpg', '/home/pi/Desktop/images/15012025/01/32/image_15012025_01_32_55_9340.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/31/image_15012025_01_31_55_10363.jpg
/home/pi/Desktop/images/15012025/01/32/image_15012025_01_32_15_10458.jpg
/home/pi/Desktop/images/15012025/01/32/image_15012025_01_32_25_9445.jpg
/home/pi/Desktop/images/15012025/01/32/image_15012025_01_32_35_10415.jpg
/home/pi/Desktop/images/15012025/01/32/image_15012025_01_32_45_10349.jpg
/home/pi/Desktop/images/15012025/01/32/image_15012025_01_32_55_9340.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329170465","1329170474","1329170452","1329170446","1329170469","1329170460"],"photo_ids_order":["1329170446","1329170452","1329170460","1329170465","1329170469","1329170474"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/96a553653428ffa1f782a1f065331fd0.jpg","text":"TemporaryFile(/tmp/multipartBody3311998731317419481asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957733873,"filename":"image_15012025_01_32_35_10415.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7f8378772d11f2e79fe47e4ab82b9e16.jpg","text":"TemporaryFile(/tmp/multipartBody1826306395998475719asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957733873,"filename":"image_15012025_01_32_55_9340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/676d656e3e8a8bc50ebc02feac83a66f.jpg","text":"TemporaryFile(/tmp/multipartBody7266695939201659555asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957733873,"filename":"image_15012025_01_32_15_10458.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2dfd49e07fabdf95c68bd80c16be2e45.jpg","text":"TemporaryFile(/tmp/multipartBody5855166314282231400asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957733873,"filename":"image_15012025_01_31_55_10363.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/294b607c5db0c671cd4f3395f3752b5b.jpg","text":"TemporaryFile(/tmp/multipartBody6736522064923137820asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957733873,"filename":"image_15012025_01_32_45_10349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/28268a405ca8a756fbd2a9f250464f16.jpg","text":"TemporaryFile(/tmp/multipartBody6044717346185534677asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957733873,"filename":"image_15012025_01_32_25_9445.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329170460","file1":"1329170452","file0":"1329170446","file4":"1329170469","file5":"1329170474","file3":"1329170465"},"map_files_photo_id_array":[{"photo_id":"1329170474","filename":"file5"},{"photo_id":"1329170460","filename":"file2"},{"photo_id":"1329170469","filename":"file4"},{"photo_id":"1329170452","filename":"file1"},{"photo_id":"1329170446","filename":"file0"},{"photo_id":"1329170465","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329170465":["hashtag1","hashtag2"]},{"1329170474":["hashtag1","hashtag2"]},{"1329170452":["hashtag1","hashtag2"]},{"1329170446":["hashtag1","hashtag2"]},{"1329170469":["hashtag1","hashtag2"]},{"1329170460":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329170465, 1329170474, 1329170452, 1329170446, 1329170469, 1329170460)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.98493719100952 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 15 --only_old 0
2025-01-15 17:15:33.091194
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/32/image_15012025_01_33_05_10411.jpg', '/home/pi/Desktop/images/15012025/01/33/image_15012025_01_34_04_9339.jpg', '/home/pi/Desktop/images/15012025/01/34/image_15012025_01_34_55_10436.jpg', '/home/pi/Desktop/images/15012025/01/34/image_15012025_01_35_05_9438.jpg', '/home/pi/Desktop/images/15012025/01/35/image_15012025_01_35_15_10419.jpg', '/home/pi/Desktop/images/15012025/01/35/image_15012025_01_35_25_9367.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/32/image_15012025_01_33_05_10411.jpg
/home/pi/Desktop/images/15012025/01/33/image_15012025_01_34_04_9339.jpg
/home/pi/Desktop/images/15012025/01/34/image_15012025_01_34_55_10436.jpg
/home/pi/Desktop/images/15012025/01/34/image_15012025_01_35_05_9438.jpg
/home/pi/Desktop/images/15012025/01/35/image_15012025_01_35_15_10419.jpg
/home/pi/Desktop/images/15012025/01/35/image_15012025_01_35_25_9367.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329170525","1329170519","1329170539","1329170530","1329170512","1329170506"],"photo_ids_order":["1329170506","1329170512","1329170519","1329170525","1329170530","1329170539"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1c80ab57963bff377d64185d4fd375de.jpg","text":"TemporaryFile(/tmp/multipartBody6256096183399777196asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957794101,"filename":"image_15012025_01_35_05_9438.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/be5a9fb3dfc38c7307cc7aeee3326fda.jpg","text":"TemporaryFile(/tmp/multipartBody3200416005476607589asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957794101,"filename":"image_15012025_01_34_55_10436.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/198816da7bbdb0f77835b003846f17c6.jpg","text":"TemporaryFile(/tmp/multipartBody7789363926710922482asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957794101,"filename":"image_15012025_01_35_25_9367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/79aeb07b027128bc2cd8e727a319a5b4.jpg","text":"TemporaryFile(/tmp/multipartBody7831752266201840917asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957794101,"filename":"image_15012025_01_35_15_10419.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/54561d25a9ac3fae68ddd9e77e296712.jpg","text":"TemporaryFile(/tmp/multipartBody7585689533015563730asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957794101,"filename":"image_15012025_01_34_04_9339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6398665349817e8d1672402a5c029ada.jpg","text":"TemporaryFile(/tmp/multipartBody1118629365851674087asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957794101,"filename":"image_15012025_01_33_05_10411.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329170519","file1":"1329170512","file0":"1329170506","file4":"1329170530","file5":"1329170539","file3":"1329170525"},"map_files_photo_id_array":[{"photo_id":"1329170539","filename":"file5"},{"photo_id":"1329170519","filename":"file2"},{"photo_id":"1329170530","filename":"file4"},{"photo_id":"1329170512","filename":"file1"},{"photo_id":"1329170506","filename":"file0"},{"photo_id":"1329170525","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329170525":["hashtag1","hashtag2"]},{"1329170519":["hashtag1","hashtag2"]},{"1329170539":["hashtag1","hashtag2"]},{"1329170530":["hashtag1","hashtag2"]},{"1329170512":["hashtag1","hashtag2"]},{"1329170506":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329170525, 1329170519, 1329170539, 1329170530, 1329170512, 1329170506)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.356109619140625 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 15 --only_old 0
2025-01-15 17:16:32.223657
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/35/image_15012025_01_35_35_10360.jpg', '/home/pi/Desktop/images/15012025/01/35/image_15012025_01_35_45_10350.jpg', '/home/pi/Desktop/images/15012025/01/36/image_15012025_01_36_25_9264.jpg', '/home/pi/Desktop/images/15012025/01/36/image_15012025_01_36_44_9370.jpg', '/home/pi/Desktop/images/15012025/01/36/image_15012025_01_36_55_10357.jpg', '/home/pi/Desktop/images/15012025/01/36/image_15012025_01_37_05_10417.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/35/image_15012025_01_35_35_10360.jpg
/home/pi/Desktop/images/15012025/01/35/image_15012025_01_35_45_10350.jpg
/home/pi/Desktop/images/15012025/01/36/image_15012025_01_36_25_9264.jpg
/home/pi/Desktop/images/15012025/01/36/image_15012025_01_36_44_9370.jpg
/home/pi/Desktop/images/15012025/01/36/image_15012025_01_36_55_10357.jpg
/home/pi/Desktop/images/15012025/01/36/image_15012025_01_37_05_10417.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329170609","1329170593","1329170587","1329170605","1329170608","1329170598"],"photo_ids_order":["1329170587","1329170593","1329170598","1329170605","1329170608","1329170609"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dc72337b0731eaa92c2db98cf33cc8ee.jpg","text":"TemporaryFile(/tmp/multipartBody8166415996190204268asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957853260,"filename":"image_15012025_01_37_05_10417.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/284cd9f104503074851eebd5c92776b1.jpg","text":"TemporaryFile(/tmp/multipartBody6052222521435372264asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957853260,"filename":"image_15012025_01_35_45_10350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2458ab1edf95fa1d33037fb245a09b8c.jpg","text":"TemporaryFile(/tmp/multipartBody2518358943266696598asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957853260,"filename":"image_15012025_01_35_35_10360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/88b3a205977b25bbcf3ca41bce4749b8.jpg","text":"TemporaryFile(/tmp/multipartBody870554890340711786asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957853260,"filename":"image_15012025_01_36_44_9370.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/aa5b278744de116d46424957757c4590.jpg","text":"TemporaryFile(/tmp/multipartBody2950288895097315843asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957853260,"filename":"image_15012025_01_36_55_10357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/768edf2149d60dee0dbed0abb02b0ee5.jpg","text":"TemporaryFile(/tmp/multipartBody5078280930355603525asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957853260,"filename":"image_15012025_01_36_25_9264.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329170598","file1":"1329170593","file0":"1329170587","file4":"1329170608","file5":"1329170609","file3":"1329170605"},"map_files_photo_id_array":[{"photo_id":"1329170609","filename":"file5"},{"photo_id":"1329170598","filename":"file2"},{"photo_id":"1329170608","filename":"file4"},{"photo_id":"1329170593","filename":"file1"},{"photo_id":"1329170587","filename":"file0"},{"photo_id":"1329170605","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329170609":["hashtag1","hashtag2"]},{"1329170593":["hashtag1","hashtag2"]},{"1329170587":["hashtag1","hashtag2"]},{"1329170605":["hashtag1","hashtag2"]},{"1329170608":["hashtag1","hashtag2"]},{"1329170598":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329170609, 1329170593, 1329170587, 1329170605, 1329170608, 1329170598)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.25219416618347 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 15 --only_old 0
2025-01-15 17:17:32.609833
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/37/image_15012025_01_37_15_9347.jpg', '/home/pi/Desktop/images/15012025/01/37/image_15012025_01_37_25_10368.jpg', '/home/pi/Desktop/images/15012025/01/37/image_15012025_01_37_35_10428.jpg', '/home/pi/Desktop/images/15012025/01/37/image_15012025_01_37_45_9429.jpg', '/home/pi/Desktop/images/15012025/01/38/image_15012025_01_38_45_10354.jpg', '/home/pi/Desktop/images/15012025/01/38/image_15012025_01_38_54_9327.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/37/image_15012025_01_37_15_9347.jpg
/home/pi/Desktop/images/15012025/01/37/image_15012025_01_37_25_10368.jpg
/home/pi/Desktop/images/15012025/01/37/image_15012025_01_37_35_10428.jpg
/home/pi/Desktop/images/15012025/01/37/image_15012025_01_37_45_9429.jpg
/home/pi/Desktop/images/15012025/01/38/image_15012025_01_38_45_10354.jpg
/home/pi/Desktop/images/15012025/01/38/image_15012025_01_38_54_9327.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6046299934387207 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
2025-01-15 17:17:42.687339
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/37/image_15012025_01_37_15_9347.jpg', '/home/pi/Desktop/images/15012025/01/37/image_15012025_01_37_25_10368.jpg', '/home/pi/Desktop/images/15012025/01/37/image_15012025_01_37_35_10428.jpg', '/home/pi/Desktop/images/15012025/01/37/image_15012025_01_37_45_9429.jpg', '/home/pi/Desktop/images/15012025/01/38/image_15012025_01_38_45_10354.jpg', '/home/pi/Desktop/images/15012025/01/38/image_15012025_01_38_54_9327.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/37/image_15012025_01_37_15_9347.jpg
/home/pi/Desktop/images/15012025/01/37/image_15012025_01_37_25_10368.jpg
/home/pi/Desktop/images/15012025/01/37/image_15012025_01_37_35_10428.jpg
/home/pi/Desktop/images/15012025/01/37/image_15012025_01_37_45_9429.jpg
/home/pi/Desktop/images/15012025/01/38/image_15012025_01_38_45_10354.jpg
/home/pi/Desktop/images/15012025/01/38/image_15012025_01_38_54_9327.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329170699","1329170684","1329170671","1329170682","1329170676","1329170687"],"photo_ids_order":["1329170671","1329170676","1329170682","1329170684","1329170687","1329170699"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b05f36e55c02ae41895d5c213f47c126.jpg","text":"TemporaryFile(/tmp/multipartBody4497846545044492166asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957923613,"filename":"image_15012025_01_38_54_9327.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7114fad8c7e67583086d050afea8af5c.jpg","text":"TemporaryFile(/tmp/multipartBody1033736154266597093asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957923613,"filename":"image_15012025_01_37_45_9429.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4d35bdb68487e4572c52c7e66072ea28.jpg","text":"TemporaryFile(/tmp/multipartBody8817136676550634123asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957923613,"filename":"image_15012025_01_37_15_9347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/67e6ebf3e21c4476c4e89af2b5c978f5.jpg","text":"TemporaryFile(/tmp/multipartBody526132477094666073asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957923613,"filename":"image_15012025_01_37_35_10428.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2039504b72b8163566e627ff45397450.jpg","text":"TemporaryFile(/tmp/multipartBody8798221592584093809asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957923613,"filename":"image_15012025_01_37_25_10368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/27cbb799863dc4cc91d5a6ec7de8c6e0.jpg","text":"TemporaryFile(/tmp/multipartBody9178680047551598237asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957923613,"filename":"image_15012025_01_38_45_10354.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329170682","file1":"1329170676","file0":"1329170671","file4":"1329170687","file5":"1329170699","file3":"1329170684"},"map_files_photo_id_array":[{"photo_id":"1329170699","filename":"file5"},{"photo_id":"1329170682","filename":"file2"},{"photo_id":"1329170687","filename":"file4"},{"photo_id":"1329170676","filename":"file1"},{"photo_id":"1329170671","filename":"file0"},{"photo_id":"1329170684","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329170699":["hashtag1","hashtag2"]},{"1329170684":["hashtag1","hashtag2"]},{"1329170671":["hashtag1","hashtag2"]},{"1329170682":["hashtag1","hashtag2"]},{"1329170676":["hashtag1","hashtag2"]},{"1329170687":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329170699, 1329170684, 1329170671, 1329170682, 1329170676, 1329170687)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.24291729927063 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 15 --only_old 0
2025-01-15 17:18:32.837290
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/39/image_15012025_01_39_15_10428.jpg', '/home/pi/Desktop/images/15012025/01/40/image_15012025_01_40_15_9368.jpg', '/home/pi/Desktop/images/15012025/01/40/image_15012025_01_40_25_10445.jpg', '/home/pi/Desktop/images/15012025/01/40/image_15012025_01_40_34_9342.jpg', '/home/pi/Desktop/images/15012025/01/40/image_15012025_01_40_45_10326.jpg', '/home/pi/Desktop/images/15012025/01/40/image_15012025_01_40_55_10368.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/39/image_15012025_01_39_15_10428.jpg
/home/pi/Desktop/images/15012025/01/40/image_15012025_01_40_15_9368.jpg
/home/pi/Desktop/images/15012025/01/40/image_15012025_01_40_25_10445.jpg
/home/pi/Desktop/images/15012025/01/40/image_15012025_01_40_34_9342.jpg
/home/pi/Desktop/images/15012025/01/40/image_15012025_01_40_45_10326.jpg
/home/pi/Desktop/images/15012025/01/40/image_15012025_01_40_55_10368.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329170807","1329170851","1329170773","1329170800","1329170859","1329170823"],"photo_ids_order":["1329170773","1329170800","1329170807","1329170823","1329170851","1329170859"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5a1322d24ec389e42a37c0094e60eef2.jpg","text":"TemporaryFile(/tmp/multipartBody9153095778439076178asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957973839,"filename":"image_15012025_01_40_25_10445.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5c649d43613dc6dbe08dbd1be504c44e.jpg","text":"TemporaryFile(/tmp/multipartBody1028960687712797811asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957973839,"filename":"image_15012025_01_40_45_10326.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1ae2baebb7bcc107c2cd277941e871ec.jpg","text":"TemporaryFile(/tmp/multipartBody3975258049893500009asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957973839,"filename":"image_15012025_01_39_15_10428.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8ffe650c3863cf79cff6d1b398fbdd90.jpg","text":"TemporaryFile(/tmp/multipartBody1862154332668274474asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957973839,"filename":"image_15012025_01_40_15_9368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/72bd60ca0030c4a39c0076d00b626a0d.jpg","text":"TemporaryFile(/tmp/multipartBody4375947510389033918asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957973839,"filename":"image_15012025_01_40_55_10368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f5a453e92e369e2ba8a4e4010e66b7be.jpg","text":"TemporaryFile(/tmp/multipartBody4188082520446480251asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736957973839,"filename":"image_15012025_01_40_34_9342.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329170807","file1":"1329170800","file0":"1329170773","file4":"1329170851","file5":"1329170859","file3":"1329170823"},"map_files_photo_id_array":[{"photo_id":"1329170859","filename":"file5"},{"photo_id":"1329170807","filename":"file2"},{"photo_id":"1329170851","filename":"file4"},{"photo_id":"1329170800","filename":"file1"},{"photo_id":"1329170773","filename":"file0"},{"photo_id":"1329170823","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329170807":["hashtag1","hashtag2"]},{"1329170851":["hashtag1","hashtag2"]},{"1329170773":["hashtag1","hashtag2"]},{"1329170800":["hashtag1","hashtag2"]},{"1329170859":["hashtag1","hashtag2"]},{"1329170823":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329170807, 1329170851, 1329170773, 1329170800, 1329170859, 1329170823)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.811256885528564 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 15 --only_old 0
2025-01-15 17:19:33.063682
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/40/image_15012025_01_41_05_9350.jpg', '/home/pi/Desktop/images/15012025/01/41/image_15012025_01_41_15_10354.jpg', '/home/pi/Desktop/images/15012025/01/41/image_15012025_01_41_25_10423.jpg', '/home/pi/Desktop/images/15012025/01/41/image_15012025_01_41_45_10436.jpg', '/home/pi/Desktop/images/15012025/01/41/image_15012025_01_42_05_10350.jpg', '/home/pi/Desktop/images/15012025/01/42/image_15012025_01_42_25_9360.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/40/image_15012025_01_41_05_9350.jpg
/home/pi/Desktop/images/15012025/01/41/image_15012025_01_41_15_10354.jpg
/home/pi/Desktop/images/15012025/01/41/image_15012025_01_41_25_10423.jpg
/home/pi/Desktop/images/15012025/01/41/image_15012025_01_41_45_10436.jpg
/home/pi/Desktop/images/15012025/01/41/image_15012025_01_42_05_10350.jpg
/home/pi/Desktop/images/15012025/01/42/image_15012025_01_42_25_9360.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329171031","1329171028","1329171004","1329171024","1329171018","1329171009"],"photo_ids_order":["1329171004","1329171009","1329171018","1329171024","1329171028","1329171031"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a10ee84a577f9874ce4e1f9df97a3e35.jpg","text":"TemporaryFile(/tmp/multipartBody2768292698796609120asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958034081,"filename":"image_15012025_01_42_25_9360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/415f810129a3d775e1f617d6a6a6ee19.jpg","text":"TemporaryFile(/tmp/multipartBody8110707998087784111asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958034081,"filename":"image_15012025_01_42_05_10350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/865148c1cff8ae0956429bf60386ac4b.jpg","text":"TemporaryFile(/tmp/multipartBody2949312371625820074asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958034081,"filename":"image_15012025_01_41_05_9350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/40f3bab6bfd9fc0f4da72413c4cd605b.jpg","text":"TemporaryFile(/tmp/multipartBody4045482319119715674asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958034081,"filename":"image_15012025_01_41_45_10436.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/03ce90166f69144c788a7659353e311c.jpg","text":"TemporaryFile(/tmp/multipartBody5475553505831119693asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958034081,"filename":"image_15012025_01_41_25_10423.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/40ae15f7979bf224dfbdb532e5c198da.jpg","text":"TemporaryFile(/tmp/multipartBody4557213239974462120asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958034081,"filename":"image_15012025_01_41_15_10354.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329171018","file1":"1329171009","file0":"1329171004","file4":"1329171028","file5":"1329171031","file3":"1329171024"},"map_files_photo_id_array":[{"photo_id":"1329171031","filename":"file5"},{"photo_id":"1329171018","filename":"file2"},{"photo_id":"1329171028","filename":"file4"},{"photo_id":"1329171009","filename":"file1"},{"photo_id":"1329171004","filename":"file0"},{"photo_id":"1329171024","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329171031":["hashtag1","hashtag2"]},{"1329171028":["hashtag1","hashtag2"]},{"1329171004":["hashtag1","hashtag2"]},{"1329171024":["hashtag1","hashtag2"]},{"1329171018":["hashtag1","hashtag2"]},{"1329171009":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329171031, 1329171028, 1329171004, 1329171024, 1329171018, 1329171009)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.71078562736511 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 15 --only_old 0
2025-01-15 17:20:33.141004
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/42/image_15012025_01_42_44_9332.jpg', '/home/pi/Desktop/images/15012025/01/42/image_15012025_01_42_55_10396.jpg', '/home/pi/Desktop/images/15012025/01/42/image_15012025_01_43_05_10347.jpg', '/home/pi/Desktop/images/15012025/01/43/image_15012025_01_43_15_9364.jpg', '/home/pi/Desktop/images/15012025/01/43/image_15012025_01_43_25_10410.jpg', '/home/pi/Desktop/images/15012025/01/43/image_15012025_01_43_35_10413.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/42/image_15012025_01_42_44_9332.jpg
/home/pi/Desktop/images/15012025/01/42/image_15012025_01_42_55_10396.jpg
/home/pi/Desktop/images/15012025/01/42/image_15012025_01_43_05_10347.jpg
/home/pi/Desktop/images/15012025/01/43/image_15012025_01_43_15_9364.jpg
/home/pi/Desktop/images/15012025/01/43/image_15012025_01_43_25_10410.jpg
/home/pi/Desktop/images/15012025/01/43/image_15012025_01_43_35_10413.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329171215","1329171200","1329171206","1329171217","1329171216","1329171210"],"photo_ids_order":["1329171200","1329171206","1329171210","1329171215","1329171216","1329171217"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6b8451048bb35b78a41afa1c19e48d23.jpg","text":"TemporaryFile(/tmp/multipartBody8307286439222534278asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958094170,"filename":"image_15012025_01_43_15_9364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/670364b8a9c5ef09367578e54f97886b.jpg","text":"TemporaryFile(/tmp/multipartBody1678113980229651766asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958094170,"filename":"image_15012025_01_42_44_9332.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e77f3ef2287adb58310301abf4997bc0.jpg","text":"TemporaryFile(/tmp/multipartBody8196566561286340888asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958094170,"filename":"image_15012025_01_42_55_10396.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5cfdf5d4dbdb64a539601aae44b85bc2.jpg","text":"TemporaryFile(/tmp/multipartBody6367381316632653349asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958094170,"filename":"image_15012025_01_43_35_10413.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9e82f9e51405b8cb8252c890e15cdb33.jpg","text":"TemporaryFile(/tmp/multipartBody3640859796561737372asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958094170,"filename":"image_15012025_01_43_25_10410.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/802df1775ea073ebc82d839344476ada.jpg","text":"TemporaryFile(/tmp/multipartBody893532002921991208asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958094170,"filename":"image_15012025_01_43_05_10347.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329171210","file1":"1329171206","file0":"1329171200","file4":"1329171216","file5":"1329171217","file3":"1329171215"},"map_files_photo_id_array":[{"photo_id":"1329171217","filename":"file5"},{"photo_id":"1329171210","filename":"file2"},{"photo_id":"1329171216","filename":"file4"},{"photo_id":"1329171206","filename":"file1"},{"photo_id":"1329171200","filename":"file0"},{"photo_id":"1329171215","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329171215":["hashtag1","hashtag2"]},{"1329171200":["hashtag1","hashtag2"]},{"1329171206":["hashtag1","hashtag2"]},{"1329171217":["hashtag1","hashtag2"]},{"1329171216":["hashtag1","hashtag2"]},{"1329171210":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329171215, 1329171200, 1329171206, 1329171217, 1329171216, 1329171210)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.65676188468933 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 15 --only_old 0
2025-01-15 17:21:32.702752
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/43/image_15012025_01_43_45_9363.jpg', '/home/pi/Desktop/images/15012025/01/43/image_15012025_01_43_55_10409.jpg', '/home/pi/Desktop/images/15012025/01/44/image_15012025_01_44_15_10341.jpg', '/home/pi/Desktop/images/15012025/01/44/image_15012025_01_44_25_10354.jpg', '/home/pi/Desktop/images/15012025/01/44/image_15012025_01_44_35_9429.jpg', '/home/pi/Desktop/images/15012025/01/44/image_15012025_01_44_45_10400.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/43/image_15012025_01_43_45_9363.jpg
/home/pi/Desktop/images/15012025/01/43/image_15012025_01_43_55_10409.jpg
/home/pi/Desktop/images/15012025/01/44/image_15012025_01_44_15_10341.jpg
/home/pi/Desktop/images/15012025/01/44/image_15012025_01_44_25_10354.jpg
/home/pi/Desktop/images/15012025/01/44/image_15012025_01_44_35_9429.jpg
/home/pi/Desktop/images/15012025/01/44/image_15012025_01_44_45_10400.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329171353","1329171250","1329171232","1329171282","1329171264","1329171437"],"photo_ids_order":["1329171232","1329171250","1329171264","1329171282","1329171353","1329171437"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e7220b23af29b742005bacf0be2a3a80.jpg","text":"TemporaryFile(/tmp/multipartBody8516632360058166851asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958153704,"filename":"image_15012025_01_44_35_9429.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/80fd18d26254b504ead5557ff3dfa510.jpg","text":"TemporaryFile(/tmp/multipartBody4063539370432462078asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958153704,"filename":"image_15012025_01_43_55_10409.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/be4494eba3b0bedfcb7a092208bd252d.jpg","text":"TemporaryFile(/tmp/multipartBody517263257194228359asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958153704,"filename":"image_15012025_01_43_45_9363.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c3e4a617e1db1f48636158f7895097bd.jpg","text":"TemporaryFile(/tmp/multipartBody7478931314560068447asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958153704,"filename":"image_15012025_01_44_25_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/28ed44e1a0b35b8edd10ac6f0acd91e7.jpg","text":"TemporaryFile(/tmp/multipartBody3707646600431157631asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958153704,"filename":"image_15012025_01_44_15_10341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bbdbfb089a2bf3cd1dd66a87234ff229.jpg","text":"TemporaryFile(/tmp/multipartBody5931114186320476988asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958153704,"filename":"image_15012025_01_44_45_10400.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329171264","file1":"1329171250","file0":"1329171232","file4":"1329171353","file5":"1329171437","file3":"1329171282"},"map_files_photo_id_array":[{"photo_id":"1329171437","filename":"file5"},{"photo_id":"1329171264","filename":"file2"},{"photo_id":"1329171353","filename":"file4"},{"photo_id":"1329171250","filename":"file1"},{"photo_id":"1329171232","filename":"file0"},{"photo_id":"1329171282","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329171353":["hashtag1","hashtag2"]},{"1329171250":["hashtag1","hashtag2"]},{"1329171232":["hashtag1","hashtag2"]},{"1329171282":["hashtag1","hashtag2"]},{"1329171264":["hashtag1","hashtag2"]},{"1329171437":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329171353, 1329171250, 1329171232, 1329171282, 1329171264, 1329171437)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 49.81567716598511 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 15 --only_old 0
2025-01-15 17:22:32.874997
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/44/image_15012025_01_44_55_10362.jpg', '/home/pi/Desktop/images/15012025/01/44/image_15012025_01_45_05_9345.jpg', '/home/pi/Desktop/images/15012025/01/45/image_15012025_01_45_15_10472.jpg', '/home/pi/Desktop/images/15012025/01/45/image_15012025_01_45_25_9359.jpg', '/home/pi/Desktop/images/15012025/01/45/image_15012025_01_45_35_10354.jpg', '/home/pi/Desktop/images/15012025/01/45/image_15012025_01_45_45_10433.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/44/image_15012025_01_44_55_10362.jpg
/home/pi/Desktop/images/15012025/01/44/image_15012025_01_45_05_9345.jpg
/home/pi/Desktop/images/15012025/01/45/image_15012025_01_45_15_10472.jpg
/home/pi/Desktop/images/15012025/01/45/image_15012025_01_45_25_9359.jpg
/home/pi/Desktop/images/15012025/01/45/image_15012025_01_45_35_10354.jpg
/home/pi/Desktop/images/15012025/01/45/image_15012025_01_45_45_10433.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6660869121551514 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
2025-01-15 17:22:42.881326
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/44/image_15012025_01_44_55_10362.jpg', '/home/pi/Desktop/images/15012025/01/44/image_15012025_01_45_05_9345.jpg', '/home/pi/Desktop/images/15012025/01/45/image_15012025_01_45_15_10472.jpg', '/home/pi/Desktop/images/15012025/01/45/image_15012025_01_45_25_9359.jpg', '/home/pi/Desktop/images/15012025/01/45/image_15012025_01_45_35_10354.jpg', '/home/pi/Desktop/images/15012025/01/45/image_15012025_01_45_45_10433.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/44/image_15012025_01_44_55_10362.jpg
/home/pi/Desktop/images/15012025/01/44/image_15012025_01_45_05_9345.jpg
/home/pi/Desktop/images/15012025/01/45/image_15012025_01_45_15_10472.jpg
/home/pi/Desktop/images/15012025/01/45/image_15012025_01_45_25_9359.jpg
/home/pi/Desktop/images/15012025/01/45/image_15012025_01_45_35_10354.jpg
/home/pi/Desktop/images/15012025/01/45/image_15012025_01_45_45_10433.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329172126","1329172191","1329172188","1329172184","1329172079","1329172133"],"photo_ids_order":["1329172079","1329172126","1329172133","1329172184","1329172188","1329172191"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5208d2a240bce37150c01fc8d6c1d477.jpg","text":"TemporaryFile(/tmp/multipartBody5820151588624107308asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958223798,"filename":"image_15012025_01_45_05_9345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/89be38f1467b4961d405f0d218209f90.jpg","text":"TemporaryFile(/tmp/multipartBody2254237604948748103asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958223798,"filename":"image_15012025_01_45_45_10433.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2c4b08fe4296317bd8d99e2cb92e9e6a.jpg","text":"TemporaryFile(/tmp/multipartBody2202220098691621796asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958223798,"filename":"image_15012025_01_45_35_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/86cbf6c7017236b6714d44eb79cb7e2f.jpg","text":"TemporaryFile(/tmp/multipartBody1775832719324410842asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958223798,"filename":"image_15012025_01_45_25_9359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/764fca85787722b87d9dd852a539dd91.jpg","text":"TemporaryFile(/tmp/multipartBody7394109836881305426asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958223798,"filename":"image_15012025_01_44_55_10362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7f8a9251217e308dcd8f645ef76099c8.jpg","text":"TemporaryFile(/tmp/multipartBody6971112080234576000asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958223798,"filename":"image_15012025_01_45_15_10472.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329172133","file1":"1329172126","file0":"1329172079","file4":"1329172188","file5":"1329172191","file3":"1329172184"},"map_files_photo_id_array":[{"photo_id":"1329172191","filename":"file5"},{"photo_id":"1329172133","filename":"file2"},{"photo_id":"1329172188","filename":"file4"},{"photo_id":"1329172126","filename":"file1"},{"photo_id":"1329172079","filename":"file0"},{"photo_id":"1329172184","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329172126":["hashtag1","hashtag2"]},{"1329172191":["hashtag1","hashtag2"]},{"1329172188":["hashtag1","hashtag2"]},{"1329172184":["hashtag1","hashtag2"]},{"1329172079":["hashtag1","hashtag2"]},{"1329172133":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329172126, 1329172191, 1329172188, 1329172184, 1329172079, 1329172133)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.88467240333557 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 15 --only_old 0
2025-01-15 17:23:33.168998
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/45/image_15012025_01_45_55_9369.jpg', '/home/pi/Desktop/images/15012025/01/46/image_15012025_01_46_14_9349.jpg', '/home/pi/Desktop/images/15012025/01/46/image_15012025_01_46_55_10340.jpg', '/home/pi/Desktop/images/15012025/01/46/image_15012025_01_47_05_10428.jpg', '/home/pi/Desktop/images/15012025/01/47/image_15012025_01_47_15_9397.jpg', '/home/pi/Desktop/images/15012025/01/47/image_15012025_01_47_25_10414.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/45/image_15012025_01_45_55_9369.jpg
/home/pi/Desktop/images/15012025/01/46/image_15012025_01_46_14_9349.jpg
/home/pi/Desktop/images/15012025/01/46/image_15012025_01_46_55_10340.jpg
/home/pi/Desktop/images/15012025/01/46/image_15012025_01_47_05_10428.jpg
/home/pi/Desktop/images/15012025/01/47/image_15012025_01_47_15_9397.jpg
/home/pi/Desktop/images/15012025/01/47/image_15012025_01_47_25_10414.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329172202","1329172213","1329172218","1329172223","1329172220","1329172208"],"photo_ids_order":["1329172202","1329172208","1329172213","1329172218","1329172220","1329172223"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a8b37a2e9d887637435cc5e08f6c4dbb.jpg","text":"TemporaryFile(/tmp/multipartBody4142786718203287515asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958274240,"filename":"image_15012025_01_45_55_9369.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b6b6bafd0c6729bec74e5302b5a6526b.jpg","text":"TemporaryFile(/tmp/multipartBody7381823834255553881asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958274240,"filename":"image_15012025_01_46_55_10340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3452e9beabe2624922fb5a13398d30b5.jpg","text":"TemporaryFile(/tmp/multipartBody6854669744018531278asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958274240,"filename":"image_15012025_01_47_05_10428.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/07cfcfad5c7e0d5512a26da047207e55.jpg","text":"TemporaryFile(/tmp/multipartBody4992447629567913593asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958274240,"filename":"image_15012025_01_47_25_10414.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b4fea53610e1ceadc67794443ee9c071.jpg","text":"TemporaryFile(/tmp/multipartBody4417783025394479593asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958274240,"filename":"image_15012025_01_47_15_9397.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e04efc31f001e13b74db380a22f6535b.jpg","text":"TemporaryFile(/tmp/multipartBody2375278827506097379asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958274240,"filename":"image_15012025_01_46_14_9349.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329172213","file1":"1329172208","file0":"1329172202","file4":"1329172220","file5":"1329172223","file3":"1329172218"},"map_files_photo_id_array":[{"photo_id":"1329172223","filename":"file5"},{"photo_id":"1329172213","filename":"file2"},{"photo_id":"1329172220","filename":"file4"},{"photo_id":"1329172208","filename":"file1"},{"photo_id":"1329172202","filename":"file0"},{"photo_id":"1329172218","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329172202":["hashtag1","hashtag2"]},{"1329172213":["hashtag1","hashtag2"]},{"1329172218":["hashtag1","hashtag2"]},{"1329172223":["hashtag1","hashtag2"]},{"1329172220":["hashtag1","hashtag2"]},{"1329172208":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329172202, 1329172213, 1329172218, 1329172223, 1329172220, 1329172208)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.9393675327301 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 15 --only_old 0
2025-01-15 17:24:32.437216
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/47/image_15012025_01_47_35_9392.jpg', '/home/pi/Desktop/images/15012025/01/47/image_15012025_01_47_45_10349.jpg', '/home/pi/Desktop/images/15012025/01/47/image_15012025_01_47_55_10411.jpg', '/home/pi/Desktop/images/15012025/01/47/image_15012025_01_48_05_9420.jpg', '/home/pi/Desktop/images/15012025/01/48/image_15012025_01_48_15_10456.jpg', '/home/pi/Desktop/images/15012025/01/48/image_15012025_01_48_25_9439.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/47/image_15012025_01_47_35_9392.jpg
/home/pi/Desktop/images/15012025/01/47/image_15012025_01_47_45_10349.jpg
/home/pi/Desktop/images/15012025/01/47/image_15012025_01_47_55_10411.jpg
/home/pi/Desktop/images/15012025/01/47/image_15012025_01_48_05_9420.jpg
/home/pi/Desktop/images/15012025/01/48/image_15012025_01_48_15_10456.jpg
/home/pi/Desktop/images/15012025/01/48/image_15012025_01_48_25_9439.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329172657","1329172566","1329172701","1329172652","1329172700","1329172699"],"photo_ids_order":["1329172566","1329172652","1329172657","1329172699","1329172700","1329172701"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1196959d3c763acb00422cce5c3c492a.jpg","text":"TemporaryFile(/tmp/multipartBody2019168408757920885asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958333470,"filename":"image_15012025_01_47_55_10411.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5b968f677cfaff088fd20760fc31f213.jpg","text":"TemporaryFile(/tmp/multipartBody6428406425035010606asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958333470,"filename":"image_15012025_01_47_35_9392.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0cec112bcab2303e72cdcd77b7817548.jpg","text":"TemporaryFile(/tmp/multipartBody3156443111312580569asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958333470,"filename":"image_15012025_01_48_25_9439.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0c97d48d7a329f6a82fff6585a33d0ee.jpg","text":"TemporaryFile(/tmp/multipartBody4525847818043585435asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958333470,"filename":"image_15012025_01_47_45_10349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0b2628fc0366394b439669d4dd3fcfac.jpg","text":"TemporaryFile(/tmp/multipartBody3790191814058062767asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958333470,"filename":"image_15012025_01_48_15_10456.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/98ac0a0e9f1330980a761a8ec7811b81.jpg","text":"TemporaryFile(/tmp/multipartBody4378116052102559744asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958333470,"filename":"image_15012025_01_48_05_9420.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329172657","file1":"1329172652","file0":"1329172566","file4":"1329172700","file5":"1329172701","file3":"1329172699"},"map_files_photo_id_array":[{"photo_id":"1329172701","filename":"file5"},{"photo_id":"1329172657","filename":"file2"},{"photo_id":"1329172700","filename":"file4"},{"photo_id":"1329172652","filename":"file1"},{"photo_id":"1329172566","filename":"file0"},{"photo_id":"1329172699","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329172657":["hashtag1","hashtag2"]},{"1329172566":["hashtag1","hashtag2"]},{"1329172701":["hashtag1","hashtag2"]},{"1329172652":["hashtag1","hashtag2"]},{"1329172700":["hashtag1","hashtag2"]},{"1329172699":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329172657, 1329172566, 1329172701, 1329172652, 1329172700, 1329172699)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.21478819847107 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 15 --only_old 0
2025-01-15 17:25:32.705641
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/48/image_15012025_01_48_35_10424.jpg', '/home/pi/Desktop/images/15012025/01/48/image_15012025_01_48_44_9399.jpg', '/home/pi/Desktop/images/15012025/01/48/image_15012025_01_48_55_10346.jpg', '/home/pi/Desktop/images/15012025/01/48/image_15012025_01_49_05_10368.jpg', '/home/pi/Desktop/images/15012025/01/49/image_15012025_01_49_15_9418.jpg', '/home/pi/Desktop/images/15012025/01/49/image_15012025_01_49_25_10357.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/48/image_15012025_01_48_35_10424.jpg
/home/pi/Desktop/images/15012025/01/48/image_15012025_01_48_44_9399.jpg
/home/pi/Desktop/images/15012025/01/48/image_15012025_01_48_55_10346.jpg
/home/pi/Desktop/images/15012025/01/48/image_15012025_01_49_05_10368.jpg
/home/pi/Desktop/images/15012025/01/49/image_15012025_01_49_15_9418.jpg
/home/pi/Desktop/images/15012025/01/49/image_15012025_01_49_25_10357.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329172780","1329172816","1329172785","1329172775","1329172799","1329172790"],"photo_ids_order":["1329172775","1329172780","1329172785","1329172790","1329172799","1329172816"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f60fbfa2d99ddfb7738e282b376f0d9c.jpg","text":"TemporaryFile(/tmp/multipartBody165828773384526008asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958393718,"filename":"image_15012025_01_48_44_9399.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e668d765edcdfdebbd664a59dd9f5891.jpg","text":"TemporaryFile(/tmp/multipartBody4314644217856955434asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958393718,"filename":"image_15012025_01_49_25_10357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7dd32f8a2bd401c107ba1b52360817d2.jpg","text":"TemporaryFile(/tmp/multipartBody8909399561203587287asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958393718,"filename":"image_15012025_01_48_55_10346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7fc00fe340076c72a652953995a50755.jpg","text":"TemporaryFile(/tmp/multipartBody7764695674058029758asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958393718,"filename":"image_15012025_01_48_35_10424.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8661cf5428726ed2fad2297254af86c7.jpg","text":"TemporaryFile(/tmp/multipartBody5194661849534874536asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958393718,"filename":"image_15012025_01_49_15_9418.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5e0bdf73438de5e823a8621708e974e4.jpg","text":"TemporaryFile(/tmp/multipartBody4412102847528334442asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958393718,"filename":"image_15012025_01_49_05_10368.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329172785","file1":"1329172780","file0":"1329172775","file4":"1329172799","file5":"1329172816","file3":"1329172790"},"map_files_photo_id_array":[{"photo_id":"1329172816","filename":"file5"},{"photo_id":"1329172785","filename":"file2"},{"photo_id":"1329172799","filename":"file4"},{"photo_id":"1329172780","filename":"file1"},{"photo_id":"1329172775","filename":"file0"},{"photo_id":"1329172790","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329172780":["hashtag1","hashtag2"]},{"1329172816":["hashtag1","hashtag2"]},{"1329172785":["hashtag1","hashtag2"]},{"1329172775":["hashtag1","hashtag2"]},{"1329172799":["hashtag1","hashtag2"]},{"1329172790":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329172780, 1329172816, 1329172785, 1329172775, 1329172799, 1329172790)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.246930837631226 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 15 --only_old 0
2025-01-15 17:26:32.750186
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/49/image_15012025_01_49_35_10406.jpg', '/home/pi/Desktop/images/15012025/01/49/image_15012025_01_49_45_9347.jpg', '/home/pi/Desktop/images/15012025/01/49/image_15012025_01_49_55_10459.jpg', '/home/pi/Desktop/images/15012025/01/50/image_15012025_01_50_15_10381.jpg', '/home/pi/Desktop/images/15012025/01/50/image_15012025_01_50_25_10349.jpg', '/home/pi/Desktop/images/15012025/01/50/image_15012025_01_50_35_9339.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/49/image_15012025_01_49_35_10406.jpg
/home/pi/Desktop/images/15012025/01/49/image_15012025_01_49_45_9347.jpg
/home/pi/Desktop/images/15012025/01/49/image_15012025_01_49_55_10459.jpg
/home/pi/Desktop/images/15012025/01/50/image_15012025_01_50_15_10381.jpg
/home/pi/Desktop/images/15012025/01/50/image_15012025_01_50_25_10349.jpg
/home/pi/Desktop/images/15012025/01/50/image_15012025_01_50_35_9339.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329172855","1329172864","1329172889","1329172883","1329172871","1329172891"],"photo_ids_order":["1329172855","1329172864","1329172871","1329172883","1329172889","1329172891"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7acf8f36d0223238c9f489a055f8bfc6.jpg","text":"TemporaryFile(/tmp/multipartBody5797165851706074391asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958453776,"filename":"image_15012025_01_49_35_10406.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bfa6c10059835b867719fa64838b427b.jpg","text":"TemporaryFile(/tmp/multipartBody3682712074155477500asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958453776,"filename":"image_15012025_01_49_45_9347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/71c756c8029fbcdcf38ee6475e9ad173.jpg","text":"TemporaryFile(/tmp/multipartBody6777264296409904461asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958453776,"filename":"image_15012025_01_50_25_10349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f716685236bf502a3467eb0994fdab40.jpg","text":"TemporaryFile(/tmp/multipartBody7049738973374901029asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958453776,"filename":"image_15012025_01_50_15_10381.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d048ededf78c9696f3497021c1035579.jpg","text":"TemporaryFile(/tmp/multipartBody7960944773903362184asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958453776,"filename":"image_15012025_01_49_55_10459.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/63ae0376e2712f1b49d3c84f82733b4a.jpg","text":"TemporaryFile(/tmp/multipartBody8558776599063622757asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958453776,"filename":"image_15012025_01_50_35_9339.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329172871","file1":"1329172864","file0":"1329172855","file4":"1329172889","file5":"1329172891","file3":"1329172883"},"map_files_photo_id_array":[{"photo_id":"1329172891","filename":"file5"},{"photo_id":"1329172871","filename":"file2"},{"photo_id":"1329172889","filename":"file4"},{"photo_id":"1329172864","filename":"file1"},{"photo_id":"1329172855","filename":"file0"},{"photo_id":"1329172883","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329172855":["hashtag1","hashtag2"]},{"1329172864":["hashtag1","hashtag2"]},{"1329172889":["hashtag1","hashtag2"]},{"1329172883":["hashtag1","hashtag2"]},{"1329172871":["hashtag1","hashtag2"]},{"1329172891":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329172855, 1329172864, 1329172889, 1329172883, 1329172871, 1329172891)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.16843605041504 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 15 --only_old 0
2025-01-15 17:27:32.905665
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/50/image_15012025_01_50_45_10332.jpg', '/home/pi/Desktop/images/15012025/01/51/image_15012025_01_51_35_10351.jpg', '/home/pi/Desktop/images/15012025/01/51/image_15012025_01_51_45_10352.jpg', '/home/pi/Desktop/images/15012025/01/51/image_15012025_01_51_55_9352.jpg', '/home/pi/Desktop/images/15012025/01/51/image_15012025_01_52_05_10514.jpg', '/home/pi/Desktop/images/15012025/01/52/image_15012025_01_52_35_10399.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/50/image_15012025_01_50_45_10332.jpg
/home/pi/Desktop/images/15012025/01/51/image_15012025_01_51_35_10351.jpg
/home/pi/Desktop/images/15012025/01/51/image_15012025_01_51_45_10352.jpg
/home/pi/Desktop/images/15012025/01/51/image_15012025_01_51_55_9352.jpg
/home/pi/Desktop/images/15012025/01/51/image_15012025_01_52_05_10514.jpg
/home/pi/Desktop/images/15012025/01/52/image_15012025_01_52_35_10399.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6114664077758789 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
2025-01-15 17:27:42.865014
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/50/image_15012025_01_50_45_10332.jpg', '/home/pi/Desktop/images/15012025/01/51/image_15012025_01_51_35_10351.jpg', '/home/pi/Desktop/images/15012025/01/51/image_15012025_01_51_45_10352.jpg', '/home/pi/Desktop/images/15012025/01/51/image_15012025_01_51_55_9352.jpg', '/home/pi/Desktop/images/15012025/01/51/image_15012025_01_52_05_10514.jpg', '/home/pi/Desktop/images/15012025/01/52/image_15012025_01_52_35_10399.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/50/image_15012025_01_50_45_10332.jpg
/home/pi/Desktop/images/15012025/01/51/image_15012025_01_51_35_10351.jpg
/home/pi/Desktop/images/15012025/01/51/image_15012025_01_51_45_10352.jpg
/home/pi/Desktop/images/15012025/01/51/image_15012025_01_51_55_9352.jpg
/home/pi/Desktop/images/15012025/01/51/image_15012025_01_52_05_10514.jpg
/home/pi/Desktop/images/15012025/01/52/image_15012025_01_52_35_10399.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329173038","1329172963","1329172930","1329172944","1329172935","1329172940"],"photo_ids_order":["1329172930","1329172935","1329172940","1329172944","1329172963","1329173038"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f129454f6c7c508558297c4d0d7a21a7.jpg","text":"TemporaryFile(/tmp/multipartBody5927323082792890010asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958523797,"filename":"image_15012025_01_52_35_10399.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f6758de0d6473e3846127976e2508d01.jpg","text":"TemporaryFile(/tmp/multipartBody5146827353743632885asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958523797,"filename":"image_15012025_01_52_05_10514.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c015bbac5e19afe20d596445beb5551d.jpg","text":"TemporaryFile(/tmp/multipartBody2893643512489584546asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958523797,"filename":"image_15012025_01_50_45_10332.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/38040a5c52b413a024f7bfb240c4b3ff.jpg","text":"TemporaryFile(/tmp/multipartBody1301864784024575172asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958523797,"filename":"image_15012025_01_51_55_9352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2d652d2d61494a56ad4fc30101338dc6.jpg","text":"TemporaryFile(/tmp/multipartBody4974741664544969212asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958523797,"filename":"image_15012025_01_51_35_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/881ba2aec0c168423f623d7748aa9623.jpg","text":"TemporaryFile(/tmp/multipartBody5050477497968292552asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958523797,"filename":"image_15012025_01_51_45_10352.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329172940","file1":"1329172935","file0":"1329172930","file4":"1329172963","file5":"1329173038","file3":"1329172944"},"map_files_photo_id_array":[{"photo_id":"1329173038","filename":"file5"},{"photo_id":"1329172940","filename":"file2"},{"photo_id":"1329172963","filename":"file4"},{"photo_id":"1329172935","filename":"file1"},{"photo_id":"1329172930","filename":"file0"},{"photo_id":"1329172944","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329173038":["hashtag1","hashtag2"]},{"1329172963":["hashtag1","hashtag2"]},{"1329172930":["hashtag1","hashtag2"]},{"1329172944":["hashtag1","hashtag2"]},{"1329172935":["hashtag1","hashtag2"]},{"1329172940":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329173038, 1329172963, 1329172930, 1329172944, 1329172935, 1329172940)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.28705334663391 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 15 --only_old 0
2025-01-15 17:28:32.161181
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/52/image_15012025_01_52_45_9351.jpg', '/home/pi/Desktop/images/15012025/01/52/image_15012025_01_52_55_10407.jpg', '/home/pi/Desktop/images/15012025/01/52/image_15012025_01_53_05_10326.jpg', '/home/pi/Desktop/images/15012025/01/53/image_15012025_01_53_15_9378.jpg', '/home/pi/Desktop/images/15012025/01/53/image_15012025_01_53_25_10495.jpg', '/home/pi/Desktop/images/15012025/01/53/image_15012025_01_53_34_9341.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/52/image_15012025_01_52_45_9351.jpg
/home/pi/Desktop/images/15012025/01/52/image_15012025_01_52_55_10407.jpg
/home/pi/Desktop/images/15012025/01/52/image_15012025_01_53_05_10326.jpg
/home/pi/Desktop/images/15012025/01/53/image_15012025_01_53_15_9378.jpg
/home/pi/Desktop/images/15012025/01/53/image_15012025_01_53_25_10495.jpg
/home/pi/Desktop/images/15012025/01/53/image_15012025_01_53_34_9341.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329173149","1329173143","1329173157","1329173182","1329173185","1329173167"],"photo_ids_order":["1329173143","1329173149","1329173157","1329173167","1329173182","1329173185"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c2ce4b3f5a05cab4fbf1c72a8d380cff.jpg","text":"TemporaryFile(/tmp/multipartBody8765738864300584440asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958573172,"filename":"image_15012025_01_52_55_10407.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/16b697b72899d8c0386f32171a37baca.jpg","text":"TemporaryFile(/tmp/multipartBody7296984090300457729asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958573172,"filename":"image_15012025_01_52_45_9351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/17b2857cc5463331ce2e34199efd5cb8.jpg","text":"TemporaryFile(/tmp/multipartBody1340563297813087119asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958573172,"filename":"image_15012025_01_53_05_10326.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d4c5952371bb01728e40b841b0c32b61.jpg","text":"TemporaryFile(/tmp/multipartBody1923225150991509920asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958573172,"filename":"image_15012025_01_53_25_10495.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7b8d42f28074853fb4cdba642e3e1315.jpg","text":"TemporaryFile(/tmp/multipartBody4064462754849026423asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958573172,"filename":"image_15012025_01_53_34_9341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/895d0b8541c7a5e8c2bdc6dacf961c49.jpg","text":"TemporaryFile(/tmp/multipartBody2598253438398777337asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958573172,"filename":"image_15012025_01_53_15_9378.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329173157","file1":"1329173149","file0":"1329173143","file4":"1329173182","file5":"1329173185","file3":"1329173167"},"map_files_photo_id_array":[{"photo_id":"1329173185","filename":"file5"},{"photo_id":"1329173157","filename":"file2"},{"photo_id":"1329173182","filename":"file4"},{"photo_id":"1329173149","filename":"file1"},{"photo_id":"1329173143","filename":"file0"},{"photo_id":"1329173167","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329173149":["hashtag1","hashtag2"]},{"1329173143":["hashtag1","hashtag2"]},{"1329173157":["hashtag1","hashtag2"]},{"1329173182":["hashtag1","hashtag2"]},{"1329173185":["hashtag1","hashtag2"]},{"1329173167":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329173149, 1329173143, 1329173157, 1329173182, 1329173185, 1329173167)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.07304930686951 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 15 --only_old 0
2025-01-15 17:29:32.464644
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/53/image_15012025_01_53_45_10335.jpg', '/home/pi/Desktop/images/15012025/01/53/image_15012025_01_53_55_10459.jpg', '/home/pi/Desktop/images/15012025/01/53/image_15012025_01_54_05_9339.jpg', '/home/pi/Desktop/images/15012025/01/54/image_15012025_01_54_15_10403.jpg', '/home/pi/Desktop/images/15012025/01/54/image_15012025_01_54_25_10367.jpg', '/home/pi/Desktop/images/15012025/01/54/image_15012025_01_54_35_9375.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/53/image_15012025_01_53_45_10335.jpg
/home/pi/Desktop/images/15012025/01/53/image_15012025_01_53_55_10459.jpg
/home/pi/Desktop/images/15012025/01/53/image_15012025_01_54_05_9339.jpg
/home/pi/Desktop/images/15012025/01/54/image_15012025_01_54_15_10403.jpg
/home/pi/Desktop/images/15012025/01/54/image_15012025_01_54_25_10367.jpg
/home/pi/Desktop/images/15012025/01/54/image_15012025_01_54_35_9375.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329173262","1329173297","1329173285","1329173240","1329173287","1329173207"],"photo_ids_order":["1329173207","1329173240","1329173262","1329173285","1329173287","1329173297"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8bdade29b63077e6943de403c4364f05.jpg","text":"TemporaryFile(/tmp/multipartBody3131386084375107500asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958633460,"filename":"image_15012025_01_54_05_9339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a16c5e96bb9646c185f955e1d1ec651b.jpg","text":"TemporaryFile(/tmp/multipartBody4512480276227798275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958633460,"filename":"image_15012025_01_54_35_9375.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9a720ef4866e883c100f55f175fa0b7a.jpg","text":"TemporaryFile(/tmp/multipartBody8928475668121421167asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958633460,"filename":"image_15012025_01_54_15_10403.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0ca896a9fc05d60b620cbb6c565e90e5.jpg","text":"TemporaryFile(/tmp/multipartBody5319175515499736334asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958633460,"filename":"image_15012025_01_53_55_10459.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5476e553d443b2bf333e9fb761ae46ab.jpg","text":"TemporaryFile(/tmp/multipartBody5269475855727232071asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958633460,"filename":"image_15012025_01_54_25_10367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8dbc68d927ac6af4542b9e49d3f93916.jpg","text":"TemporaryFile(/tmp/multipartBody4528273616310018942asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958633460,"filename":"image_15012025_01_53_45_10335.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329173262","file1":"1329173240","file0":"1329173207","file4":"1329173287","file5":"1329173297","file3":"1329173285"},"map_files_photo_id_array":[{"photo_id":"1329173297","filename":"file5"},{"photo_id":"1329173262","filename":"file2"},{"photo_id":"1329173287","filename":"file4"},{"photo_id":"1329173240","filename":"file1"},{"photo_id":"1329173207","filename":"file0"},{"photo_id":"1329173285","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329173262":["hashtag1","hashtag2"]},{"1329173297":["hashtag1","hashtag2"]},{"1329173285":["hashtag1","hashtag2"]},{"1329173240":["hashtag1","hashtag2"]},{"1329173287":["hashtag1","hashtag2"]},{"1329173207":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329173262, 1329173297, 1329173285, 1329173240, 1329173287, 1329173207)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.67085242271423 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 15 --only_old 0
2025-01-15 17:30:32.675173
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/54/image_15012025_01_54_45_10418.jpg', '/home/pi/Desktop/images/15012025/01/54/image_15012025_01_54_55_9390.jpg', '/home/pi/Desktop/images/15012025/01/54/image_15012025_01_55_05_10376.jpg', '/home/pi/Desktop/images/15012025/01/55/image_15012025_01_55_15_10370.jpg', '/home/pi/Desktop/images/15012025/01/55/image_15012025_01_55_44_9338.jpg', '/home/pi/Desktop/images/15012025/01/55/image_15012025_01_55_55_10410.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/54/image_15012025_01_54_45_10418.jpg
/home/pi/Desktop/images/15012025/01/54/image_15012025_01_54_55_9390.jpg
/home/pi/Desktop/images/15012025/01/54/image_15012025_01_55_05_10376.jpg
/home/pi/Desktop/images/15012025/01/55/image_15012025_01_55_15_10370.jpg
/home/pi/Desktop/images/15012025/01/55/image_15012025_01_55_44_9338.jpg
/home/pi/Desktop/images/15012025/01/55/image_15012025_01_55_55_10410.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329173316","1329173325","1329173328","1329173321","1329173324","1329173312"],"photo_ids_order":["1329173312","1329173316","1329173321","1329173324","1329173325","1329173328"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1d27e4b5b7451a6deb87a56ee258aabd.jpg","text":"TemporaryFile(/tmp/multipartBody3513491539998260313asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958693670,"filename":"image_15012025_01_54_55_9390.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/19ea44e4e1add8649e50e6f226e037d5.jpg","text":"TemporaryFile(/tmp/multipartBody2010925708691201270asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958693670,"filename":"image_15012025_01_55_44_9338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/867559e03fcf0b93a438a0bc3ca76d34.jpg","text":"TemporaryFile(/tmp/multipartBody2733241529436316978asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958693670,"filename":"image_15012025_01_55_55_10410.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dab1c95fa582f7621850419b89b19382.jpg","text":"TemporaryFile(/tmp/multipartBody5822222529728965341asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958693670,"filename":"image_15012025_01_55_05_10376.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/03e6be762874ba16625d8000a5d652f0.jpg","text":"TemporaryFile(/tmp/multipartBody7508371661159832862asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958693670,"filename":"image_15012025_01_55_15_10370.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/eea71fe08d5755ff25f47b79820777ec.jpg","text":"TemporaryFile(/tmp/multipartBody8144558023893825141asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958693670,"filename":"image_15012025_01_54_45_10418.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329173321","file1":"1329173316","file0":"1329173312","file4":"1329173325","file5":"1329173328","file3":"1329173324"},"map_files_photo_id_array":[{"photo_id":"1329173328","filename":"file5"},{"photo_id":"1329173321","filename":"file2"},{"photo_id":"1329173325","filename":"file4"},{"photo_id":"1329173316","filename":"file1"},{"photo_id":"1329173312","filename":"file0"},{"photo_id":"1329173324","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329173316":["hashtag1","hashtag2"]},{"1329173325":["hashtag1","hashtag2"]},{"1329173328":["hashtag1","hashtag2"]},{"1329173321":["hashtag1","hashtag2"]},{"1329173324":["hashtag1","hashtag2"]},{"1329173312":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329173316, 1329173325, 1329173328, 1329173321, 1329173324, 1329173312)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.33383655548096 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 15 --only_old 0
2025-01-15 17:31:32.914285
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/55/image_15012025_01_56_05_10372.jpg', '/home/pi/Desktop/images/15012025/01/56/image_15012025_01_56_35_10350.jpg', '/home/pi/Desktop/images/15012025/01/56/image_15012025_01_56_45_9349.jpg', '/home/pi/Desktop/images/15012025/01/56/image_15012025_01_56_55_10471.jpg', '/home/pi/Desktop/images/15012025/01/56/image_15012025_01_57_05_9393.jpg', '/home/pi/Desktop/images/15012025/01/57/image_15012025_01_57_15_10346.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/55/image_15012025_01_56_05_10372.jpg
/home/pi/Desktop/images/15012025/01/56/image_15012025_01_56_35_10350.jpg
/home/pi/Desktop/images/15012025/01/56/image_15012025_01_56_45_9349.jpg
/home/pi/Desktop/images/15012025/01/56/image_15012025_01_56_55_10471.jpg
/home/pi/Desktop/images/15012025/01/56/image_15012025_01_57_05_9393.jpg
/home/pi/Desktop/images/15012025/01/57/image_15012025_01_57_15_10346.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329173367","1329173352","1329173364","1329173384","1329173357","1329173380"],"photo_ids_order":["1329173352","1329173357","1329173364","1329173367","1329173380","1329173384"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fe8ecffcbc0505a1dd342c4c0e504574.jpg","text":"TemporaryFile(/tmp/multipartBody8898848165858014758asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958753937,"filename":"image_15012025_01_56_55_10471.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/850421f905cc81792baf55559f15d363.jpg","text":"TemporaryFile(/tmp/multipartBody488446299578524529asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958753937,"filename":"image_15012025_01_56_05_10372.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7a95f7d4084b0770ba3109347feec2eb.jpg","text":"TemporaryFile(/tmp/multipartBody2143599918612495575asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958753937,"filename":"image_15012025_01_56_45_9349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/26b84770926b449aa5987f7fad7f0ae7.jpg","text":"TemporaryFile(/tmp/multipartBody5978580958601408858asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958753937,"filename":"image_15012025_01_57_15_10346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e8d6a2f51d7a4999bf87b443aeebbf53.jpg","text":"TemporaryFile(/tmp/multipartBody5609237251198653175asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958753937,"filename":"image_15012025_01_56_35_10350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9763e84de796796b9856eacec1502ca2.jpg","text":"TemporaryFile(/tmp/multipartBody1085616056117706166asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958753937,"filename":"image_15012025_01_57_05_9393.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329173364","file1":"1329173357","file0":"1329173352","file4":"1329173380","file5":"1329173384","file3":"1329173367"},"map_files_photo_id_array":[{"photo_id":"1329173384","filename":"file5"},{"photo_id":"1329173364","filename":"file2"},{"photo_id":"1329173380","filename":"file4"},{"photo_id":"1329173357","filename":"file1"},{"photo_id":"1329173352","filename":"file0"},{"photo_id":"1329173367","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329173367":["hashtag1","hashtag2"]},{"1329173352":["hashtag1","hashtag2"]},{"1329173364":["hashtag1","hashtag2"]},{"1329173384":["hashtag1","hashtag2"]},{"1329173357":["hashtag1","hashtag2"]},{"1329173380":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329173367, 1329173352, 1329173364, 1329173384, 1329173357, 1329173380)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.39937949180603 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 15 --only_old 0
2025-01-15 17:32:33.083432
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/57/image_15012025_01_57_25_9757.jpg', '/home/pi/Desktop/images/15012025/01/57/image_15012025_01_57_45_10354.jpg', '/home/pi/Desktop/images/15012025/01/57/image_15012025_01_57_55_9349.jpg', '/home/pi/Desktop/images/15012025/01/57/image_15012025_01_58_05_10449.jpg', '/home/pi/Desktop/images/15012025/01/58/image_15012025_01_58_15_9378.jpg', '/home/pi/Desktop/images/15012025/01/58/image_15012025_01_58_25_10350.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/57/image_15012025_01_57_25_9757.jpg
/home/pi/Desktop/images/15012025/01/57/image_15012025_01_57_45_10354.jpg
/home/pi/Desktop/images/15012025/01/57/image_15012025_01_57_55_9349.jpg
/home/pi/Desktop/images/15012025/01/57/image_15012025_01_58_05_10449.jpg
/home/pi/Desktop/images/15012025/01/58/image_15012025_01_58_15_9378.jpg
/home/pi/Desktop/images/15012025/01/58/image_15012025_01_58_25_10350.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329173428","1329173509","1329173481","1329173495","1329173486","1329173438"],"photo_ids_order":["1329173428","1329173438","1329173481","1329173486","1329173495","1329173509"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/59deafea036efc0a6245c488b600c002.jpg","text":"TemporaryFile(/tmp/multipartBody2975175276197685710asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958814072,"filename":"image_15012025_01_57_25_9757.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9dd4e5bda2b6ebc9d3921851409f18dc.jpg","text":"TemporaryFile(/tmp/multipartBody5235695249081851275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958814072,"filename":"image_15012025_01_58_25_10350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0f33a2501c176f4b100b7bdd51b661c9.jpg","text":"TemporaryFile(/tmp/multipartBody6619300262526601140asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958814072,"filename":"image_15012025_01_57_55_9349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/afcc1afaf3b03105d39a54ccc244be57.jpg","text":"TemporaryFile(/tmp/multipartBody2107166671866342760asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958814072,"filename":"image_15012025_01_58_15_9378.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/33e4e781f08784165e417574191b55f1.jpg","text":"TemporaryFile(/tmp/multipartBody3248461894751351666asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958814072,"filename":"image_15012025_01_58_05_10449.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/487c48b853ef1f6d5d3763890550d790.jpg","text":"TemporaryFile(/tmp/multipartBody2133296035424471644asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958814072,"filename":"image_15012025_01_57_45_10354.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329173481","file1":"1329173438","file0":"1329173428","file4":"1329173495","file5":"1329173509","file3":"1329173486"},"map_files_photo_id_array":[{"photo_id":"1329173509","filename":"file5"},{"photo_id":"1329173481","filename":"file2"},{"photo_id":"1329173495","filename":"file4"},{"photo_id":"1329173438","filename":"file1"},{"photo_id":"1329173428","filename":"file0"},{"photo_id":"1329173486","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329173428":["hashtag1","hashtag2"]},{"1329173509":["hashtag1","hashtag2"]},{"1329173481":["hashtag1","hashtag2"]},{"1329173495":["hashtag1","hashtag2"]},{"1329173486":["hashtag1","hashtag2"]},{"1329173438":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329173428, 1329173509, 1329173481, 1329173495, 1329173486, 1329173438)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 48.5818510055542 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 15 --only_old 0
2025-01-15 17:33:32.352893
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/58/image_15012025_01_58_34_9468.jpg', '/home/pi/Desktop/images/15012025/01/58/image_15012025_01_58_45_10345.jpg', '/home/pi/Desktop/images/15012025/01/58/image_15012025_01_58_55_10384.jpg', '/home/pi/Desktop/images/15012025/01/58/image_15012025_01_59_05_9348.jpg', '/home/pi/Desktop/images/15012025/01/59/image_15012025_01_59_15_10354.jpg', '/home/pi/Desktop/images/15012025/01/59/image_15012025_01_59_25_10468.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/58/image_15012025_01_58_34_9468.jpg
/home/pi/Desktop/images/15012025/01/58/image_15012025_01_58_45_10345.jpg
/home/pi/Desktop/images/15012025/01/58/image_15012025_01_58_55_10384.jpg
/home/pi/Desktop/images/15012025/01/58/image_15012025_01_59_05_9348.jpg
/home/pi/Desktop/images/15012025/01/59/image_15012025_01_59_15_10354.jpg
/home/pi/Desktop/images/15012025/01/59/image_15012025_01_59_25_10468.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329173592","1329173556","1329173601","1329173604","1329173597","1329173519"],"photo_ids_order":["1329173519","1329173556","1329173592","1329173597","1329173601","1329173604"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/562d20e240472d9ccc0a90ec6ce73eb1.jpg","text":"TemporaryFile(/tmp/multipartBody6238833515553940287asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958873369,"filename":"image_15012025_01_58_55_10384.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8529f345defa8b1de27ca32fd4a2568a.jpg","text":"TemporaryFile(/tmp/multipartBody6346008132660365778asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958873369,"filename":"image_15012025_01_58_45_10345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8f98366b8b34ffd41df0ba36516103c1.jpg","text":"TemporaryFile(/tmp/multipartBody1361708885190063133asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958873369,"filename":"image_15012025_01_59_15_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/037a16f824f2c7a7d11327563e176b1d.jpg","text":"TemporaryFile(/tmp/multipartBody1432197112333051333asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958873369,"filename":"image_15012025_01_59_25_10468.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2a51c23f050d4e91f4ce7550cdf47023.jpg","text":"TemporaryFile(/tmp/multipartBody7422299042801770579asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958873369,"filename":"image_15012025_01_59_05_9348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/578ab89beda48463f351a548124663b3.jpg","text":"TemporaryFile(/tmp/multipartBody8012107714554021152asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958873369,"filename":"image_15012025_01_58_34_9468.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329173592","file1":"1329173556","file0":"1329173519","file4":"1329173601","file5":"1329173604","file3":"1329173597"},"map_files_photo_id_array":[{"photo_id":"1329173604","filename":"file5"},{"photo_id":"1329173592","filename":"file2"},{"photo_id":"1329173601","filename":"file4"},{"photo_id":"1329173556","filename":"file1"},{"photo_id":"1329173519","filename":"file0"},{"photo_id":"1329173597","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329173592":["hashtag1","hashtag2"]},{"1329173556":["hashtag1","hashtag2"]},{"1329173601":["hashtag1","hashtag2"]},{"1329173604":["hashtag1","hashtag2"]},{"1329173597":["hashtag1","hashtag2"]},{"1329173519":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329173592, 1329173556, 1329173601, 1329173604, 1329173597, 1329173519)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.150272369384766 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 15 --only_old 0
2025-01-15 17:34:32.708132
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/01/59/image_15012025_01_59_35_9351.jpg', '/home/pi/Desktop/images/15012025/01/59/image_15012025_01_59_45_10513.jpg', '/home/pi/Desktop/images/15012025/01/59/image_15012025_01_59_55_9371.jpg', '/home/pi/Desktop/images/15012025/02/01/image_15012025_02_01_15_10078.jpg', '/home/pi/Desktop/images/15012025/02/01/image_15012025_02_01_25_10476.jpg', '/home/pi/Desktop/images/15012025/02/01/image_15012025_02_02_05_9348.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/01/59/image_15012025_01_59_35_9351.jpg
/home/pi/Desktop/images/15012025/01/59/image_15012025_01_59_45_10513.jpg
/home/pi/Desktop/images/15012025/01/59/image_15012025_01_59_55_9371.jpg
/home/pi/Desktop/images/15012025/02/01/image_15012025_02_01_15_10078.jpg
/home/pi/Desktop/images/15012025/02/01/image_15012025_02_01_25_10476.jpg
/home/pi/Desktop/images/15012025/02/01/image_15012025_02_02_05_9348.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329173644","1329173623","1329173626","1329173639","1329173633","1329173641"],"photo_ids_order":["1329173623","1329173626","1329173633","1329173639","1329173641","1329173644"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c143ce505a49348979e157a89e0e11a4.jpg","text":"TemporaryFile(/tmp/multipartBody3968531397644004575asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958933783,"filename":"image_15012025_02_02_05_9348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/91b9aa965955522ac0d6cc9be0b12f14.jpg","text":"TemporaryFile(/tmp/multipartBody810233373692743213asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958933783,"filename":"image_15012025_01_59_35_9351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3bff8a14d46fe9bc7e27b8741808eff0.jpg","text":"TemporaryFile(/tmp/multipartBody4655362839994718092asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958933783,"filename":"image_15012025_01_59_45_10513.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a0be0a2df92faa44eb45f2b8bfe313fd.jpg","text":"TemporaryFile(/tmp/multipartBody4421069415517477560asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958933783,"filename":"image_15012025_02_01_15_10078.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5b41147a9f7038e7ed982718536d3aef.jpg","text":"TemporaryFile(/tmp/multipartBody582902076182700276asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958933783,"filename":"image_15012025_01_59_55_9371.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/228609b1ff7d0f6392394050728c33b1.jpg","text":"TemporaryFile(/tmp/multipartBody268564910583670060asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958933783,"filename":"image_15012025_02_01_25_10476.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329173633","file1":"1329173626","file0":"1329173623","file4":"1329173641","file5":"1329173644","file3":"1329173639"},"map_files_photo_id_array":[{"photo_id":"1329173644","filename":"file5"},{"photo_id":"1329173633","filename":"file2"},{"photo_id":"1329173641","filename":"file4"},{"photo_id":"1329173626","filename":"file1"},{"photo_id":"1329173623","filename":"file0"},{"photo_id":"1329173639","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329173644":["hashtag1","hashtag2"]},{"1329173623":["hashtag1","hashtag2"]},{"1329173626":["hashtag1","hashtag2"]},{"1329173639":["hashtag1","hashtag2"]},{"1329173633":["hashtag1","hashtag2"]},{"1329173641":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329173644, 1329173623, 1329173626, 1329173639, 1329173633, 1329173641)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.560153007507324 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 15 --only_old 0
2025-01-15 17:35:33.091381
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/02/image_15012025_02_02_15_10412.jpg', '/home/pi/Desktop/images/15012025/02/02/image_15012025_02_02_26_10484.jpg', '/home/pi/Desktop/images/15012025/02/02/image_15012025_02_03_05_10348.jpg', '/home/pi/Desktop/images/15012025/02/03/image_15012025_02_03_16_10369.jpg', '/home/pi/Desktop/images/15012025/02/03/image_15012025_02_03_25_9406.jpg', '/home/pi/Desktop/images/15012025/02/03/image_15012025_02_03_35_10374.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/02/image_15012025_02_02_15_10412.jpg
/home/pi/Desktop/images/15012025/02/02/image_15012025_02_02_26_10484.jpg
/home/pi/Desktop/images/15012025/02/02/image_15012025_02_03_05_10348.jpg
/home/pi/Desktop/images/15012025/02/03/image_15012025_02_03_16_10369.jpg
/home/pi/Desktop/images/15012025/02/03/image_15012025_02_03_25_9406.jpg
/home/pi/Desktop/images/15012025/02/03/image_15012025_02_03_35_10374.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329173712","1329173661","1329173700","1329173666","1329173711","1329173708"],"photo_ids_order":["1329173661","1329173666","1329173700","1329173708","1329173711","1329173712"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/825aa3ce6569e43670a518e16a797b8f.jpg","text":"TemporaryFile(/tmp/multipartBody4604713526613971835asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958994075,"filename":"image_15012025_02_03_35_10374.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9f1b28fbfe217dc2887b5f77772b3ef4.jpg","text":"TemporaryFile(/tmp/multipartBody2852579728249602411asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958994075,"filename":"image_15012025_02_02_15_10412.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c5790ac7a4253785428e63e10206b38d.jpg","text":"TemporaryFile(/tmp/multipartBody595914648244091896asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958994075,"filename":"image_15012025_02_03_05_10348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a04a71a17d2a65489bac2f0d0d229efb.jpg","text":"TemporaryFile(/tmp/multipartBody2523944345524307185asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958994075,"filename":"image_15012025_02_02_26_10484.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/151a1fafc806bda167f2357b75a7c750.jpg","text":"TemporaryFile(/tmp/multipartBody6669072973808928839asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958994075,"filename":"image_15012025_02_03_25_9406.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b2fc60d777caafa69df4b976ff211cf1.jpg","text":"TemporaryFile(/tmp/multipartBody9153650495496264719asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736958994075,"filename":"image_15012025_02_03_16_10369.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329173700","file1":"1329173666","file0":"1329173661","file4":"1329173711","file5":"1329173712","file3":"1329173708"},"map_files_photo_id_array":[{"photo_id":"1329173712","filename":"file5"},{"photo_id":"1329173700","filename":"file2"},{"photo_id":"1329173711","filename":"file4"},{"photo_id":"1329173666","filename":"file1"},{"photo_id":"1329173661","filename":"file0"},{"photo_id":"1329173708","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329173712":["hashtag1","hashtag2"]},{"1329173661":["hashtag1","hashtag2"]},{"1329173700":["hashtag1","hashtag2"]},{"1329173666":["hashtag1","hashtag2"]},{"1329173711":["hashtag1","hashtag2"]},{"1329173708":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329173712, 1329173661, 1329173700, 1329173666, 1329173711, 1329173708)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.77849292755127 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 15 --only_old 0
2025-01-15 17:36:32.211544
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/03/image_15012025_02_03_46_10343.jpg', '/home/pi/Desktop/images/15012025/02/03/image_15012025_02_04_06_10426.jpg', '/home/pi/Desktop/images/15012025/02/04/image_15012025_02_04_15_9329.jpg', '/home/pi/Desktop/images/15012025/02/04/image_15012025_02_04_25_10426.jpg', '/home/pi/Desktop/images/15012025/02/07/image_15012025_02_07_45_9415.jpg', '/home/pi/Desktop/images/15012025/02/08/image_15012025_02_08_15_10349.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/03/image_15012025_02_03_46_10343.jpg
/home/pi/Desktop/images/15012025/02/03/image_15012025_02_04_06_10426.jpg
/home/pi/Desktop/images/15012025/02/04/image_15012025_02_04_15_9329.jpg
/home/pi/Desktop/images/15012025/02/04/image_15012025_02_04_25_10426.jpg
/home/pi/Desktop/images/15012025/02/07/image_15012025_02_07_45_9415.jpg
/home/pi/Desktop/images/15012025/02/08/image_15012025_02_08_15_10349.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329173886","1329173877","1329173859","1329173888","1329173882","1329173869"],"photo_ids_order":["1329173859","1329173869","1329173877","1329173882","1329173886","1329173888"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8a2f83e8e47585342d92782e789b17cd.jpg","text":"TemporaryFile(/tmp/multipartBody7022470257083712994asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959053213,"filename":"image_15012025_02_07_45_9415.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/38eb764efb2bbbcec46dc4d05b50f532.jpg","text":"TemporaryFile(/tmp/multipartBody4964396799252823255asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959053213,"filename":"image_15012025_02_04_15_9329.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9fd61af806f05ec132fb827185fe0d66.jpg","text":"TemporaryFile(/tmp/multipartBody7935252836978439311asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959053213,"filename":"image_15012025_02_03_46_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/28116d3e056967db95b80316bbbe0153.jpg","text":"TemporaryFile(/tmp/multipartBody257557411727229203asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959053213,"filename":"image_15012025_02_08_15_10349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9bbe97a98d7f79494c3fd81fcab95d77.jpg","text":"TemporaryFile(/tmp/multipartBody6429577213730643481asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959053213,"filename":"image_15012025_02_04_25_10426.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/57a521fb2de4d177a2d0413164dfa647.jpg","text":"TemporaryFile(/tmp/multipartBody7215785208818484582asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959053213,"filename":"image_15012025_02_04_06_10426.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329173877","file1":"1329173869","file0":"1329173859","file4":"1329173886","file5":"1329173888","file3":"1329173882"},"map_files_photo_id_array":[{"photo_id":"1329173888","filename":"file5"},{"photo_id":"1329173877","filename":"file2"},{"photo_id":"1329173886","filename":"file4"},{"photo_id":"1329173869","filename":"file1"},{"photo_id":"1329173859","filename":"file0"},{"photo_id":"1329173882","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329173886":["hashtag1","hashtag2"]},{"1329173877":["hashtag1","hashtag2"]},{"1329173859":["hashtag1","hashtag2"]},{"1329173888":["hashtag1","hashtag2"]},{"1329173882":["hashtag1","hashtag2"]},{"1329173869":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329173886, 1329173877, 1329173859, 1329173888, 1329173882, 1329173869)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.58062815666199 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 15 --only_old 0
2025-01-15 17:37:32.479272
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/08/image_15012025_02_08_56_10359.jpg', '/home/pi/Desktop/images/15012025/02/08/image_15012025_02_09_05_9351.jpg', '/home/pi/Desktop/images/15012025/02/09/image_15012025_02_09_35_10473.jpg', '/home/pi/Desktop/images/15012025/02/09/image_15012025_02_09_46_10364.jpg', '/home/pi/Desktop/images/15012025/02/09/image_15012025_02_09_55_9407.jpg', '/home/pi/Desktop/images/15012025/02/09/image_15012025_02_10_05_10348.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/08/image_15012025_02_08_56_10359.jpg
/home/pi/Desktop/images/15012025/02/08/image_15012025_02_09_05_9351.jpg
/home/pi/Desktop/images/15012025/02/09/image_15012025_02_09_35_10473.jpg
/home/pi/Desktop/images/15012025/02/09/image_15012025_02_09_46_10364.jpg
/home/pi/Desktop/images/15012025/02/09/image_15012025_02_09_55_9407.jpg
/home/pi/Desktop/images/15012025/02/09/image_15012025_02_10_05_10348.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329173949","1329173960","1329173954","1329173936","1329173927","1329173965"],"photo_ids_order":["1329173927","1329173936","1329173949","1329173954","1329173960","1329173965"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c41c78cb24869dc820dd3a0487e2e9d4.jpg","text":"TemporaryFile(/tmp/multipartBody5403821915293995081asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959113491,"filename":"image_15012025_02_09_35_10473.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a43be1578c739b4c8ce114d740184eeb.jpg","text":"TemporaryFile(/tmp/multipartBody6244499409127554557asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959113491,"filename":"image_15012025_02_09_55_9407.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ba912d481cd9bf0cc7c3ae567fa4f257.jpg","text":"TemporaryFile(/tmp/multipartBody1075344390481682437asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959113491,"filename":"image_15012025_02_09_46_10364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9ab4580d13f9745b82d7395c9ff4b482.jpg","text":"TemporaryFile(/tmp/multipartBody8107505956048344719asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959113491,"filename":"image_15012025_02_09_05_9351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a19517e448bf058788a70113aa9abfe1.jpg","text":"TemporaryFile(/tmp/multipartBody8504157968586590338asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959113491,"filename":"image_15012025_02_08_56_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2bfbf35f813315a7203de679b8b64b21.jpg","text":"TemporaryFile(/tmp/multipartBody7505307080299798163asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959113491,"filename":"image_15012025_02_10_05_10348.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329173949","file1":"1329173936","file0":"1329173927","file4":"1329173960","file5":"1329173965","file3":"1329173954"},"map_files_photo_id_array":[{"photo_id":"1329173965","filename":"file5"},{"photo_id":"1329173949","filename":"file2"},{"photo_id":"1329173960","filename":"file4"},{"photo_id":"1329173936","filename":"file1"},{"photo_id":"1329173927","filename":"file0"},{"photo_id":"1329173954","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329173949":["hashtag1","hashtag2"]},{"1329173960":["hashtag1","hashtag2"]},{"1329173954":["hashtag1","hashtag2"]},{"1329173936":["hashtag1","hashtag2"]},{"1329173927":["hashtag1","hashtag2"]},{"1329173965":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329173949, 1329173960, 1329173954, 1329173936, 1329173927, 1329173965)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.948150873184204 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 15 --only_old 0
2025-01-15 17:38:32.661519
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/10/image_15012025_02_10_16_10360.jpg', '/home/pi/Desktop/images/15012025/02/10/image_15012025_02_10_25_9362.jpg', '/home/pi/Desktop/images/15012025/02/10/image_15012025_02_10_35_10359.jpg', '/home/pi/Desktop/images/15012025/02/10/image_15012025_02_10_45_9349.jpg', '/home/pi/Desktop/images/15012025/02/10/image_15012025_02_10_55_10445.jpg', '/home/pi/Desktop/images/15012025/02/10/image_15012025_02_11_06_10351.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/10/image_15012025_02_10_16_10360.jpg
/home/pi/Desktop/images/15012025/02/10/image_15012025_02_10_25_9362.jpg
/home/pi/Desktop/images/15012025/02/10/image_15012025_02_10_35_10359.jpg
/home/pi/Desktop/images/15012025/02/10/image_15012025_02_10_45_9349.jpg
/home/pi/Desktop/images/15012025/02/10/image_15012025_02_10_55_10445.jpg
/home/pi/Desktop/images/15012025/02/10/image_15012025_02_11_06_10351.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329174039","1329173997","1329174009","1329174050","1329174043","1329174031"],"photo_ids_order":["1329173997","1329174009","1329174031","1329174039","1329174043","1329174050"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b7d00a1f654bc7ab69ed9d9940bab507.jpg","text":"TemporaryFile(/tmp/multipartBody4587104505688664195asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959173686,"filename":"image_15012025_02_10_45_9349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9cadfc03db5e2d27c414ede727db6c86.jpg","text":"TemporaryFile(/tmp/multipartBody5146355010454720166asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959173686,"filename":"image_15012025_02_10_16_10360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/782a5bb5afe4c37826c47b3fddd55cc9.jpg","text":"TemporaryFile(/tmp/multipartBody5997524189083188210asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959173686,"filename":"image_15012025_02_10_25_9362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d095a1824d75aa3d605f6e21e46f51b9.jpg","text":"TemporaryFile(/tmp/multipartBody4681753314117871070asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959173686,"filename":"image_15012025_02_11_06_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c01ea3aed4c3cf2215af8faa05294b89.jpg","text":"TemporaryFile(/tmp/multipartBody4273771833658753142asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959173686,"filename":"image_15012025_02_10_55_10445.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/808750475cd519f92f5289f2b5d81437.jpg","text":"TemporaryFile(/tmp/multipartBody7993010041168716477asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959173686,"filename":"image_15012025_02_10_35_10359.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329174031","file1":"1329174009","file0":"1329173997","file4":"1329174043","file5":"1329174050","file3":"1329174039"},"map_files_photo_id_array":[{"photo_id":"1329174050","filename":"file5"},{"photo_id":"1329174031","filename":"file2"},{"photo_id":"1329174043","filename":"file4"},{"photo_id":"1329174009","filename":"file1"},{"photo_id":"1329173997","filename":"file0"},{"photo_id":"1329174039","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329174039":["hashtag1","hashtag2"]},{"1329173997":["hashtag1","hashtag2"]},{"1329174009":["hashtag1","hashtag2"]},{"1329174050":["hashtag1","hashtag2"]},{"1329174043":["hashtag1","hashtag2"]},{"1329174031":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329174039, 1329173997, 1329174009, 1329174050, 1329174043, 1329174031)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.58340573310852 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 15 --only_old 0
2025-01-15 17:39:33.005683
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/11/image_15012025_02_11_15_9412.jpg', '/home/pi/Desktop/images/15012025/02/11/image_15012025_02_11_25_10368.jpg', '/home/pi/Desktop/images/15012025/02/11/image_15012025_02_11_36_10349.jpg', '/home/pi/Desktop/images/15012025/02/11/image_15012025_02_11_45_9345.jpg', '/home/pi/Desktop/images/15012025/02/11/image_15012025_02_11_56_10445.jpg', '/home/pi/Desktop/images/15012025/02/11/image_15012025_02_12_05_9443.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/11/image_15012025_02_11_15_9412.jpg
/home/pi/Desktop/images/15012025/02/11/image_15012025_02_11_25_10368.jpg
/home/pi/Desktop/images/15012025/02/11/image_15012025_02_11_36_10349.jpg
/home/pi/Desktop/images/15012025/02/11/image_15012025_02_11_45_9345.jpg
/home/pi/Desktop/images/15012025/02/11/image_15012025_02_11_56_10445.jpg
/home/pi/Desktop/images/15012025/02/11/image_15012025_02_12_05_9443.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329174093","1329174087","1329174072","1329174096","1329174077","1329174082"],"photo_ids_order":["1329174072","1329174077","1329174082","1329174087","1329174093","1329174096"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fe234e9fe53f9056e52ad7d9e5b10092.jpg","text":"TemporaryFile(/tmp/multipartBody4723849816093200750asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959233997,"filename":"image_15012025_02_11_56_10445.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fd5d8f351df604e66dff133e62c45451.jpg","text":"TemporaryFile(/tmp/multipartBody8862601834180589473asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959233997,"filename":"image_15012025_02_11_45_9345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/90e8858e09b124cad744ad4307eeeacc.jpg","text":"TemporaryFile(/tmp/multipartBody3350689657169603682asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959233997,"filename":"image_15012025_02_11_15_9412.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ff38b1301f1f654ab6c7f272e5e26e10.jpg","text":"TemporaryFile(/tmp/multipartBody6671295834190919244asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959233997,"filename":"image_15012025_02_12_05_9443.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6003efbde365315c8f910d0e6c87635b.jpg","text":"TemporaryFile(/tmp/multipartBody7580910406984611593asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959233997,"filename":"image_15012025_02_11_25_10368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/21a5b58e9f0096ba005628116c80d42a.jpg","text":"TemporaryFile(/tmp/multipartBody7390701212217522205asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959233997,"filename":"image_15012025_02_11_36_10349.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329174082","file1":"1329174077","file0":"1329174072","file4":"1329174093","file5":"1329174096","file3":"1329174087"},"map_files_photo_id_array":[{"photo_id":"1329174096","filename":"file5"},{"photo_id":"1329174082","filename":"file2"},{"photo_id":"1329174093","filename":"file4"},{"photo_id":"1329174077","filename":"file1"},{"photo_id":"1329174072","filename":"file0"},{"photo_id":"1329174087","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329174093":["hashtag1","hashtag2"]},{"1329174087":["hashtag1","hashtag2"]},{"1329174072":["hashtag1","hashtag2"]},{"1329174096":["hashtag1","hashtag2"]},{"1329174077":["hashtag1","hashtag2"]},{"1329174082":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329174093, 1329174087, 1329174072, 1329174096, 1329174077, 1329174082)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.38288998603821 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 15 --only_old 0
2025-01-15 17:40:33.020355
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/12/image_15012025_02_12_15_10402.jpg', '/home/pi/Desktop/images/15012025/02/12/image_15012025_02_12_25_9378.jpg', '/home/pi/Desktop/images/15012025/02/12/image_15012025_02_12_35_10456.jpg', '/home/pi/Desktop/images/15012025/02/12/image_15012025_02_12_46_10353.jpg', '/home/pi/Desktop/images/15012025/02/12/image_15012025_02_12_55_9417.jpg', '/home/pi/Desktop/images/15012025/02/12/image_15012025_02_13_05_10367.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/12/image_15012025_02_12_15_10402.jpg
/home/pi/Desktop/images/15012025/02/12/image_15012025_02_12_25_9378.jpg
/home/pi/Desktop/images/15012025/02/12/image_15012025_02_12_35_10456.jpg
/home/pi/Desktop/images/15012025/02/12/image_15012025_02_12_46_10353.jpg
/home/pi/Desktop/images/15012025/02/12/image_15012025_02_12_55_9417.jpg
/home/pi/Desktop/images/15012025/02/12/image_15012025_02_13_05_10367.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329174135","1329174120","1329174139","1329174133","1329174127","1329174112"],"photo_ids_order":["1329174112","1329174120","1329174127","1329174133","1329174135","1329174139"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2f0040a3c3829e1de9b5dafb3765458a.jpg","text":"TemporaryFile(/tmp/multipartBody4361039134184158628asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959294042,"filename":"image_15012025_02_12_55_9417.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dfcc61b9f39ed02c3831ba57cbbd69aa.jpg","text":"TemporaryFile(/tmp/multipartBody6724079686747002647asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959294042,"filename":"image_15012025_02_12_25_9378.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5c5141220a70e7677cef6737f4a681a1.jpg","text":"TemporaryFile(/tmp/multipartBody8433726018423387841asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959294042,"filename":"image_15012025_02_13_05_10367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f7d6f84718619cb1061d5bcbf3671304.jpg","text":"TemporaryFile(/tmp/multipartBody8321885639545380202asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959294042,"filename":"image_15012025_02_12_46_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/26470c8ccdc2a6c2c4dd8ae371852681.jpg","text":"TemporaryFile(/tmp/multipartBody1507873914579651092asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959294042,"filename":"image_15012025_02_12_35_10456.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3fdb93ee83036638656873be9b96a50f.jpg","text":"TemporaryFile(/tmp/multipartBody2077577762417128887asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959294042,"filename":"image_15012025_02_12_15_10402.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329174127","file1":"1329174120","file0":"1329174112","file4":"1329174135","file5":"1329174139","file3":"1329174133"},"map_files_photo_id_array":[{"photo_id":"1329174139","filename":"file5"},{"photo_id":"1329174127","filename":"file2"},{"photo_id":"1329174135","filename":"file4"},{"photo_id":"1329174120","filename":"file1"},{"photo_id":"1329174112","filename":"file0"},{"photo_id":"1329174133","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329174135":["hashtag1","hashtag2"]},{"1329174120":["hashtag1","hashtag2"]},{"1329174139":["hashtag1","hashtag2"]},{"1329174133":["hashtag1","hashtag2"]},{"1329174127":["hashtag1","hashtag2"]},{"1329174112":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329174135, 1329174120, 1329174139, 1329174133, 1329174127, 1329174112)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.20625352859497 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 15 --only_old 0
2025-01-15 17:41:32.420001
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/13/image_15012025_02_13_15_9446.jpg', '/home/pi/Desktop/images/15012025/02/13/image_15012025_02_13_25_10469.jpg', '/home/pi/Desktop/images/15012025/02/13/image_15012025_02_13_36_10442.jpg', '/home/pi/Desktop/images/15012025/02/13/image_15012025_02_13_45_9338.jpg', '/home/pi/Desktop/images/15012025/02/13/image_15012025_02_13_55_10355.jpg', '/home/pi/Desktop/images/15012025/02/13/image_15012025_02_14_05_9435.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/13/image_15012025_02_13_15_9446.jpg
/home/pi/Desktop/images/15012025/02/13/image_15012025_02_13_25_10469.jpg
/home/pi/Desktop/images/15012025/02/13/image_15012025_02_13_36_10442.jpg
/home/pi/Desktop/images/15012025/02/13/image_15012025_02_13_45_9338.jpg
/home/pi/Desktop/images/15012025/02/13/image_15012025_02_13_55_10355.jpg
/home/pi/Desktop/images/15012025/02/13/image_15012025_02_14_05_9435.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329174177","1329174162","1329174201","1329174190","1329174154","1329174184"],"photo_ids_order":["1329174154","1329174162","1329174177","1329174184","1329174190","1329174201"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9ef07f6fbdc1936d55867adf580d0747.jpg","text":"TemporaryFile(/tmp/multipartBody8316815988650867969asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959353437,"filename":"image_15012025_02_13_36_10442.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ea5760149ccf31393e43a6b2a0196b2c.jpg","text":"TemporaryFile(/tmp/multipartBody1139377312122779538asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959353437,"filename":"image_15012025_02_13_25_10469.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/609deda7b89b81b4b294506e8e8b422b.jpg","text":"TemporaryFile(/tmp/multipartBody4290001986868681831asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959353437,"filename":"image_15012025_02_14_05_9435.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/36b111416913552559d25a81bd77b4ca.jpg","text":"TemporaryFile(/tmp/multipartBody5644984228080953847asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959353437,"filename":"image_15012025_02_13_55_10355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ff6e41ec256792f31738cd6fc9cc6b86.jpg","text":"TemporaryFile(/tmp/multipartBody7889157931879210097asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959353437,"filename":"image_15012025_02_13_15_9446.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ecdb572970f5b0a07c6496ac6af0da40.jpg","text":"TemporaryFile(/tmp/multipartBody8556880670590793302asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959353437,"filename":"image_15012025_02_13_45_9338.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329174177","file1":"1329174162","file0":"1329174154","file4":"1329174190","file5":"1329174201","file3":"1329174184"},"map_files_photo_id_array":[{"photo_id":"1329174201","filename":"file5"},{"photo_id":"1329174177","filename":"file2"},{"photo_id":"1329174190","filename":"file4"},{"photo_id":"1329174162","filename":"file1"},{"photo_id":"1329174154","filename":"file0"},{"photo_id":"1329174184","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329174177":["hashtag1","hashtag2"]},{"1329174162":["hashtag1","hashtag2"]},{"1329174201":["hashtag1","hashtag2"]},{"1329174190":["hashtag1","hashtag2"]},{"1329174154":["hashtag1","hashtag2"]},{"1329174184":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329174177, 1329174162, 1329174201, 1329174190, 1329174154, 1329174184)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.38428473472595 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 15 --only_old 0
2025-01-15 17:42:32.804679
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/14/image_15012025_02_14_15_10333.jpg', '/home/pi/Desktop/images/15012025/02/14/image_15012025_02_14_26_10365.jpg', '/home/pi/Desktop/images/15012025/02/14/image_15012025_02_14_35_9362.jpg', '/home/pi/Desktop/images/15012025/02/14/image_15012025_02_14_45_10439.jpg', '/home/pi/Desktop/images/15012025/02/14/image_15012025_02_14_56_10362.jpg', '/home/pi/Desktop/images/15012025/02/14/image_15012025_02_15_05_9346.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/14/image_15012025_02_14_15_10333.jpg
/home/pi/Desktop/images/15012025/02/14/image_15012025_02_14_26_10365.jpg
/home/pi/Desktop/images/15012025/02/14/image_15012025_02_14_35_9362.jpg
/home/pi/Desktop/images/15012025/02/14/image_15012025_02_14_45_10439.jpg
/home/pi/Desktop/images/15012025/02/14/image_15012025_02_14_56_10362.jpg
/home/pi/Desktop/images/15012025/02/14/image_15012025_02_15_05_9346.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329174246","1329174249","1329174231","1329174224","1329174236","1329174214"],"photo_ids_order":["1329174214","1329174224","1329174231","1329174236","1329174246","1329174249"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ae3792a964c1b066f413e1e0925eea38.jpg","text":"TemporaryFile(/tmp/multipartBody6426968523268193681asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959413797,"filename":"image_15012025_02_14_56_10362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b5b86e7a8101489b70e6112cb5c5d12b.jpg","text":"TemporaryFile(/tmp/multipartBody5941666352328949695asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959413797,"filename":"image_15012025_02_15_05_9346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bcc34248afeb3bab0c5006593a1c97e3.jpg","text":"TemporaryFile(/tmp/multipartBody1910711386602235154asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959413797,"filename":"image_15012025_02_14_35_9362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ed5b22e59a7863a59aa361034f3b82d7.jpg","text":"TemporaryFile(/tmp/multipartBody19898828645918625asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959413797,"filename":"image_15012025_02_14_26_10365.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/deb60b00bb10c673662b9656740d31f9.jpg","text":"TemporaryFile(/tmp/multipartBody7991663466746048074asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959413797,"filename":"image_15012025_02_14_45_10439.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/40a89901a0a3b9409ccc01f0b39a3743.jpg","text":"TemporaryFile(/tmp/multipartBody2113187022292842473asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959413797,"filename":"image_15012025_02_14_15_10333.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329174231","file1":"1329174224","file0":"1329174214","file4":"1329174246","file5":"1329174249","file3":"1329174236"},"map_files_photo_id_array":[{"photo_id":"1329174249","filename":"file5"},{"photo_id":"1329174231","filename":"file2"},{"photo_id":"1329174246","filename":"file4"},{"photo_id":"1329174224","filename":"file1"},{"photo_id":"1329174214","filename":"file0"},{"photo_id":"1329174236","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329174246":["hashtag1","hashtag2"]},{"1329174249":["hashtag1","hashtag2"]},{"1329174231":["hashtag1","hashtag2"]},{"1329174224":["hashtag1","hashtag2"]},{"1329174236":["hashtag1","hashtag2"]},{"1329174214":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329174246, 1329174249, 1329174231, 1329174224, 1329174236, 1329174214)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.54271221160889 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 15 --only_old 0
2025-01-15 17:43:33.015026
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/15/image_15012025_02_15_15_10349.jpg', '/home/pi/Desktop/images/15012025/02/15/image_15012025_02_15_26_10351.jpg', '/home/pi/Desktop/images/15012025/02/15/image_15012025_02_15_35_9345.jpg', '/home/pi/Desktop/images/15012025/02/15/image_15012025_02_15_45_10370.jpg', '/home/pi/Desktop/images/15012025/02/15/image_15012025_02_15_55_9351.jpg', '/home/pi/Desktop/images/15012025/02/15/image_15012025_02_16_05_10357.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/15/image_15012025_02_15_15_10349.jpg
/home/pi/Desktop/images/15012025/02/15/image_15012025_02_15_26_10351.jpg
/home/pi/Desktop/images/15012025/02/15/image_15012025_02_15_35_9345.jpg
/home/pi/Desktop/images/15012025/02/15/image_15012025_02_15_45_10370.jpg
/home/pi/Desktop/images/15012025/02/15/image_15012025_02_15_55_9351.jpg
/home/pi/Desktop/images/15012025/02/15/image_15012025_02_16_05_10357.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.5943782329559326 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
2025-01-15 17:43:42.872318
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/15/image_15012025_02_15_15_10349.jpg', '/home/pi/Desktop/images/15012025/02/15/image_15012025_02_15_26_10351.jpg', '/home/pi/Desktop/images/15012025/02/15/image_15012025_02_15_35_9345.jpg', '/home/pi/Desktop/images/15012025/02/15/image_15012025_02_15_45_10370.jpg', '/home/pi/Desktop/images/15012025/02/15/image_15012025_02_15_55_9351.jpg', '/home/pi/Desktop/images/15012025/02/15/image_15012025_02_16_05_10357.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/15/image_15012025_02_15_15_10349.jpg
/home/pi/Desktop/images/15012025/02/15/image_15012025_02_15_26_10351.jpg
/home/pi/Desktop/images/15012025/02/15/image_15012025_02_15_35_9345.jpg
/home/pi/Desktop/images/15012025/02/15/image_15012025_02_15_45_10370.jpg
/home/pi/Desktop/images/15012025/02/15/image_15012025_02_15_55_9351.jpg
/home/pi/Desktop/images/15012025/02/15/image_15012025_02_16_05_10357.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329174409","1329174400","1329174387","1329174392","1329174404","1329174396"],"photo_ids_order":["1329174387","1329174392","1329174396","1329174400","1329174404","1329174409"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f8a423baff2cda5add5daa8a9509f629.jpg","text":"TemporaryFile(/tmp/multipartBody4667478430210329366asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959483779,"filename":"image_15012025_02_16_05_10357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/34a68b674f306a02b1b0cb1013807928.jpg","text":"TemporaryFile(/tmp/multipartBody3357715751190667697asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959483779,"filename":"image_15012025_02_15_45_10370.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7a342d06fa72a2f9e0306e6ce583e4b7.jpg","text":"TemporaryFile(/tmp/multipartBody1756380609636798656asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959483779,"filename":"image_15012025_02_15_15_10349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ff13c18e41d0f18a8a7132573f0c9149.jpg","text":"TemporaryFile(/tmp/multipartBody1906146410897434656asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959483779,"filename":"image_15012025_02_15_26_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3b629dfad389fde87ad53df3ea5cf985.jpg","text":"TemporaryFile(/tmp/multipartBody4672193165450347134asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959483779,"filename":"image_15012025_02_15_55_9351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/266ce164a8062bc81e3437211b44041c.jpg","text":"TemporaryFile(/tmp/multipartBody1776991452429924143asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959483779,"filename":"image_15012025_02_15_35_9345.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329174396","file1":"1329174392","file0":"1329174387","file4":"1329174404","file5":"1329174409","file3":"1329174400"},"map_files_photo_id_array":[{"photo_id":"1329174409","filename":"file5"},{"photo_id":"1329174396","filename":"file2"},{"photo_id":"1329174404","filename":"file4"},{"photo_id":"1329174392","filename":"file1"},{"photo_id":"1329174387","filename":"file0"},{"photo_id":"1329174400","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329174409":["hashtag1","hashtag2"]},{"1329174400":["hashtag1","hashtag2"]},{"1329174387":["hashtag1","hashtag2"]},{"1329174392":["hashtag1","hashtag2"]},{"1329174404":["hashtag1","hashtag2"]},{"1329174396":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329174409, 1329174400, 1329174387, 1329174392, 1329174404, 1329174396)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.70341634750366 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 15 --only_old 0
2025-01-15 17:44:33.212471
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/16/image_15012025_02_16_16_10330.jpg', '/home/pi/Desktop/images/15012025/02/16/image_15012025_02_16_25_9429.jpg', '/home/pi/Desktop/images/15012025/02/16/image_15012025_02_16_46_10344.jpg', '/home/pi/Desktop/images/15012025/02/16/image_15012025_02_16_55_9417.jpg', '/home/pi/Desktop/images/15012025/02/16/image_15012025_02_17_05_10365.jpg', '/home/pi/Desktop/images/15012025/02/17/image_15012025_02_17_15_9343.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/16/image_15012025_02_16_16_10330.jpg
/home/pi/Desktop/images/15012025/02/16/image_15012025_02_16_25_9429.jpg
/home/pi/Desktop/images/15012025/02/16/image_15012025_02_16_46_10344.jpg
/home/pi/Desktop/images/15012025/02/16/image_15012025_02_16_55_9417.jpg
/home/pi/Desktop/images/15012025/02/16/image_15012025_02_17_05_10365.jpg
/home/pi/Desktop/images/15012025/02/17/image_15012025_02_17_15_9343.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329174444","1329174441","1329174435","1329174449","1329174428","1329174424"],"photo_ids_order":["1329174424","1329174428","1329174435","1329174441","1329174444","1329174449"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5ad4a037433b5340a95d96d1711b49b8.jpg","text":"TemporaryFile(/tmp/multipartBody3623386239903837704asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959534211,"filename":"image_15012025_02_17_05_10365.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3552758dc9a9cb7c5d068cb5c135a845.jpg","text":"TemporaryFile(/tmp/multipartBody2903096493075829854asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959534211,"filename":"image_15012025_02_16_55_9417.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/15f02b26ca1048a3928676abfb7e3a94.jpg","text":"TemporaryFile(/tmp/multipartBody5030231231412389161asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959534211,"filename":"image_15012025_02_16_46_10344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1b9939884af2a177a578f9793a860867.jpg","text":"TemporaryFile(/tmp/multipartBody5641118652480180035asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959534211,"filename":"image_15012025_02_17_15_9343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/66c0c961d424922b7ab891ae6192d029.jpg","text":"TemporaryFile(/tmp/multipartBody311079417791439688asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959534211,"filename":"image_15012025_02_16_25_9429.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c055f99447900ad73cc3b4a39f2d0c1e.jpg","text":"TemporaryFile(/tmp/multipartBody9160429422382400331asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959534211,"filename":"image_15012025_02_16_16_10330.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329174435","file1":"1329174428","file0":"1329174424","file4":"1329174444","file5":"1329174449","file3":"1329174441"},"map_files_photo_id_array":[{"photo_id":"1329174449","filename":"file5"},{"photo_id":"1329174435","filename":"file2"},{"photo_id":"1329174444","filename":"file4"},{"photo_id":"1329174428","filename":"file1"},{"photo_id":"1329174424","filename":"file0"},{"photo_id":"1329174441","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329174444":["hashtag1","hashtag2"]},{"1329174441":["hashtag1","hashtag2"]},{"1329174435":["hashtag1","hashtag2"]},{"1329174449":["hashtag1","hashtag2"]},{"1329174428":["hashtag1","hashtag2"]},{"1329174424":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329174444, 1329174441, 1329174435, 1329174449, 1329174428, 1329174424)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.440141916275024 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 15 --only_old 0
2025-01-15 17:45:32.467131
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/17/image_15012025_02_17_25_10398.jpg', '/home/pi/Desktop/images/15012025/02/17/image_15012025_02_17_36_10346.jpg', '/home/pi/Desktop/images/15012025/02/17/image_15012025_02_17_45_9493.jpg', '/home/pi/Desktop/images/15012025/02/17/image_15012025_02_17_55_10371.jpg', '/home/pi/Desktop/images/15012025/02/17/image_15012025_02_18_06_10365.jpg', '/home/pi/Desktop/images/15012025/02/18/image_15012025_02_18_35_9342.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/17/image_15012025_02_17_25_10398.jpg
/home/pi/Desktop/images/15012025/02/17/image_15012025_02_17_36_10346.jpg
/home/pi/Desktop/images/15012025/02/17/image_15012025_02_17_45_9493.jpg
/home/pi/Desktop/images/15012025/02/17/image_15012025_02_17_55_10371.jpg
/home/pi/Desktop/images/15012025/02/17/image_15012025_02_18_06_10365.jpg
/home/pi/Desktop/images/15012025/02/18/image_15012025_02_18_35_9342.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329174467","1329174533","1329174527","1329174515","1329174523","1329174511"],"photo_ids_order":["1329174467","1329174511","1329174515","1329174523","1329174527","1329174533"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8d2a4321acbea83ee22b512ba1dda1f2.jpg","text":"TemporaryFile(/tmp/multipartBody4194459594131143044asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959593508,"filename":"image_15012025_02_17_25_10398.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dc375e54c63c135dc9c9e49d2a201684.jpg","text":"TemporaryFile(/tmp/multipartBody213426179346275511asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959593508,"filename":"image_15012025_02_18_35_9342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/73ac15eeafbb5d9bfda5953c3c518348.jpg","text":"TemporaryFile(/tmp/multipartBody6674699331980742930asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959593508,"filename":"image_15012025_02_18_06_10365.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7f3ac94c3f6fb6dc8e756109c8d18ab0.jpg","text":"TemporaryFile(/tmp/multipartBody2305204179256624328asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959593508,"filename":"image_15012025_02_17_45_9493.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f33351533dcec79343180f08b45994c4.jpg","text":"TemporaryFile(/tmp/multipartBody2041878503055874878asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959593508,"filename":"image_15012025_02_17_55_10371.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0273afa243d50c07a073af3723d6580a.jpg","text":"TemporaryFile(/tmp/multipartBody1849107131633204075asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959593508,"filename":"image_15012025_02_17_36_10346.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329174515","file1":"1329174511","file0":"1329174467","file4":"1329174527","file5":"1329174533","file3":"1329174523"},"map_files_photo_id_array":[{"photo_id":"1329174533","filename":"file5"},{"photo_id":"1329174515","filename":"file2"},{"photo_id":"1329174527","filename":"file4"},{"photo_id":"1329174511","filename":"file1"},{"photo_id":"1329174467","filename":"file0"},{"photo_id":"1329174523","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329174467":["hashtag1","hashtag2"]},{"1329174533":["hashtag1","hashtag2"]},{"1329174527":["hashtag1","hashtag2"]},{"1329174515":["hashtag1","hashtag2"]},{"1329174523":["hashtag1","hashtag2"]},{"1329174511":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329174467, 1329174533, 1329174527, 1329174515, 1329174523, 1329174511)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.91272282600403 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 15 --only_old 0
2025-01-15 17:46:32.675908
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/18/image_15012025_02_18_45_10441.jpg', '/home/pi/Desktop/images/15012025/02/18/image_15012025_02_18_56_10340.jpg', '/home/pi/Desktop/images/15012025/02/18/image_15012025_02_19_05_9465.jpg', '/home/pi/Desktop/images/15012025/02/19/image_15012025_02_19_15_10357.jpg', '/home/pi/Desktop/images/15012025/02/19/image_15012025_02_19_25_9353.jpg', '/home/pi/Desktop/images/15012025/02/19/image_15012025_02_19_35_10366.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/18/image_15012025_02_18_45_10441.jpg
/home/pi/Desktop/images/15012025/02/18/image_15012025_02_18_56_10340.jpg
/home/pi/Desktop/images/15012025/02/18/image_15012025_02_19_05_9465.jpg
/home/pi/Desktop/images/15012025/02/19/image_15012025_02_19_15_10357.jpg
/home/pi/Desktop/images/15012025/02/19/image_15012025_02_19_25_9353.jpg
/home/pi/Desktop/images/15012025/02/19/image_15012025_02_19_35_10366.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329175376","1329175628","1329175514","1329175555","1329175228","1329175455"],"photo_ids_order":["1329175228","1329175376","1329175455","1329175514","1329175555","1329175628"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/630bc01c115c4e93a3cf9a83074785d3.jpg","text":"TemporaryFile(/tmp/multipartBody90756770307969933asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959653681,"filename":"image_15012025_02_18_56_10340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fe31856203162cf20c9f25d239a8f222.jpg","text":"TemporaryFile(/tmp/multipartBody2279374429418612621asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959653681,"filename":"image_15012025_02_19_35_10366.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/32764f2b4695dd353ef4a10ee0f5c345.jpg","text":"TemporaryFile(/tmp/multipartBody1202002730992847931asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959653681,"filename":"image_15012025_02_19_15_10357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/282422890eff8a2fb5a4b17c00babeb2.jpg","text":"TemporaryFile(/tmp/multipartBody7542339355907567804asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959653681,"filename":"image_15012025_02_19_25_9353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/391773e6e3ab26daf5cdd0816c369f9e.jpg","text":"TemporaryFile(/tmp/multipartBody350659112144507955asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959653681,"filename":"image_15012025_02_18_45_10441.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a4c11a53c72cee06e78777d7f773903f.jpg","text":"TemporaryFile(/tmp/multipartBody5236996150770314078asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959653681,"filename":"image_15012025_02_19_05_9465.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329175455","file1":"1329175376","file0":"1329175228","file4":"1329175555","file5":"1329175628","file3":"1329175514"},"map_files_photo_id_array":[{"photo_id":"1329175628","filename":"file5"},{"photo_id":"1329175455","filename":"file2"},{"photo_id":"1329175555","filename":"file4"},{"photo_id":"1329175376","filename":"file1"},{"photo_id":"1329175228","filename":"file0"},{"photo_id":"1329175514","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329175376":["hashtag1","hashtag2"]},{"1329175628":["hashtag1","hashtag2"]},{"1329175514":["hashtag1","hashtag2"]},{"1329175555":["hashtag1","hashtag2"]},{"1329175228":["hashtag1","hashtag2"]},{"1329175455":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329175376, 1329175628, 1329175514, 1329175555, 1329175228, 1329175455)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 50.48355150222778 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 15 --only_old 0
2025-01-15 17:47:33.031202
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/19/image_15012025_02_19_46_10487.jpg', '/home/pi/Desktop/images/15012025/02/19/image_15012025_02_19_55_9505.jpg', '/home/pi/Desktop/images/15012025/02/19/image_15012025_02_20_06_10339.jpg', '/home/pi/Desktop/images/15012025/02/20/image_15012025_02_20_15_9501.jpg', '/home/pi/Desktop/images/15012025/02/20/image_15012025_02_20_25_10345.jpg', '/home/pi/Desktop/images/15012025/02/20/image_15012025_02_20_35_10080.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/19/image_15012025_02_19_46_10487.jpg
/home/pi/Desktop/images/15012025/02/19/image_15012025_02_19_55_9505.jpg
/home/pi/Desktop/images/15012025/02/19/image_15012025_02_20_06_10339.jpg
/home/pi/Desktop/images/15012025/02/20/image_15012025_02_20_15_9501.jpg
/home/pi/Desktop/images/15012025/02/20/image_15012025_02_20_25_10345.jpg
/home/pi/Desktop/images/15012025/02/20/image_15012025_02_20_35_10080.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329175997","1329175818","1329175882","1329176149","1329175945","1329176064"],"photo_ids_order":["1329175818","1329175882","1329175945","1329175997","1329176064","1329176149"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/191ae7931716358f45b861135b98cd42.jpg","text":"TemporaryFile(/tmp/multipartBody6229689307167525706asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959714026,"filename":"image_15012025_02_20_15_9501.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2535cfefd24b722cd52c0925325d51db.jpg","text":"TemporaryFile(/tmp/multipartBody448426863758101493asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959714026,"filename":"image_15012025_02_19_46_10487.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/17ebe1f462b4fa45b5821c3c454e0345.jpg","text":"TemporaryFile(/tmp/multipartBody7132283230109775088asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959714026,"filename":"image_15012025_02_19_55_9505.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ff197aa7113fab76060d8e8c994c3692.jpg","text":"TemporaryFile(/tmp/multipartBody6442581543234214464asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959714026,"filename":"image_15012025_02_20_35_10080.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/813121713388feb729fde5fe270f7f80.jpg","text":"TemporaryFile(/tmp/multipartBody3739844921815711912asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959714026,"filename":"image_15012025_02_20_06_10339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7547490c09b939c7f1ff0cda7d0a9cf2.jpg","text":"TemporaryFile(/tmp/multipartBody4551689462272611075asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959714026,"filename":"image_15012025_02_20_25_10345.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329175945","file1":"1329175882","file0":"1329175818","file4":"1329176064","file5":"1329176149","file3":"1329175997"},"map_files_photo_id_array":[{"photo_id":"1329176149","filename":"file5"},{"photo_id":"1329175945","filename":"file2"},{"photo_id":"1329176064","filename":"file4"},{"photo_id":"1329175882","filename":"file1"},{"photo_id":"1329175818","filename":"file0"},{"photo_id":"1329175997","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329175997":["hashtag1","hashtag2"]},{"1329175818":["hashtag1","hashtag2"]},{"1329175882":["hashtag1","hashtag2"]},{"1329176149":["hashtag1","hashtag2"]},{"1329175945":["hashtag1","hashtag2"]},{"1329176064":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329175997, 1329175818, 1329175882, 1329176149, 1329175945, 1329176064)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.44051456451416 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 15 --only_old 0
2025-01-15 17:48:33.017364
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/20/image_15012025_02_20_45_9331.jpg', '/home/pi/Desktop/images/15012025/02/20/image_15012025_02_20_55_10475.jpg', '/home/pi/Desktop/images/15012025/02/21/image_15012025_02_21_15_9403.jpg', '/home/pi/Desktop/images/15012025/02/21/image_15012025_02_21_25_10356.jpg', '/home/pi/Desktop/images/15012025/02/21/image_15012025_02_21_36_10348.jpg', '/home/pi/Desktop/images/15012025/02/21/image_15012025_02_21_45_9455.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/20/image_15012025_02_20_45_9331.jpg
/home/pi/Desktop/images/15012025/02/20/image_15012025_02_20_55_10475.jpg
/home/pi/Desktop/images/15012025/02/21/image_15012025_02_21_15_9403.jpg
/home/pi/Desktop/images/15012025/02/21/image_15012025_02_21_25_10356.jpg
/home/pi/Desktop/images/15012025/02/21/image_15012025_02_21_36_10348.jpg
/home/pi/Desktop/images/15012025/02/21/image_15012025_02_21_45_9455.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329176663","1329176807","1329176776","1329176798","1329176736","1329176721"],"photo_ids_order":["1329176663","1329176721","1329176736","1329176776","1329176798","1329176807"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6749cf5aa12c8aaf565e3bb4a8e32501.jpg","text":"TemporaryFile(/tmp/multipartBody5824935560007906108asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959774022,"filename":"image_15012025_02_20_45_9331.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ada5b65f85952f1783cbc8b926a5d6ed.jpg","text":"TemporaryFile(/tmp/multipartBody5789592608159261151asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959774022,"filename":"image_15012025_02_21_45_9455.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/112c742561f3d6ff48f6d79bfd443840.jpg","text":"TemporaryFile(/tmp/multipartBody2641861055511976179asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959774022,"filename":"image_15012025_02_21_25_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/50109641687607dc051132ef315c0e90.jpg","text":"TemporaryFile(/tmp/multipartBody2341736879732544308asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959774022,"filename":"image_15012025_02_21_36_10348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/22bcaa8969d9135e674f70d3ed056c9d.jpg","text":"TemporaryFile(/tmp/multipartBody3068286016492559707asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959774022,"filename":"image_15012025_02_21_15_9403.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e4b105cf8aa9263eb8901ec27b74f3f0.jpg","text":"TemporaryFile(/tmp/multipartBody631159757906382709asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959774022,"filename":"image_15012025_02_20_55_10475.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329176736","file1":"1329176721","file0":"1329176663","file4":"1329176798","file5":"1329176807","file3":"1329176776"},"map_files_photo_id_array":[{"photo_id":"1329176807","filename":"file5"},{"photo_id":"1329176736","filename":"file2"},{"photo_id":"1329176798","filename":"file4"},{"photo_id":"1329176721","filename":"file1"},{"photo_id":"1329176663","filename":"file0"},{"photo_id":"1329176776","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329176663":["hashtag1","hashtag2"]},{"1329176807":["hashtag1","hashtag2"]},{"1329176776":["hashtag1","hashtag2"]},{"1329176798":["hashtag1","hashtag2"]},{"1329176736":["hashtag1","hashtag2"]},{"1329176721":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329176663, 1329176807, 1329176776, 1329176798, 1329176736, 1329176721)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.028677225112915 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 15 --only_old 0
2025-01-15 17:49:32.221592
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/21/image_15012025_02_21_56_10349.jpg', '/home/pi/Desktop/images/15012025/02/22/image_15012025_02_22_15_10415.jpg', '/home/pi/Desktop/images/15012025/02/22/image_15012025_02_22_26_10366.jpg', '/home/pi/Desktop/images/15012025/02/22/image_15012025_02_22_35_9414.jpg', '/home/pi/Desktop/images/15012025/02/22/image_15012025_02_22_45_10359.jpg', '/home/pi/Desktop/images/15012025/02/22/image_15012025_02_22_55_9364.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/21/image_15012025_02_21_56_10349.jpg
/home/pi/Desktop/images/15012025/02/22/image_15012025_02_22_15_10415.jpg
/home/pi/Desktop/images/15012025/02/22/image_15012025_02_22_26_10366.jpg
/home/pi/Desktop/images/15012025/02/22/image_15012025_02_22_35_9414.jpg
/home/pi/Desktop/images/15012025/02/22/image_15012025_02_22_45_10359.jpg
/home/pi/Desktop/images/15012025/02/22/image_15012025_02_22_55_9364.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329176951","1329176942","1329176968","1329176956","1329176971","1329176963"],"photo_ids_order":["1329176942","1329176951","1329176956","1329176963","1329176968","1329176971"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/95b944b1cdc52dab856bcce436f2900e.jpg","text":"TemporaryFile(/tmp/multipartBody6839167036986944588asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959833229,"filename":"image_15012025_02_22_15_10415.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/be54f0d7d5171ba632cb9c96461bf5ae.jpg","text":"TemporaryFile(/tmp/multipartBody3182229292625692546asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959833229,"filename":"image_15012025_02_21_56_10349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dd85c22ce752168184ebbf786f4c4457.jpg","text":"TemporaryFile(/tmp/multipartBody8036835273126460045asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959833229,"filename":"image_15012025_02_22_45_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5024a56e1a627e1fb1c83ef713a88418.jpg","text":"TemporaryFile(/tmp/multipartBody8334040536250619641asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959833229,"filename":"image_15012025_02_22_26_10366.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/24d7f65bbd870dbfe3c0f40c5e690e19.jpg","text":"TemporaryFile(/tmp/multipartBody7199428771801296280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959833229,"filename":"image_15012025_02_22_55_9364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5c881ac26ced40f257554c9b1ad9efe4.jpg","text":"TemporaryFile(/tmp/multipartBody8850439617955623085asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959833229,"filename":"image_15012025_02_22_35_9414.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329176956","file1":"1329176951","file0":"1329176942","file4":"1329176968","file5":"1329176971","file3":"1329176963"},"map_files_photo_id_array":[{"photo_id":"1329176971","filename":"file5"},{"photo_id":"1329176956","filename":"file2"},{"photo_id":"1329176968","filename":"file4"},{"photo_id":"1329176951","filename":"file1"},{"photo_id":"1329176942","filename":"file0"},{"photo_id":"1329176963","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329176951":["hashtag1","hashtag2"]},{"1329176942":["hashtag1","hashtag2"]},{"1329176968":["hashtag1","hashtag2"]},{"1329176956":["hashtag1","hashtag2"]},{"1329176971":["hashtag1","hashtag2"]},{"1329176963":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329176951, 1329176942, 1329176968, 1329176956, 1329176971, 1329176963)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.5928053855896 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 15 --only_old 0
2025-01-15 17:50:32.694607
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/22/image_15012025_02_23_05_10344.jpg', '/home/pi/Desktop/images/15012025/02/23/image_15012025_02_23_15_10351.jpg', '/home/pi/Desktop/images/15012025/02/23/image_15012025_02_23_46_10365.jpg', '/home/pi/Desktop/images/15012025/02/23/image_15012025_02_23_55_9416.jpg', '/home/pi/Desktop/images/15012025/02/23/image_15012025_02_24_05_10335.jpg', '/home/pi/Desktop/images/15012025/02/24/image_15012025_02_24_25_9468.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/22/image_15012025_02_23_05_10344.jpg
/home/pi/Desktop/images/15012025/02/23/image_15012025_02_23_15_10351.jpg
/home/pi/Desktop/images/15012025/02/23/image_15012025_02_23_46_10365.jpg
/home/pi/Desktop/images/15012025/02/23/image_15012025_02_23_55_9416.jpg
/home/pi/Desktop/images/15012025/02/23/image_15012025_02_24_05_10335.jpg
/home/pi/Desktop/images/15012025/02/24/image_15012025_02_24_25_9468.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329177539","1329177499","1329177544","1329177588","1329177474","1329177383"],"photo_ids_order":["1329177383","1329177474","1329177499","1329177539","1329177544","1329177588"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e9aefebd0f0ca9836e8db6cce9f48b71.jpg","text":"TemporaryFile(/tmp/multipartBody1476944755645786818asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959893712,"filename":"image_15012025_02_23_55_9416.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/139c55ec943c6a2ea10f9fdcf30c66b4.jpg","text":"TemporaryFile(/tmp/multipartBody6242606352656375359asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959893712,"filename":"image_15012025_02_23_46_10365.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f4c24efb420bb99563bd3b17ce4d9765.jpg","text":"TemporaryFile(/tmp/multipartBody165978200410264486asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959893712,"filename":"image_15012025_02_24_05_10335.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8a54f682509c231ee0f179389f67fbe6.jpg","text":"TemporaryFile(/tmp/multipartBody4587919150351456890asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959893712,"filename":"image_15012025_02_24_25_9468.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/445d6525c6cc5b82734afa48c3f65472.jpg","text":"TemporaryFile(/tmp/multipartBody7677727712137174113asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959893712,"filename":"image_15012025_02_23_15_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/eea8f5719db090710f7db27e37c30b5a.jpg","text":"TemporaryFile(/tmp/multipartBody7559792448686318437asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959893712,"filename":"image_15012025_02_23_05_10344.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329177499","file1":"1329177474","file0":"1329177383","file4":"1329177544","file5":"1329177588","file3":"1329177539"},"map_files_photo_id_array":[{"photo_id":"1329177588","filename":"file5"},{"photo_id":"1329177499","filename":"file2"},{"photo_id":"1329177544","filename":"file4"},{"photo_id":"1329177474","filename":"file1"},{"photo_id":"1329177383","filename":"file0"},{"photo_id":"1329177539","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329177539":["hashtag1","hashtag2"]},{"1329177499":["hashtag1","hashtag2"]},{"1329177544":["hashtag1","hashtag2"]},{"1329177588":["hashtag1","hashtag2"]},{"1329177474":["hashtag1","hashtag2"]},{"1329177383":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329177539, 1329177499, 1329177544, 1329177588, 1329177474, 1329177383)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.37229681015015 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 15 --only_old 0
2025-01-15 17:51:32.980494
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/24/image_15012025_02_24_36_10342.jpg', '/home/pi/Desktop/images/15012025/02/24/image_15012025_02_24_45_9318.jpg', '/home/pi/Desktop/images/15012025/02/24/image_15012025_02_24_55_10340.jpg', '/home/pi/Desktop/images/15012025/02/24/image_15012025_02_25_06_10352.jpg', '/home/pi/Desktop/images/15012025/02/25/image_15012025_02_25_15_9348.jpg', '/home/pi/Desktop/images/15012025/02/25/image_15012025_02_25_25_10361.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/24/image_15012025_02_24_36_10342.jpg
/home/pi/Desktop/images/15012025/02/24/image_15012025_02_24_45_9318.jpg
/home/pi/Desktop/images/15012025/02/24/image_15012025_02_24_55_10340.jpg
/home/pi/Desktop/images/15012025/02/24/image_15012025_02_25_06_10352.jpg
/home/pi/Desktop/images/15012025/02/25/image_15012025_02_25_15_9348.jpg
/home/pi/Desktop/images/15012025/02/25/image_15012025_02_25_25_10361.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329177809","1329177806","1329177814","1329177822","1329177819","1329177827"],"photo_ids_order":["1329177806","1329177809","1329177814","1329177819","1329177822","1329177827"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f5b3bc800dbd0137821fba243e39ecba.jpg","text":"TemporaryFile(/tmp/multipartBody4396177266111316586asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959954789,"filename":"image_15012025_02_24_45_9318.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9f593049a87c41f0bd2113f12f7bffac.jpg","text":"TemporaryFile(/tmp/multipartBody7522827989624200770asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959954789,"filename":"image_15012025_02_24_36_10342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d109a997cb9229145b16f453ca2c03cb.jpg","text":"TemporaryFile(/tmp/multipartBody1601755069062471408asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959954789,"filename":"image_15012025_02_24_55_10340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9ff6e8bf2886404e866065f03488e4c0.jpg","text":"TemporaryFile(/tmp/multipartBody3879425611613492353asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959954789,"filename":"image_15012025_02_25_15_9348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8d702ee88e30da230973810117c97074.jpg","text":"TemporaryFile(/tmp/multipartBody3535126038745887214asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959954789,"filename":"image_15012025_02_25_06_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5ad85e979c934173c32b718bbdd0f89c.jpg","text":"TemporaryFile(/tmp/multipartBody3129580216339478006asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736959954789,"filename":"image_15012025_02_25_25_10361.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329177814","file1":"1329177809","file0":"1329177806","file4":"1329177822","file5":"1329177827","file3":"1329177819"},"map_files_photo_id_array":[{"photo_id":"1329177827","filename":"file5"},{"photo_id":"1329177814","filename":"file2"},{"photo_id":"1329177822","filename":"file4"},{"photo_id":"1329177809","filename":"file1"},{"photo_id":"1329177806","filename":"file0"},{"photo_id":"1329177819","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329177809":["hashtag1","hashtag2"]},{"1329177806":["hashtag1","hashtag2"]},{"1329177814":["hashtag1","hashtag2"]},{"1329177822":["hashtag1","hashtag2"]},{"1329177819":["hashtag1","hashtag2"]},{"1329177827":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329177809, 1329177806, 1329177814, 1329177822, 1329177819, 1329177827)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.687973737716675 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 15 --only_old 0
2025-01-15 17:52:33.104969
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/25/image_15012025_02_25_45_9415.jpg', '/home/pi/Desktop/images/15012025/02/26/image_15012025_02_26_15_9449.jpg', '/home/pi/Desktop/images/15012025/02/26/image_15012025_02_26_35_9345.jpg', '/home/pi/Desktop/images/15012025/02/26/image_15012025_02_26_56_10470.jpg', '/home/pi/Desktop/images/15012025/02/27/image_15012025_02_27_15_10349.jpg', '/home/pi/Desktop/images/15012025/02/27/image_15012025_02_27_35_10348.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/25/image_15012025_02_25_45_9415.jpg
/home/pi/Desktop/images/15012025/02/26/image_15012025_02_26_15_9449.jpg
/home/pi/Desktop/images/15012025/02/26/image_15012025_02_26_35_9345.jpg
/home/pi/Desktop/images/15012025/02/26/image_15012025_02_26_56_10470.jpg
/home/pi/Desktop/images/15012025/02/27/image_15012025_02_27_15_10349.jpg
/home/pi/Desktop/images/15012025/02/27/image_15012025_02_27_35_10348.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329177842","1329177847","1329177879","1329177876","1329177863","1329177857"],"photo_ids_order":["1329177842","1329177847","1329177857","1329177863","1329177876","1329177879"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e3bb23a38829e7aee021072e80833a37.jpg","text":"TemporaryFile(/tmp/multipartBody3232189057487303627asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960014109,"filename":"image_15012025_02_25_45_9415.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6bed694f03244b22341f95207dc69e63.jpg","text":"TemporaryFile(/tmp/multipartBody9145061349827985063asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960014109,"filename":"image_15012025_02_26_15_9449.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5875e4bf876f88f6607691ccd7142969.jpg","text":"TemporaryFile(/tmp/multipartBody1270266806326379444asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960014109,"filename":"image_15012025_02_27_35_10348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c8595533c49f0deb50c5318eb5cea1f8.jpg","text":"TemporaryFile(/tmp/multipartBody6883411435982278976asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960014109,"filename":"image_15012025_02_27_15_10349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1e9b530ed8f4d81538c475cb66ca132e.jpg","text":"TemporaryFile(/tmp/multipartBody4453514232293867223asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960014109,"filename":"image_15012025_02_26_56_10470.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/944533f8179ff4d50e2f879f04a7b6be.jpg","text":"TemporaryFile(/tmp/multipartBody7518871568002224717asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960014109,"filename":"image_15012025_02_26_35_9345.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329177857","file1":"1329177847","file0":"1329177842","file4":"1329177876","file5":"1329177879","file3":"1329177863"},"map_files_photo_id_array":[{"photo_id":"1329177879","filename":"file5"},{"photo_id":"1329177857","filename":"file2"},{"photo_id":"1329177876","filename":"file4"},{"photo_id":"1329177847","filename":"file1"},{"photo_id":"1329177842","filename":"file0"},{"photo_id":"1329177863","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329177842":["hashtag1","hashtag2"]},{"1329177847":["hashtag1","hashtag2"]},{"1329177879":["hashtag1","hashtag2"]},{"1329177876":["hashtag1","hashtag2"]},{"1329177863":["hashtag1","hashtag2"]},{"1329177857":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329177842, 1329177847, 1329177879, 1329177876, 1329177863, 1329177857)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.33276104927063 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 15 --only_old 0
2025-01-15 17:53:32.336422
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/27/image_15012025_02_27_46_10370.jpg', '/home/pi/Desktop/images/15012025/02/27/image_15012025_02_28_05_10364.jpg', '/home/pi/Desktop/images/15012025/02/28/image_15012025_02_28_16_10364.jpg', '/home/pi/Desktop/images/15012025/02/28/image_15012025_02_28_25_9420.jpg', '/home/pi/Desktop/images/15012025/02/28/image_15012025_02_28_35_10338.jpg', '/home/pi/Desktop/images/15012025/02/28/image_15012025_02_28_46_10386.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/27/image_15012025_02_27_46_10370.jpg
/home/pi/Desktop/images/15012025/02/27/image_15012025_02_28_05_10364.jpg
/home/pi/Desktop/images/15012025/02/28/image_15012025_02_28_16_10364.jpg
/home/pi/Desktop/images/15012025/02/28/image_15012025_02_28_25_9420.jpg
/home/pi/Desktop/images/15012025/02/28/image_15012025_02_28_35_10338.jpg
/home/pi/Desktop/images/15012025/02/28/image_15012025_02_28_46_10386.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329177935","1329177920","1329177902","1329177931","1329177939","1329177912"],"photo_ids_order":["1329177902","1329177912","1329177920","1329177931","1329177935","1329177939"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6e3e2e5166789219148b1f472d789eb1.jpg","text":"TemporaryFile(/tmp/multipartBody4674656526226053256asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960073370,"filename":"image_15012025_02_28_35_10338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dce42189a0d8150c400d64e17a552ec2.jpg","text":"TemporaryFile(/tmp/multipartBody3849280819164920376asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960073370,"filename":"image_15012025_02_28_16_10364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a553a475a4add396488a3a1730d485b1.jpg","text":"TemporaryFile(/tmp/multipartBody4976607053189189725asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960073370,"filename":"image_15012025_02_27_46_10370.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/41dc0b797ebec0c3093b30de921531f9.jpg","text":"TemporaryFile(/tmp/multipartBody3019528497589131739asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960073370,"filename":"image_15012025_02_28_25_9420.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a9159ee914999eb6c69004477beb28a0.jpg","text":"TemporaryFile(/tmp/multipartBody7250106687148178103asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960073370,"filename":"image_15012025_02_28_46_10386.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/deefbc189988367f3734205fcbd152a3.jpg","text":"TemporaryFile(/tmp/multipartBody6729930029083770531asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960073370,"filename":"image_15012025_02_28_05_10364.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329177920","file1":"1329177912","file0":"1329177902","file4":"1329177935","file5":"1329177939","file3":"1329177931"},"map_files_photo_id_array":[{"photo_id":"1329177939","filename":"file5"},{"photo_id":"1329177920","filename":"file2"},{"photo_id":"1329177935","filename":"file4"},{"photo_id":"1329177912","filename":"file1"},{"photo_id":"1329177902","filename":"file0"},{"photo_id":"1329177931","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329177935":["hashtag1","hashtag2"]},{"1329177920":["hashtag1","hashtag2"]},{"1329177902":["hashtag1","hashtag2"]},{"1329177931":["hashtag1","hashtag2"]},{"1329177939":["hashtag1","hashtag2"]},{"1329177912":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329177935, 1329177920, 1329177902, 1329177931, 1329177939, 1329177912)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.46620535850525 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 15 --only_old 0
2025-01-15 17:54:32.649350
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/29/image_15012025_02_29_36_10337.jpg', '/home/pi/Desktop/images/15012025/02/30/image_15012025_02_30_35_9404.jpg', '/home/pi/Desktop/images/15012025/02/30/image_15012025_02_30_45_10356.jpg', '/home/pi/Desktop/images/15012025/02/30/image_15012025_02_30_56_10338.jpg', '/home/pi/Desktop/images/15012025/02/30/image_15012025_02_31_05_9379.jpg', '/home/pi/Desktop/images/15012025/02/31/image_15012025_02_31_15_10350.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/29/image_15012025_02_29_36_10337.jpg
/home/pi/Desktop/images/15012025/02/30/image_15012025_02_30_35_9404.jpg
/home/pi/Desktop/images/15012025/02/30/image_15012025_02_30_45_10356.jpg
/home/pi/Desktop/images/15012025/02/30/image_15012025_02_30_56_10338.jpg
/home/pi/Desktop/images/15012025/02/30/image_15012025_02_31_05_9379.jpg
/home/pi/Desktop/images/15012025/02/31/image_15012025_02_31_15_10350.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329177955","1329177993","1329177975","1329177986","1329177965","1329177959"],"photo_ids_order":["1329177955","1329177959","1329177965","1329177975","1329177986","1329177993"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0e2b96a1c59d0233582d9a93bb56b9a5.jpg","text":"TemporaryFile(/tmp/multipartBody5752501203141736659asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960133666,"filename":"image_15012025_02_29_36_10337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6435d2e9831ca5b173b730609ff18fa5.jpg","text":"TemporaryFile(/tmp/multipartBody659893703704971175asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960133666,"filename":"image_15012025_02_31_15_10350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6bfcd47c03fe11ab7c9d20235beaaf0f.jpg","text":"TemporaryFile(/tmp/multipartBody7954080868544283681asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960133666,"filename":"image_15012025_02_30_56_10338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/09a6ce2e3c58c046b5ac7af54a5006d5.jpg","text":"TemporaryFile(/tmp/multipartBody3368481709685276276asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960133666,"filename":"image_15012025_02_31_05_9379.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0f868ce5d133714814b20a48ff03356d.jpg","text":"TemporaryFile(/tmp/multipartBody6978784843757759177asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960133666,"filename":"image_15012025_02_30_45_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e1e6eb22e376512d0c10055a7cb4b29e.jpg","text":"TemporaryFile(/tmp/multipartBody8567229360723630080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960133666,"filename":"image_15012025_02_30_35_9404.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329177965","file1":"1329177959","file0":"1329177955","file4":"1329177986","file5":"1329177993","file3":"1329177975"},"map_files_photo_id_array":[{"photo_id":"1329177993","filename":"file5"},{"photo_id":"1329177965","filename":"file2"},{"photo_id":"1329177986","filename":"file4"},{"photo_id":"1329177959","filename":"file1"},{"photo_id":"1329177955","filename":"file0"},{"photo_id":"1329177975","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329177955":["hashtag1","hashtag2"]},{"1329177993":["hashtag1","hashtag2"]},{"1329177975":["hashtag1","hashtag2"]},{"1329177986":["hashtag1","hashtag2"]},{"1329177965":["hashtag1","hashtag2"]},{"1329177959":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329177955, 1329177993, 1329177975, 1329177986, 1329177965, 1329177959)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.32186484336853 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 15 --only_old 0
2025-01-15 17:55:32.889329
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/31/image_15012025_02_31_25_9359.jpg', '/home/pi/Desktop/images/15012025/02/31/image_15012025_02_31_35_10358.jpg', '/home/pi/Desktop/images/15012025/02/31/image_15012025_02_31_46_10388.jpg', '/home/pi/Desktop/images/15012025/02/31/image_15012025_02_31_55_9328.jpg', '/home/pi/Desktop/images/15012025/02/31/image_15012025_02_32_05_10353.jpg', '/home/pi/Desktop/images/15012025/02/32/image_15012025_02_32_16_10351.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/31/image_15012025_02_31_25_9359.jpg
/home/pi/Desktop/images/15012025/02/31/image_15012025_02_31_35_10358.jpg
/home/pi/Desktop/images/15012025/02/31/image_15012025_02_31_46_10388.jpg
/home/pi/Desktop/images/15012025/02/31/image_15012025_02_31_55_9328.jpg
/home/pi/Desktop/images/15012025/02/31/image_15012025_02_32_05_10353.jpg
/home/pi/Desktop/images/15012025/02/32/image_15012025_02_32_16_10351.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6149632930755615 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
2025-01-15 17:55:42.947072
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/31/image_15012025_02_31_25_9359.jpg', '/home/pi/Desktop/images/15012025/02/31/image_15012025_02_31_35_10358.jpg', '/home/pi/Desktop/images/15012025/02/31/image_15012025_02_31_46_10388.jpg', '/home/pi/Desktop/images/15012025/02/31/image_15012025_02_31_55_9328.jpg', '/home/pi/Desktop/images/15012025/02/31/image_15012025_02_32_05_10353.jpg', '/home/pi/Desktop/images/15012025/02/32/image_15012025_02_32_16_10351.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/31/image_15012025_02_31_25_9359.jpg
/home/pi/Desktop/images/15012025/02/31/image_15012025_02_31_35_10358.jpg
/home/pi/Desktop/images/15012025/02/31/image_15012025_02_31_46_10388.jpg
/home/pi/Desktop/images/15012025/02/31/image_15012025_02_31_55_9328.jpg
/home/pi/Desktop/images/15012025/02/31/image_15012025_02_32_05_10353.jpg
/home/pi/Desktop/images/15012025/02/32/image_15012025_02_32_16_10351.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329178192","1329178171","1329178165","1329178135","1329178129","1329178187"],"photo_ids_order":["1329178129","1329178135","1329178165","1329178171","1329178187","1329178192"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b60c503deadfb7bd34facb9d059ef1a1.jpg","text":"TemporaryFile(/tmp/multipartBody6365795973623487566asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960203862,"filename":"image_15012025_02_32_16_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/86a46c234e0fae37f221311b2dea829b.jpg","text":"TemporaryFile(/tmp/multipartBody6398209853071172969asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960203862,"filename":"image_15012025_02_31_55_9328.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/45d8fb5e8755fcc8c17ffd65ac139e63.jpg","text":"TemporaryFile(/tmp/multipartBody9097387308472089398asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960203862,"filename":"image_15012025_02_31_46_10388.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9e521a92da69987ca0a2df3e1f27a0ee.jpg","text":"TemporaryFile(/tmp/multipartBody3328456690511859034asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960203862,"filename":"image_15012025_02_31_35_10358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/064eed12875e44157caf2702b375172f.jpg","text":"TemporaryFile(/tmp/multipartBody4139882668554841182asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960203862,"filename":"image_15012025_02_31_25_9359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a4b0734b91bc587fdab5a4bb0a718a7d.jpg","text":"TemporaryFile(/tmp/multipartBody1912826577012064157asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960203862,"filename":"image_15012025_02_32_05_10353.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329178165","file1":"1329178135","file0":"1329178129","file4":"1329178187","file5":"1329178192","file3":"1329178171"},"map_files_photo_id_array":[{"photo_id":"1329178192","filename":"file5"},{"photo_id":"1329178165","filename":"file2"},{"photo_id":"1329178187","filename":"file4"},{"photo_id":"1329178135","filename":"file1"},{"photo_id":"1329178129","filename":"file0"},{"photo_id":"1329178171","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329178192":["hashtag1","hashtag2"]},{"1329178171":["hashtag1","hashtag2"]},{"1329178165":["hashtag1","hashtag2"]},{"1329178135":["hashtag1","hashtag2"]},{"1329178129":["hashtag1","hashtag2"]},{"1329178187":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329178192, 1329178171, 1329178165, 1329178135, 1329178129, 1329178187)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.000234842300415 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 15 --only_old 0
2025-01-15 17:56:33.107403
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/32/image_15012025_02_32_25_9372.jpg', '/home/pi/Desktop/images/15012025/02/32/image_15012025_02_32_35_10457.jpg', '/home/pi/Desktop/images/15012025/02/32/image_15012025_02_32_46_10339.jpg', '/home/pi/Desktop/images/15012025/02/32/image_15012025_02_32_55_9351.jpg', '/home/pi/Desktop/images/15012025/02/32/image_15012025_02_33_05_10334.jpg', '/home/pi/Desktop/images/15012025/02/33/image_15012025_02_33_16_10335.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/32/image_15012025_02_32_25_9372.jpg
/home/pi/Desktop/images/15012025/02/32/image_15012025_02_32_35_10457.jpg
/home/pi/Desktop/images/15012025/02/32/image_15012025_02_32_46_10339.jpg
/home/pi/Desktop/images/15012025/02/32/image_15012025_02_32_55_9351.jpg
/home/pi/Desktop/images/15012025/02/32/image_15012025_02_33_05_10334.jpg
/home/pi/Desktop/images/15012025/02/33/image_15012025_02_33_16_10335.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329178270","1329178258","1329178252","1329178290","1329178237","1329178263"],"photo_ids_order":["1329178237","1329178252","1329178258","1329178263","1329178270","1329178290"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/da97e821dedcb17a8d8fb21805cab2df.jpg","text":"TemporaryFile(/tmp/multipartBody7108716075120667920asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960254120,"filename":"image_15012025_02_33_05_10334.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a23ed13d71705dd7c36f9b2754c4a243.jpg","text":"TemporaryFile(/tmp/multipartBody2985437013311398342asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960254120,"filename":"image_15012025_02_32_46_10339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7fcbd52cadcfa0972261663ecedd5374.jpg","text":"TemporaryFile(/tmp/multipartBody5852373581500221391asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960254120,"filename":"image_15012025_02_32_35_10457.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1a89e9cc2cfdbd1dcb75467407e5b38d.jpg","text":"TemporaryFile(/tmp/multipartBody887013101870307839asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960254120,"filename":"image_15012025_02_33_16_10335.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/62a70c51e883ec9cdd0cad8610c6d37e.jpg","text":"TemporaryFile(/tmp/multipartBody5009192638683295879asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960254120,"filename":"image_15012025_02_32_25_9372.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/319b17ef57e23c7453d8341fd0de6b8c.jpg","text":"TemporaryFile(/tmp/multipartBody3543676936410002635asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960254120,"filename":"image_15012025_02_32_55_9351.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329178258","file1":"1329178252","file0":"1329178237","file4":"1329178270","file5":"1329178290","file3":"1329178263"},"map_files_photo_id_array":[{"photo_id":"1329178290","filename":"file5"},{"photo_id":"1329178258","filename":"file2"},{"photo_id":"1329178270","filename":"file4"},{"photo_id":"1329178252","filename":"file1"},{"photo_id":"1329178237","filename":"file0"},{"photo_id":"1329178263","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329178270":["hashtag1","hashtag2"]},{"1329178258":["hashtag1","hashtag2"]},{"1329178252":["hashtag1","hashtag2"]},{"1329178290":["hashtag1","hashtag2"]},{"1329178237":["hashtag1","hashtag2"]},{"1329178263":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329178270, 1329178258, 1329178252, 1329178290, 1329178237, 1329178263)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.38343906402588 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 15 --only_old 0
2025-01-15 17:57:32.386090
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/33/image_15012025_02_33_25_9415.jpg', '/home/pi/Desktop/images/15012025/02/33/image_15012025_02_33_36_10360.jpg', '/home/pi/Desktop/images/15012025/02/33/image_15012025_02_33_45_9333.jpg', '/home/pi/Desktop/images/15012025/02/33/image_15012025_02_33_55_10473.jpg', '/home/pi/Desktop/images/15012025/02/33/image_15012025_02_34_06_10419.jpg', '/home/pi/Desktop/images/15012025/02/34/image_15012025_02_34_15_9446.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/33/image_15012025_02_33_25_9415.jpg
/home/pi/Desktop/images/15012025/02/33/image_15012025_02_33_36_10360.jpg
/home/pi/Desktop/images/15012025/02/33/image_15012025_02_33_45_9333.jpg
/home/pi/Desktop/images/15012025/02/33/image_15012025_02_33_55_10473.jpg
/home/pi/Desktop/images/15012025/02/33/image_15012025_02_34_06_10419.jpg
/home/pi/Desktop/images/15012025/02/34/image_15012025_02_34_15_9446.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
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
2025-01-15 17:59:04.642618
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/33/image_15012025_02_33_25_9415.jpg', '/home/pi/Desktop/images/15012025/02/33/image_15012025_02_33_36_10360.jpg', '/home/pi/Desktop/images/15012025/02/33/image_15012025_02_33_45_9333.jpg', '/home/pi/Desktop/images/15012025/02/33/image_15012025_02_33_55_10473.jpg', '/home/pi/Desktop/images/15012025/02/33/image_15012025_02_34_06_10419.jpg', '/home/pi/Desktop/images/15012025/02/34/image_15012025_02_34_15_9446.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/33/image_15012025_02_33_25_9415.jpg
/home/pi/Desktop/images/15012025/02/33/image_15012025_02_33_36_10360.jpg
/home/pi/Desktop/images/15012025/02/33/image_15012025_02_33_45_9333.jpg
/home/pi/Desktop/images/15012025/02/33/image_15012025_02_33_55_10473.jpg
/home/pi/Desktop/images/15012025/02/33/image_15012025_02_34_06_10419.jpg
/home/pi/Desktop/images/15012025/02/34/image_15012025_02_34_15_9446.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329178570","1329178558","1329178578","1329178583","1329178550","1329178567"],"photo_ids_order":["1329178550","1329178558","1329178567","1329178570","1329178578","1329178583"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f2b5411b2ce0218a53d494e5131eeb33.jpg","text":"TemporaryFile(/tmp/multipartBody5631542350120993637asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960405736,"filename":"image_15012025_02_33_55_10473.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c496576e555646606794113a50dd7cc0.jpg","text":"TemporaryFile(/tmp/multipartBody1226739964456205391asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960405736,"filename":"image_15012025_02_33_36_10360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8e6a57cf759e4c758ae301b539f3d332.jpg","text":"TemporaryFile(/tmp/multipartBody4902900912540735440asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960405736,"filename":"image_15012025_02_34_06_10419.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3918b670a9a62b71da97f0584541905a.jpg","text":"TemporaryFile(/tmp/multipartBody1518066435417181676asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960405736,"filename":"image_15012025_02_34_15_9446.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/47dae0e90c6b2ea92e376a2a88bb8fa9.jpg","text":"TemporaryFile(/tmp/multipartBody4483150865209888860asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960405736,"filename":"image_15012025_02_33_25_9415.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c7f17c899168884d8d3cda40e193c0c9.jpg","text":"TemporaryFile(/tmp/multipartBody578965083184179345asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960405736,"filename":"image_15012025_02_33_45_9333.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329178567","file1":"1329178558","file0":"1329178550","file4":"1329178578","file5":"1329178583","file3":"1329178570"},"map_files_photo_id_array":[{"photo_id":"1329178583","filename":"file5"},{"photo_id":"1329178567","filename":"file2"},{"photo_id":"1329178578","filename":"file4"},{"photo_id":"1329178558","filename":"file1"},{"photo_id":"1329178550","filename":"file0"},{"photo_id":"1329178570","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329178570":["hashtag1","hashtag2"]},{"1329178558":["hashtag1","hashtag2"]},{"1329178578":["hashtag1","hashtag2"]},{"1329178583":["hashtag1","hashtag2"]},{"1329178550":["hashtag1","hashtag2"]},{"1329178567":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329178570, 1329178558, 1329178578, 1329178583, 1329178550, 1329178567)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 61.50988745689392 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 15 --only_old 0
2025-01-15 18:00:32.500630
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/34/image_15012025_02_34_26_10405.jpg', '/home/pi/Desktop/images/15012025/02/34/image_15012025_02_34_35_9469.jpg', '/home/pi/Desktop/images/15012025/02/34/image_15012025_02_34_46_10419.jpg', '/home/pi/Desktop/images/15012025/02/34/image_15012025_02_34_55_9393.jpg', '/home/pi/Desktop/images/15012025/02/34/image_15012025_02_35_05_10379.jpg', '/home/pi/Desktop/images/15012025/02/35/image_15012025_02_35_16_10391.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/34/image_15012025_02_34_26_10405.jpg
/home/pi/Desktop/images/15012025/02/34/image_15012025_02_34_35_9469.jpg
/home/pi/Desktop/images/15012025/02/34/image_15012025_02_34_46_10419.jpg
/home/pi/Desktop/images/15012025/02/34/image_15012025_02_34_55_9393.jpg
/home/pi/Desktop/images/15012025/02/34/image_15012025_02_35_05_10379.jpg
/home/pi/Desktop/images/15012025/02/35/image_15012025_02_35_16_10391.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329178723","1329178770","1329178767","1329178746","1329178710","1329178763"],"photo_ids_order":["1329178710","1329178723","1329178746","1329178763","1329178767","1329178770"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/80d0b342dadea02ba8f577a97c23891f.jpg","text":"TemporaryFile(/tmp/multipartBody3964668988160901169asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960493528,"filename":"image_15012025_02_34_35_9469.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dcff711590d751338b797c44d7b78c2c.jpg","text":"TemporaryFile(/tmp/multipartBody64304190609582953asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960493528,"filename":"image_15012025_02_35_16_10391.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6fcec3a8df40023a0ee944783a46135a.jpg","text":"TemporaryFile(/tmp/multipartBody3888922716011441260asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960493528,"filename":"image_15012025_02_35_05_10379.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/59d9d0485cbd650ea9d523ed87ddf240.jpg","text":"TemporaryFile(/tmp/multipartBody2260887126288386436asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960493528,"filename":"image_15012025_02_34_46_10419.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3e7a401c72db907b1557ddf00b8dc08a.jpg","text":"TemporaryFile(/tmp/multipartBody3702402628892015454asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960493528,"filename":"image_15012025_02_34_26_10405.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5da6bbe96f0fdd206ff8daa228959ce6.jpg","text":"TemporaryFile(/tmp/multipartBody3327958546151096674asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960493528,"filename":"image_15012025_02_34_55_9393.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329178746","file1":"1329178723","file0":"1329178710","file4":"1329178767","file5":"1329178770","file3":"1329178763"},"map_files_photo_id_array":[{"photo_id":"1329178770","filename":"file5"},{"photo_id":"1329178746","filename":"file2"},{"photo_id":"1329178767","filename":"file4"},{"photo_id":"1329178723","filename":"file1"},{"photo_id":"1329178710","filename":"file0"},{"photo_id":"1329178763","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329178723":["hashtag1","hashtag2"]},{"1329178770":["hashtag1","hashtag2"]},{"1329178767":["hashtag1","hashtag2"]},{"1329178746":["hashtag1","hashtag2"]},{"1329178710":["hashtag1","hashtag2"]},{"1329178763":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329178723, 1329178770, 1329178767, 1329178746, 1329178710, 1329178763)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.13874530792236 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 15 --only_old 0
2025-01-15 18:01:32.819409
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/35/image_15012025_02_35_25_9404.jpg', '/home/pi/Desktop/images/15012025/02/35/image_15012025_02_35_36_10464.jpg', '/home/pi/Desktop/images/15012025/02/35/image_15012025_02_35_45_9335.jpg', '/home/pi/Desktop/images/15012025/02/35/image_15012025_02_35_55_10461.jpg', '/home/pi/Desktop/images/15012025/02/35/image_15012025_02_36_06_10335.jpg', '/home/pi/Desktop/images/15012025/02/36/image_15012025_02_36_15_9459.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/35/image_15012025_02_35_25_9404.jpg
/home/pi/Desktop/images/15012025/02/35/image_15012025_02_35_36_10464.jpg
/home/pi/Desktop/images/15012025/02/35/image_15012025_02_35_45_9335.jpg
/home/pi/Desktop/images/15012025/02/35/image_15012025_02_35_55_10461.jpg
/home/pi/Desktop/images/15012025/02/35/image_15012025_02_36_06_10335.jpg
/home/pi/Desktop/images/15012025/02/36/image_15012025_02_36_15_9459.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329178801","1329178804","1329178788","1329178807","1329178791","1329178809"],"photo_ids_order":["1329178788","1329178791","1329178801","1329178804","1329178807","1329178809"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fd5582dc2c4a09dee3f6e92b86f19292.jpg","text":"TemporaryFile(/tmp/multipartBody7514900610332315113asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960553824,"filename":"image_15012025_02_35_45_9335.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dcab2330ffe9b6f6b488a79a62b5816a.jpg","text":"TemporaryFile(/tmp/multipartBody927070007391245582asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960553824,"filename":"image_15012025_02_35_55_10461.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/335441324da4ace235d8cb34780f8380.jpg","text":"TemporaryFile(/tmp/multipartBody2107873277985972967asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960553824,"filename":"image_15012025_02_35_25_9404.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/596276151041b44e5045be16602ce6d8.jpg","text":"TemporaryFile(/tmp/multipartBody8994598291085871325asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960553824,"filename":"image_15012025_02_36_06_10335.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d9c33e8a3a2b1d2a9c6413839e227b4a.jpg","text":"TemporaryFile(/tmp/multipartBody8110348871077466596asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960553824,"filename":"image_15012025_02_35_36_10464.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9ec7eabe7b0f850e59b74e24111874a1.jpg","text":"TemporaryFile(/tmp/multipartBody4996870619481559786asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960553824,"filename":"image_15012025_02_36_15_9459.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329178801","file1":"1329178791","file0":"1329178788","file4":"1329178807","file5":"1329178809","file3":"1329178804"},"map_files_photo_id_array":[{"photo_id":"1329178809","filename":"file5"},{"photo_id":"1329178801","filename":"file2"},{"photo_id":"1329178807","filename":"file4"},{"photo_id":"1329178791","filename":"file1"},{"photo_id":"1329178788","filename":"file0"},{"photo_id":"1329178804","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329178801":["hashtag1","hashtag2"]},{"1329178804":["hashtag1","hashtag2"]},{"1329178788":["hashtag1","hashtag2"]},{"1329178807":["hashtag1","hashtag2"]},{"1329178791":["hashtag1","hashtag2"]},{"1329178809":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329178801, 1329178804, 1329178788, 1329178807, 1329178791, 1329178809)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.64207935333252 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 15 --only_old 0
2025-01-15 18:02:32.915913
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/36/image_15012025_02_36_26_10434.jpg', '/home/pi/Desktop/images/15012025/02/36/image_15012025_02_36_45_10340.jpg', '/home/pi/Desktop/images/15012025/02/36/image_15012025_02_36_55_9337.jpg', '/home/pi/Desktop/images/15012025/02/37/image_15012025_02_37_16_10322.jpg', '/home/pi/Desktop/images/15012025/02/37/image_15012025_02_37_25_9353.jpg', '/home/pi/Desktop/images/15012025/02/37/image_15012025_02_37_35_10497.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/36/image_15012025_02_36_26_10434.jpg
/home/pi/Desktop/images/15012025/02/36/image_15012025_02_36_45_10340.jpg
/home/pi/Desktop/images/15012025/02/36/image_15012025_02_36_55_9337.jpg
/home/pi/Desktop/images/15012025/02/37/image_15012025_02_37_16_10322.jpg
/home/pi/Desktop/images/15012025/02/37/image_15012025_02_37_25_9353.jpg
/home/pi/Desktop/images/15012025/02/37/image_15012025_02_37_35_10497.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329178831","1329178848","1329178836","1329178841","1329178844","1329178826"],"photo_ids_order":["1329178826","1329178831","1329178836","1329178841","1329178844","1329178848"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d94a29c21ea4beefc22dac65e680b171.jpg","text":"TemporaryFile(/tmp/multipartBody8717553383298942097asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960613929,"filename":"image_15012025_02_36_45_10340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ca28dce4c05a17b3b78d87c0afe1d9d0.jpg","text":"TemporaryFile(/tmp/multipartBody6328193806876440080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960613929,"filename":"image_15012025_02_37_35_10497.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d08c1a5a5b2f6499b05bc0ebd330a6a0.jpg","text":"TemporaryFile(/tmp/multipartBody4711421332369701910asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960613929,"filename":"image_15012025_02_36_55_9337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/88f3b2761364a915433365e91d52baae.jpg","text":"TemporaryFile(/tmp/multipartBody8062180713179286006asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960613929,"filename":"image_15012025_02_37_16_10322.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f1f6a28e0766d25ac98db715d81f191d.jpg","text":"TemporaryFile(/tmp/multipartBody4761741044346399638asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960613929,"filename":"image_15012025_02_37_25_9353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d52ff8c63cf7eaff9bac4d613d63f777.jpg","text":"TemporaryFile(/tmp/multipartBody4683204538100967816asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960613929,"filename":"image_15012025_02_36_26_10434.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329178836","file1":"1329178831","file0":"1329178826","file4":"1329178844","file5":"1329178848","file3":"1329178841"},"map_files_photo_id_array":[{"photo_id":"1329178848","filename":"file5"},{"photo_id":"1329178836","filename":"file2"},{"photo_id":"1329178844","filename":"file4"},{"photo_id":"1329178831","filename":"file1"},{"photo_id":"1329178826","filename":"file0"},{"photo_id":"1329178841","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329178831":["hashtag1","hashtag2"]},{"1329178848":["hashtag1","hashtag2"]},{"1329178836":["hashtag1","hashtag2"]},{"1329178841":["hashtag1","hashtag2"]},{"1329178844":["hashtag1","hashtag2"]},{"1329178826":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329178831, 1329178848, 1329178836, 1329178841, 1329178844, 1329178826)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.77052307128906 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 15 --only_old 0
2025-01-15 18:03:33.121254
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/37/image_15012025_02_37_46_10338.jpg', '/home/pi/Desktop/images/15012025/02/37/image_15012025_02_37_55_9362.jpg', '/home/pi/Desktop/images/15012025/02/37/image_15012025_02_38_05_10358.jpg', '/home/pi/Desktop/images/15012025/02/38/image_15012025_02_38_15_9336.jpg', '/home/pi/Desktop/images/15012025/02/38/image_15012025_02_38_25_10486.jpg', '/home/pi/Desktop/images/15012025/02/38/image_15012025_02_38_55_10355.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/37/image_15012025_02_37_46_10338.jpg
/home/pi/Desktop/images/15012025/02/37/image_15012025_02_37_55_9362.jpg
/home/pi/Desktop/images/15012025/02/37/image_15012025_02_38_05_10358.jpg
/home/pi/Desktop/images/15012025/02/38/image_15012025_02_38_15_9336.jpg
/home/pi/Desktop/images/15012025/02/38/image_15012025_02_38_25_10486.jpg
/home/pi/Desktop/images/15012025/02/38/image_15012025_02_38_55_10355.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329178876","1329178861","1329178884","1329178871","1329178880","1329178865"],"photo_ids_order":["1329178861","1329178865","1329178871","1329178876","1329178880","1329178884"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ea02c74cb8a1504be73deb7c7de24a48.jpg","text":"TemporaryFile(/tmp/multipartBody8766523069194708425asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960674118,"filename":"image_15012025_02_38_15_9336.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c70fec5ef1e46ce859b4b948fe27c8e1.jpg","text":"TemporaryFile(/tmp/multipartBody4556852492252167336asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960674118,"filename":"image_15012025_02_37_46_10338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/405a2919400f5fb65633ee5dee6a364f.jpg","text":"TemporaryFile(/tmp/multipartBody5026662326845161348asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960674118,"filename":"image_15012025_02_38_55_10355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b1d2fb30325c70dd7211bd1be586c50f.jpg","text":"TemporaryFile(/tmp/multipartBody3197570477977063903asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960674118,"filename":"image_15012025_02_38_05_10358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f2e75151a296b786677f68bd501a6079.jpg","text":"TemporaryFile(/tmp/multipartBody292751347356291518asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960674118,"filename":"image_15012025_02_38_25_10486.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cafc6f8e09de230b963e79203c915b81.jpg","text":"TemporaryFile(/tmp/multipartBody8453705984941594537asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960674118,"filename":"image_15012025_02_37_55_9362.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329178871","file1":"1329178865","file0":"1329178861","file4":"1329178880","file5":"1329178884","file3":"1329178876"},"map_files_photo_id_array":[{"photo_id":"1329178884","filename":"file5"},{"photo_id":"1329178871","filename":"file2"},{"photo_id":"1329178880","filename":"file4"},{"photo_id":"1329178865","filename":"file1"},{"photo_id":"1329178861","filename":"file0"},{"photo_id":"1329178876","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329178876":["hashtag1","hashtag2"]},{"1329178861":["hashtag1","hashtag2"]},{"1329178884":["hashtag1","hashtag2"]},{"1329178871":["hashtag1","hashtag2"]},{"1329178880":["hashtag1","hashtag2"]},{"1329178865":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329178876, 1329178861, 1329178884, 1329178871, 1329178880, 1329178865)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.90797781944275 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 15 --only_old 0
2025-01-15 18:04:32.224327
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/38/image_15012025_02_39_06_10330.jpg', '/home/pi/Desktop/images/15012025/02/39/image_15012025_02_39_15_9345.jpg', '/home/pi/Desktop/images/15012025/02/39/image_15012025_02_39_25_10355.jpg', '/home/pi/Desktop/images/15012025/02/39/image_15012025_02_39_35_9360.jpg', '/home/pi/Desktop/images/15012025/02/39/image_15012025_02_39_45_10331.jpg', '/home/pi/Desktop/images/15012025/02/39/image_15012025_02_39_55_10344.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/38/image_15012025_02_39_06_10330.jpg
/home/pi/Desktop/images/15012025/02/39/image_15012025_02_39_15_9345.jpg
/home/pi/Desktop/images/15012025/02/39/image_15012025_02_39_25_10355.jpg
/home/pi/Desktop/images/15012025/02/39/image_15012025_02_39_35_9360.jpg
/home/pi/Desktop/images/15012025/02/39/image_15012025_02_39_45_10331.jpg
/home/pi/Desktop/images/15012025/02/39/image_15012025_02_39_55_10344.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329178923","1329178914","1329178902","1329178922","1329178919","1329178907"],"photo_ids_order":["1329178902","1329178907","1329178914","1329178919","1329178922","1329178923"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5a68e160a82affdb888d8b61eadb2729.jpg","text":"TemporaryFile(/tmp/multipartBody1857441893463033558asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960733234,"filename":"image_15012025_02_39_55_10344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8b00dcaec9c85ec26340d1412eb90c9f.jpg","text":"TemporaryFile(/tmp/multipartBody8051140225876034390asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960733234,"filename":"image_15012025_02_39_25_10355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/085f8f1aae58188ad65e6c17a3ec82bd.jpg","text":"TemporaryFile(/tmp/multipartBody989499876594923409asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960733234,"filename":"image_15012025_02_39_06_10330.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9a18d4348e6aca89c9ccab42ca65de8b.jpg","text":"TemporaryFile(/tmp/multipartBody5177886137676084881asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960733234,"filename":"image_15012025_02_39_45_10331.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/79d134deec390006a13cd47ebfc69e64.jpg","text":"TemporaryFile(/tmp/multipartBody638730883109797923asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960733234,"filename":"image_15012025_02_39_35_9360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e2a7cf34ca702dbb33cb3b72851003f6.jpg","text":"TemporaryFile(/tmp/multipartBody2322947884898959418asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960733234,"filename":"image_15012025_02_39_15_9345.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329178914","file1":"1329178907","file0":"1329178902","file4":"1329178922","file5":"1329178923","file3":"1329178919"},"map_files_photo_id_array":[{"photo_id":"1329178923","filename":"file5"},{"photo_id":"1329178914","filename":"file2"},{"photo_id":"1329178922","filename":"file4"},{"photo_id":"1329178907","filename":"file1"},{"photo_id":"1329178902","filename":"file0"},{"photo_id":"1329178919","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329178923":["hashtag1","hashtag2"]},{"1329178914":["hashtag1","hashtag2"]},{"1329178902":["hashtag1","hashtag2"]},{"1329178922":["hashtag1","hashtag2"]},{"1329178919":["hashtag1","hashtag2"]},{"1329178907":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329178923, 1329178914, 1329178902, 1329178922, 1329178919, 1329178907)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.59017896652222 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 15 --only_old 0
2025-01-15 18:05:32.637645
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/39/image_15012025_02_40_05_9422.jpg', '/home/pi/Desktop/images/15012025/02/40/image_15012025_02_40_26_10369.jpg', '/home/pi/Desktop/images/15012025/02/40/image_15012025_02_40_35_9471.jpg', '/home/pi/Desktop/images/15012025/02/40/image_15012025_02_40_45_10342.jpg', '/home/pi/Desktop/images/15012025/02/40/image_15012025_02_40_55_9381.jpg', '/home/pi/Desktop/images/15012025/02/40/image_15012025_02_41_05_10445.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/39/image_15012025_02_40_05_9422.jpg
/home/pi/Desktop/images/15012025/02/40/image_15012025_02_40_26_10369.jpg
/home/pi/Desktop/images/15012025/02/40/image_15012025_02_40_35_9471.jpg
/home/pi/Desktop/images/15012025/02/40/image_15012025_02_40_45_10342.jpg
/home/pi/Desktop/images/15012025/02/40/image_15012025_02_40_55_9381.jpg
/home/pi/Desktop/images/15012025/02/40/image_15012025_02_41_05_10445.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329178942","1329178930","1329178950","1329178953","1329178947","1329178937"],"photo_ids_order":["1329178930","1329178937","1329178942","1329178947","1329178950","1329178953"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/801853c688c293e6a676c9b753f37ff4.jpg","text":"TemporaryFile(/tmp/multipartBody6776134442685823698asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960793634,"filename":"image_15012025_02_40_35_9471.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/38a46789da07e2e008c84da13db2d846.jpg","text":"TemporaryFile(/tmp/multipartBody4797430601440061951asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960793634,"filename":"image_15012025_02_40_05_9422.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/db630ce56db5f0ffcb44f8de42a2120d.jpg","text":"TemporaryFile(/tmp/multipartBody2639389724644189787asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960793634,"filename":"image_15012025_02_40_55_9381.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/39795ce0c434073f5a958ccc6bc5084e.jpg","text":"TemporaryFile(/tmp/multipartBody6749367166807344317asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960793634,"filename":"image_15012025_02_41_05_10445.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c36d5fe2216204b1e01ec1b7946d6a39.jpg","text":"TemporaryFile(/tmp/multipartBody4400896390992483732asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960793634,"filename":"image_15012025_02_40_45_10342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/51367e8cbfe492244df909be060b0c09.jpg","text":"TemporaryFile(/tmp/multipartBody7474517015038922476asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960793634,"filename":"image_15012025_02_40_26_10369.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329178942","file1":"1329178937","file0":"1329178930","file4":"1329178950","file5":"1329178953","file3":"1329178947"},"map_files_photo_id_array":[{"photo_id":"1329178953","filename":"file5"},{"photo_id":"1329178942","filename":"file2"},{"photo_id":"1329178950","filename":"file4"},{"photo_id":"1329178937","filename":"file1"},{"photo_id":"1329178930","filename":"file0"},{"photo_id":"1329178947","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329178942":["hashtag1","hashtag2"]},{"1329178930":["hashtag1","hashtag2"]},{"1329178950":["hashtag1","hashtag2"]},{"1329178953":["hashtag1","hashtag2"]},{"1329178947":["hashtag1","hashtag2"]},{"1329178937":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329178942, 1329178930, 1329178950, 1329178953, 1329178947, 1329178937)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.00417971611023 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 15 --only_old 0
2025-01-15 18:06:32.824730
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/41/image_15012025_02_41_16_10359.jpg', '/home/pi/Desktop/images/15012025/02/41/image_15012025_02_41_25_9515.jpg', '/home/pi/Desktop/images/15012025/02/41/image_15012025_02_41_36_10436.jpg', '/home/pi/Desktop/images/15012025/02/41/image_15012025_02_41_45_9323.jpg', '/home/pi/Desktop/images/15012025/02/41/image_15012025_02_41_55_10432.jpg', '/home/pi/Desktop/images/15012025/02/42/image_15012025_02_42_25_10351.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/41/image_15012025_02_41_16_10359.jpg
/home/pi/Desktop/images/15012025/02/41/image_15012025_02_41_25_9515.jpg
/home/pi/Desktop/images/15012025/02/41/image_15012025_02_41_36_10436.jpg
/home/pi/Desktop/images/15012025/02/41/image_15012025_02_41_45_9323.jpg
/home/pi/Desktop/images/15012025/02/41/image_15012025_02_41_55_10432.jpg
/home/pi/Desktop/images/15012025/02/42/image_15012025_02_42_25_10351.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329178987","1329178992","1329178994","1329178973","1329178982","1329178978"],"photo_ids_order":["1329178973","1329178978","1329178982","1329178987","1329178992","1329178994"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/18e3f6787b34428600ccdb9de7d87c31.jpg","text":"TemporaryFile(/tmp/multipartBody1641127004198561344asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960853837,"filename":"image_15012025_02_41_45_9323.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2c3710c07f2e5bfc12ec79ddbd384e74.jpg","text":"TemporaryFile(/tmp/multipartBody386987565596197164asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960853837,"filename":"image_15012025_02_41_55_10432.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/00c16fcd9beb84c9935d5665282d68b2.jpg","text":"TemporaryFile(/tmp/multipartBody5403332078719028965asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960853837,"filename":"image_15012025_02_42_25_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/54686915fde73d9f6d390ed18223ce92.jpg","text":"TemporaryFile(/tmp/multipartBody3297722634519634522asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960853837,"filename":"image_15012025_02_41_16_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4f7d1e24f9be4521d46da372c0d095c6.jpg","text":"TemporaryFile(/tmp/multipartBody6165416504786370022asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960853837,"filename":"image_15012025_02_41_36_10436.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e84ed3a40babbe3aa57bdbff52e02660.jpg","text":"TemporaryFile(/tmp/multipartBody4776395810546958117asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960853837,"filename":"image_15012025_02_41_25_9515.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329178982","file1":"1329178978","file0":"1329178973","file4":"1329178992","file5":"1329178994","file3":"1329178987"},"map_files_photo_id_array":[{"photo_id":"1329178994","filename":"file5"},{"photo_id":"1329178982","filename":"file2"},{"photo_id":"1329178992","filename":"file4"},{"photo_id":"1329178978","filename":"file1"},{"photo_id":"1329178973","filename":"file0"},{"photo_id":"1329178987","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329178987":["hashtag1","hashtag2"]},{"1329178992":["hashtag1","hashtag2"]},{"1329178994":["hashtag1","hashtag2"]},{"1329178973":["hashtag1","hashtag2"]},{"1329178982":["hashtag1","hashtag2"]},{"1329178978":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329178987, 1329178992, 1329178994, 1329178973, 1329178982, 1329178978)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.642372608184814 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 15 --only_old 0
2025-01-15 18:07:32.988771
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/42/image_15012025_02_42_35_9339.jpg', '/home/pi/Desktop/images/15012025/02/42/image_15012025_02_42_45_10428.jpg', '/home/pi/Desktop/images/15012025/02/42/image_15012025_02_42_56_10344.jpg', '/home/pi/Desktop/images/15012025/02/42/image_15012025_02_43_05_9407.jpg', '/home/pi/Desktop/images/15012025/02/43/image_15012025_02_43_15_10345.jpg', '/home/pi/Desktop/images/15012025/02/43/image_15012025_02_43_26_10362.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/42/image_15012025_02_42_35_9339.jpg
/home/pi/Desktop/images/15012025/02/42/image_15012025_02_42_45_10428.jpg
/home/pi/Desktop/images/15012025/02/42/image_15012025_02_42_56_10344.jpg
/home/pi/Desktop/images/15012025/02/42/image_15012025_02_43_05_9407.jpg
/home/pi/Desktop/images/15012025/02/43/image_15012025_02_43_15_10345.jpg
/home/pi/Desktop/images/15012025/02/43/image_15012025_02_43_26_10362.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329179011","1329179022","1329179025","1329179004","1329179016","1329179024"],"photo_ids_order":["1329179004","1329179011","1329179016","1329179022","1329179024","1329179025"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/af422a9ae9d44807d3f8553254720c95.jpg","text":"TemporaryFile(/tmp/multipartBody3846237837488598810asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960913990,"filename":"image_15012025_02_42_45_10428.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/11c009f99c39ac018f8de60ea5534dba.jpg","text":"TemporaryFile(/tmp/multipartBody3230717110534881014asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960913990,"filename":"image_15012025_02_43_05_9407.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/66d7fe0cff8ec7abc62f8fc437e6b158.jpg","text":"TemporaryFile(/tmp/multipartBody356915294679215894asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960913990,"filename":"image_15012025_02_43_26_10362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b96ec4b81ee17a4c9c3e891d55812234.jpg","text":"TemporaryFile(/tmp/multipartBody6514248314639244043asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960913990,"filename":"image_15012025_02_42_35_9339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d23ce40c300e99e20dc308737cefa151.jpg","text":"TemporaryFile(/tmp/multipartBody8469927652963550991asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960913990,"filename":"image_15012025_02_42_56_10344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/79ca4b67598192177adfc3983b20e7b0.jpg","text":"TemporaryFile(/tmp/multipartBody183759409089324716asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960913990,"filename":"image_15012025_02_43_15_10345.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329179016","file1":"1329179011","file0":"1329179004","file4":"1329179024","file5":"1329179025","file3":"1329179022"},"map_files_photo_id_array":[{"photo_id":"1329179025","filename":"file5"},{"photo_id":"1329179016","filename":"file2"},{"photo_id":"1329179024","filename":"file4"},{"photo_id":"1329179011","filename":"file1"},{"photo_id":"1329179004","filename":"file0"},{"photo_id":"1329179022","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329179011":["hashtag1","hashtag2"]},{"1329179022":["hashtag1","hashtag2"]},{"1329179025":["hashtag1","hashtag2"]},{"1329179004":["hashtag1","hashtag2"]},{"1329179016":["hashtag1","hashtag2"]},{"1329179024":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329179011, 1329179022, 1329179025, 1329179004, 1329179016, 1329179024)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.18453621864319 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 15 --only_old 0
2025-01-15 18:08:32.288187
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/43/image_15012025_02_43_35_9461.jpg', '/home/pi/Desktop/images/15012025/02/43/image_15012025_02_43_46_10344.jpg', '/home/pi/Desktop/images/15012025/02/44/image_15012025_02_44_15_10340.jpg', '/home/pi/Desktop/images/15012025/02/44/image_15012025_02_44_26_10455.jpg', '/home/pi/Desktop/images/15012025/02/44/image_15012025_02_44_46_10375.jpg', '/home/pi/Desktop/images/15012025/02/44/image_15012025_02_44_55_9466.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/43/image_15012025_02_43_35_9461.jpg
/home/pi/Desktop/images/15012025/02/43/image_15012025_02_43_46_10344.jpg
/home/pi/Desktop/images/15012025/02/44/image_15012025_02_44_15_10340.jpg
/home/pi/Desktop/images/15012025/02/44/image_15012025_02_44_26_10455.jpg
/home/pi/Desktop/images/15012025/02/44/image_15012025_02_44_46_10375.jpg
/home/pi/Desktop/images/15012025/02/44/image_15012025_02_44_55_9466.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329179246","1329179231","1329179249","1329179237","1329179242","1329179224"],"photo_ids_order":["1329179224","1329179231","1329179237","1329179242","1329179246","1329179249"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6748f7a44315ced745544d7c2f84b541.jpg","text":"TemporaryFile(/tmp/multipartBody8101662061758878473asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960973315,"filename":"image_15012025_02_44_46_10375.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1fc8ae922dda7c14bc04f83770afe2a4.jpg","text":"TemporaryFile(/tmp/multipartBody3358962315263459842asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960973315,"filename":"image_15012025_02_43_46_10344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/72934549a8f50ac14607ccd6202b3a40.jpg","text":"TemporaryFile(/tmp/multipartBody1654629675357237023asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960973315,"filename":"image_15012025_02_44_55_9466.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/eea6ca60f2ded2891fedb4ba928cba12.jpg","text":"TemporaryFile(/tmp/multipartBody6819605499153689018asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960973315,"filename":"image_15012025_02_44_15_10340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2e68303b07b138d656751aa25c52512a.jpg","text":"TemporaryFile(/tmp/multipartBody2024257348586316743asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960973315,"filename":"image_15012025_02_44_26_10455.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3384459cce2810597d6ca454acf63539.jpg","text":"TemporaryFile(/tmp/multipartBody8877882248807650asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736960973315,"filename":"image_15012025_02_43_35_9461.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329179237","file1":"1329179231","file0":"1329179224","file4":"1329179246","file5":"1329179249","file3":"1329179242"},"map_files_photo_id_array":[{"photo_id":"1329179249","filename":"file5"},{"photo_id":"1329179237","filename":"file2"},{"photo_id":"1329179246","filename":"file4"},{"photo_id":"1329179231","filename":"file1"},{"photo_id":"1329179224","filename":"file0"},{"photo_id":"1329179242","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329179246":["hashtag1","hashtag2"]},{"1329179231":["hashtag1","hashtag2"]},{"1329179249":["hashtag1","hashtag2"]},{"1329179237":["hashtag1","hashtag2"]},{"1329179242":["hashtag1","hashtag2"]},{"1329179224":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329179246, 1329179231, 1329179249, 1329179237, 1329179242, 1329179224)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.87907361984253 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 15 --only_old 0
2025-01-15 18:09:32.448797
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/44/image_15012025_02_45_05_10357.jpg', '/home/pi/Desktop/images/15012025/02/45/image_15012025_02_45_25_9355.jpg', '/home/pi/Desktop/images/15012025/02/45/image_15012025_02_45_35_10367.jpg', '/home/pi/Desktop/images/15012025/02/45/image_15012025_02_45_45_9414.jpg', '/home/pi/Desktop/images/15012025/02/45/image_15012025_02_45_55_10346.jpg', '/home/pi/Desktop/images/15012025/02/46/image_15012025_02_46_45_10339.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/44/image_15012025_02_45_05_10357.jpg
/home/pi/Desktop/images/15012025/02/45/image_15012025_02_45_25_9355.jpg
/home/pi/Desktop/images/15012025/02/45/image_15012025_02_45_35_10367.jpg
/home/pi/Desktop/images/15012025/02/45/image_15012025_02_45_45_9414.jpg
/home/pi/Desktop/images/15012025/02/45/image_15012025_02_45_55_10346.jpg
/home/pi/Desktop/images/15012025/02/46/image_15012025_02_46_45_10339.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329179295","1329179289","1329179277","1329179282","1329179300","1329179303"],"photo_ids_order":["1329179277","1329179282","1329179289","1329179295","1329179300","1329179303"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d0d2d8261a9f5a1d33422dea7b2e8ef2.jpg","text":"TemporaryFile(/tmp/multipartBody4245524216168564816asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961033473,"filename":"image_15012025_02_45_45_9414.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/58b6cb389ad1e721d95611b78b93dc97.jpg","text":"TemporaryFile(/tmp/multipartBody7120855882785681917asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961033473,"filename":"image_15012025_02_45_35_10367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7e4758fbcdb239ed156a6409d39a9991.jpg","text":"TemporaryFile(/tmp/multipartBody8121963219702102379asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961033473,"filename":"image_15012025_02_45_05_10357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ac7f5b36f7a81a782370124bd2f336d2.jpg","text":"TemporaryFile(/tmp/multipartBody6412826626401205144asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961033473,"filename":"image_15012025_02_45_25_9355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0004c38bfddce19a082efafff309c772.jpg","text":"TemporaryFile(/tmp/multipartBody5883411574745417969asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961033473,"filename":"image_15012025_02_45_55_10346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f3c44a2af33ab256dd1f1a56be8d46ff.jpg","text":"TemporaryFile(/tmp/multipartBody4576623752218588124asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961033473,"filename":"image_15012025_02_46_45_10339.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329179289","file1":"1329179282","file0":"1329179277","file4":"1329179300","file5":"1329179303","file3":"1329179295"},"map_files_photo_id_array":[{"photo_id":"1329179303","filename":"file5"},{"photo_id":"1329179289","filename":"file2"},{"photo_id":"1329179300","filename":"file4"},{"photo_id":"1329179282","filename":"file1"},{"photo_id":"1329179277","filename":"file0"},{"photo_id":"1329179295","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329179295":["hashtag1","hashtag2"]},{"1329179289":["hashtag1","hashtag2"]},{"1329179277":["hashtag1","hashtag2"]},{"1329179282":["hashtag1","hashtag2"]},{"1329179300":["hashtag1","hashtag2"]},{"1329179303":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329179295, 1329179289, 1329179277, 1329179282, 1329179300, 1329179303)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.51492476463318 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 15 --only_old 0
2025-01-15 18:10:32.820618
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/46/image_15012025_02_46_56_10347.jpg', '/home/pi/Desktop/images/15012025/02/46/image_15012025_02_47_05_9478.jpg', '/home/pi/Desktop/images/15012025/02/47/image_15012025_02_47_15_10345.jpg', '/home/pi/Desktop/images/15012025/02/47/image_15012025_02_47_26_10359.jpg', '/home/pi/Desktop/images/15012025/02/47/image_15012025_02_47_55_9411.jpg', '/home/pi/Desktop/images/15012025/02/47/image_15012025_02_48_05_10335.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/46/image_15012025_02_46_56_10347.jpg
/home/pi/Desktop/images/15012025/02/46/image_15012025_02_47_05_9478.jpg
/home/pi/Desktop/images/15012025/02/47/image_15012025_02_47_15_10345.jpg
/home/pi/Desktop/images/15012025/02/47/image_15012025_02_47_26_10359.jpg
/home/pi/Desktop/images/15012025/02/47/image_15012025_02_47_55_9411.jpg
/home/pi/Desktop/images/15012025/02/47/image_15012025_02_48_05_10335.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329179475","1329179463","1329179469","1329179409","1329179396","1329179434"],"photo_ids_order":["1329179396","1329179409","1329179434","1329179463","1329179469","1329179475"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0765aa7ef1ed17f9be91a6abc16f740c.jpg","text":"TemporaryFile(/tmp/multipartBody3789140615413522949asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961093833,"filename":"image_15012025_02_48_05_10335.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8fc29ca25df34d0398bdaff262149208.jpg","text":"TemporaryFile(/tmp/multipartBody5601457040587335483asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961093833,"filename":"image_15012025_02_47_26_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c8df42ae924c5bcfba355031532839e3.jpg","text":"TemporaryFile(/tmp/multipartBody1862401324029274691asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961093833,"filename":"image_15012025_02_47_55_9411.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4ea29822f30a8c72e8510c45f0abed98.jpg","text":"TemporaryFile(/tmp/multipartBody8130466076818281547asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961093833,"filename":"image_15012025_02_47_05_9478.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c804003b3af94fd9062294968651c2f4.jpg","text":"TemporaryFile(/tmp/multipartBody1622886215441862465asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961093833,"filename":"image_15012025_02_46_56_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3c4c375d529202e688824fc5a144c5c7.jpg","text":"TemporaryFile(/tmp/multipartBody1466347295775533725asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961093833,"filename":"image_15012025_02_47_15_10345.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329179434","file1":"1329179409","file0":"1329179396","file4":"1329179469","file5":"1329179475","file3":"1329179463"},"map_files_photo_id_array":[{"photo_id":"1329179475","filename":"file5"},{"photo_id":"1329179434","filename":"file2"},{"photo_id":"1329179469","filename":"file4"},{"photo_id":"1329179409","filename":"file1"},{"photo_id":"1329179396","filename":"file0"},{"photo_id":"1329179463","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329179475":["hashtag1","hashtag2"]},{"1329179463":["hashtag1","hashtag2"]},{"1329179469":["hashtag1","hashtag2"]},{"1329179409":["hashtag1","hashtag2"]},{"1329179396":["hashtag1","hashtag2"]},{"1329179434":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329179475, 1329179463, 1329179469, 1329179409, 1329179396, 1329179434)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.105979681015015 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 15 --only_old 0
2025-01-15 18:11:32.911636
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/48/image_15012025_02_48_16_10474.jpg', '/home/pi/Desktop/images/15012025/02/48/image_15012025_02_48_25_9407.jpg', '/home/pi/Desktop/images/15012025/02/48/image_15012025_02_49_06_10358.jpg', '/home/pi/Desktop/images/15012025/02/49/image_15012025_02_49_15_9338.jpg', '/home/pi/Desktop/images/15012025/02/50/image_15012025_02_50_45_10450.jpg', '/home/pi/Desktop/images/15012025/02/50/image_15012025_02_50_56_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/48/image_15012025_02_48_16_10474.jpg
/home/pi/Desktop/images/15012025/02/48/image_15012025_02_48_25_9407.jpg
/home/pi/Desktop/images/15012025/02/48/image_15012025_02_49_06_10358.jpg
/home/pi/Desktop/images/15012025/02/49/image_15012025_02_49_15_9338.jpg
/home/pi/Desktop/images/15012025/02/50/image_15012025_02_50_45_10450.jpg
/home/pi/Desktop/images/15012025/02/50/image_15012025_02_50_56_10356.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329179500","1329179490","1329179538","1329179495","1329179536","1329179521"],"photo_ids_order":["1329179490","1329179495","1329179500","1329179521","1329179536","1329179538"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e793f724e7409b23b68751fec005ad07.jpg","text":"TemporaryFile(/tmp/multipartBody140634558211760678asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961153917,"filename":"image_15012025_02_49_06_10358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a4c7e91dad34a1f16d6c36b0d9cdd1d8.jpg","text":"TemporaryFile(/tmp/multipartBody5503131564939889760asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961153917,"filename":"image_15012025_02_48_16_10474.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5baabd8ca71e9ca8184df756dedd55ce.jpg","text":"TemporaryFile(/tmp/multipartBody714617184053983980asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961153917,"filename":"image_15012025_02_50_56_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/49ab9acc26ac5f7b9e760f85bddb148b.jpg","text":"TemporaryFile(/tmp/multipartBody7471294659264209542asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961153917,"filename":"image_15012025_02_48_25_9407.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/36f2510dc578a664cdf2bbd3c9896cfb.jpg","text":"TemporaryFile(/tmp/multipartBody5973994414747059701asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961153917,"filename":"image_15012025_02_50_45_10450.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1ed8979b22b326d5234fb8624c3af58b.jpg","text":"TemporaryFile(/tmp/multipartBody7296721152212231336asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961153917,"filename":"image_15012025_02_49_15_9338.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329179500","file1":"1329179495","file0":"1329179490","file4":"1329179536","file5":"1329179538","file3":"1329179521"},"map_files_photo_id_array":[{"photo_id":"1329179538","filename":"file5"},{"photo_id":"1329179500","filename":"file2"},{"photo_id":"1329179536","filename":"file4"},{"photo_id":"1329179495","filename":"file1"},{"photo_id":"1329179490","filename":"file0"},{"photo_id":"1329179521","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329179500":["hashtag1","hashtag2"]},{"1329179490":["hashtag1","hashtag2"]},{"1329179538":["hashtag1","hashtag2"]},{"1329179495":["hashtag1","hashtag2"]},{"1329179536":["hashtag1","hashtag2"]},{"1329179521":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329179500, 1329179490, 1329179538, 1329179495, 1329179536, 1329179521)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.27917265892029 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 15 --only_old 0
2025-01-15 18:12:32.345260
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/51/image_15012025_02_51_15_10335.jpg', '/home/pi/Desktop/images/15012025/02/51/image_15012025_02_51_35_10457.jpg', '/home/pi/Desktop/images/15012025/02/51/image_15012025_02_51_46_10360.jpg', '/home/pi/Desktop/images/15012025/02/51/image_15012025_02_51_55_9397.jpg', '/home/pi/Desktop/images/15012025/02/51/image_15012025_02_52_06_10469.jpg', '/home/pi/Desktop/images/15012025/02/52/image_15012025_02_52_45_9427.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/51/image_15012025_02_51_15_10335.jpg
/home/pi/Desktop/images/15012025/02/51/image_15012025_02_51_35_10457.jpg
/home/pi/Desktop/images/15012025/02/51/image_15012025_02_51_46_10360.jpg
/home/pi/Desktop/images/15012025/02/51/image_15012025_02_51_55_9397.jpg
/home/pi/Desktop/images/15012025/02/51/image_15012025_02_52_06_10469.jpg
/home/pi/Desktop/images/15012025/02/52/image_15012025_02_52_45_9427.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329179574","1329179562","1329179559","1329179567","1329179576","1329179570"],"photo_ids_order":["1329179559","1329179562","1329179567","1329179570","1329179574","1329179576"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/23a000b53a0bfae7146c8a87e0dfa64d.jpg","text":"TemporaryFile(/tmp/multipartBody2926524644911867823asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961213383,"filename":"image_15012025_02_52_06_10469.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c195aae519188c0334ed169993313e6d.jpg","text":"TemporaryFile(/tmp/multipartBody8361848373777266589asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961213383,"filename":"image_15012025_02_51_35_10457.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/91f0e33b79d7a96da95d82d275760499.jpg","text":"TemporaryFile(/tmp/multipartBody8324834277123311525asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961213383,"filename":"image_15012025_02_51_15_10335.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0c5332a5d28117df251b9eb00285a971.jpg","text":"TemporaryFile(/tmp/multipartBody6253048293544455372asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961213383,"filename":"image_15012025_02_51_46_10360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ca34471450d4958c3286c994371b2859.jpg","text":"TemporaryFile(/tmp/multipartBody7565917062231900436asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961213383,"filename":"image_15012025_02_52_45_9427.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c52a353adaaf0ebba0775f8cf220670b.jpg","text":"TemporaryFile(/tmp/multipartBody895013363994216450asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961213383,"filename":"image_15012025_02_51_55_9397.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329179567","file1":"1329179562","file0":"1329179559","file4":"1329179574","file5":"1329179576","file3":"1329179570"},"map_files_photo_id_array":[{"photo_id":"1329179576","filename":"file5"},{"photo_id":"1329179567","filename":"file2"},{"photo_id":"1329179574","filename":"file4"},{"photo_id":"1329179562","filename":"file1"},{"photo_id":"1329179559","filename":"file0"},{"photo_id":"1329179570","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329179574":["hashtag1","hashtag2"]},{"1329179562":["hashtag1","hashtag2"]},{"1329179559":["hashtag1","hashtag2"]},{"1329179567":["hashtag1","hashtag2"]},{"1329179576":["hashtag1","hashtag2"]},{"1329179570":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329179574, 1329179562, 1329179559, 1329179567, 1329179576, 1329179570)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.71901273727417 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 15 --only_old 0
2025-01-15 18:13:32.452376
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/52/image_15012025_02_52_56_10413.jpg', '/home/pi/Desktop/images/15012025/02/53/image_15012025_02_53_45_10352.jpg', '/home/pi/Desktop/images/15012025/02/53/image_15012025_02_53_55_9354.jpg', '/home/pi/Desktop/images/15012025/02/54/image_15012025_02_54_25_9368.jpg', '/home/pi/Desktop/images/15012025/02/54/image_15012025_02_54_55_9426.jpg', '/home/pi/Desktop/images/15012025/02/54/image_15012025_02_55_06_10385.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/52/image_15012025_02_52_56_10413.jpg
/home/pi/Desktop/images/15012025/02/53/image_15012025_02_53_45_10352.jpg
/home/pi/Desktop/images/15012025/02/53/image_15012025_02_53_55_9354.jpg
/home/pi/Desktop/images/15012025/02/54/image_15012025_02_54_25_9368.jpg
/home/pi/Desktop/images/15012025/02/54/image_15012025_02_54_55_9426.jpg
/home/pi/Desktop/images/15012025/02/54/image_15012025_02_55_06_10385.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329179595","1329179589","1329179604","1329179600","1329179614","1329179608"],"photo_ids_order":["1329179589","1329179595","1329179600","1329179604","1329179608","1329179614"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/82b79f025d84aefe1ff2d483437f4006.jpg","text":"TemporaryFile(/tmp/multipartBody3707726014502150126asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961273476,"filename":"image_15012025_02_53_45_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a69dd63991cf575cb8dcd7e669a79357.jpg","text":"TemporaryFile(/tmp/multipartBody2795628642677560957asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961273476,"filename":"image_15012025_02_52_56_10413.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/36d392f2769d9edb886017c4b20e3e39.jpg","text":"TemporaryFile(/tmp/multipartBody193062330562838161asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961273476,"filename":"image_15012025_02_54_25_9368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3825094e4f2a6c5037fae7ad8e3d4458.jpg","text":"TemporaryFile(/tmp/multipartBody2573535381917583245asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961273476,"filename":"image_15012025_02_53_55_9354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ba1be3e95ea09ded6d88c83cfad7074c.jpg","text":"TemporaryFile(/tmp/multipartBody5867768274796972461asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961273476,"filename":"image_15012025_02_55_06_10385.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/736642b807aa189b91d14a93bc495976.jpg","text":"TemporaryFile(/tmp/multipartBody114635064419712370asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961273476,"filename":"image_15012025_02_54_55_9426.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329179600","file1":"1329179595","file0":"1329179589","file4":"1329179608","file5":"1329179614","file3":"1329179604"},"map_files_photo_id_array":[{"photo_id":"1329179614","filename":"file5"},{"photo_id":"1329179600","filename":"file2"},{"photo_id":"1329179608","filename":"file4"},{"photo_id":"1329179595","filename":"file1"},{"photo_id":"1329179589","filename":"file0"},{"photo_id":"1329179604","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329179595":["hashtag1","hashtag2"]},{"1329179589":["hashtag1","hashtag2"]},{"1329179604":["hashtag1","hashtag2"]},{"1329179600":["hashtag1","hashtag2"]},{"1329179614":["hashtag1","hashtag2"]},{"1329179608":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329179595, 1329179589, 1329179604, 1329179600, 1329179614, 1329179608)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.55298185348511 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 15 --only_old 0
2025-01-15 18:14:32.803854
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/55/image_15012025_02_55_15_9320.jpg', '/home/pi/Desktop/images/15012025/02/56/image_15012025_02_56_26_10357.jpg', '/home/pi/Desktop/images/15012025/02/56/image_15012025_02_56_35_9463.jpg', '/home/pi/Desktop/images/15012025/02/56/image_15012025_02_56_45_10352.jpg', '/home/pi/Desktop/images/15012025/02/56/image_15012025_02_56_55_9343.jpg', '/home/pi/Desktop/images/15012025/02/56/image_15012025_02_57_05_10459.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/55/image_15012025_02_55_15_9320.jpg
/home/pi/Desktop/images/15012025/02/56/image_15012025_02_56_26_10357.jpg
/home/pi/Desktop/images/15012025/02/56/image_15012025_02_56_35_9463.jpg
/home/pi/Desktop/images/15012025/02/56/image_15012025_02_56_45_10352.jpg
/home/pi/Desktop/images/15012025/02/56/image_15012025_02_56_55_9343.jpg
/home/pi/Desktop/images/15012025/02/56/image_15012025_02_57_05_10459.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329179676","1329179664","1329179649","1329179680","1329179698","1329179641"],"photo_ids_order":["1329179641","1329179649","1329179664","1329179676","1329179680","1329179698"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1cbbaa62dc06c065ad5f6f656e411da9.jpg","text":"TemporaryFile(/tmp/multipartBody5520651976727506989asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961333807,"filename":"image_15012025_02_56_45_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/83b63c5f8e531887149b0565bbc8c515.jpg","text":"TemporaryFile(/tmp/multipartBody7569123163765295558asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961333807,"filename":"image_15012025_02_56_35_9463.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d36606c434d59a82414aa615019afc68.jpg","text":"TemporaryFile(/tmp/multipartBody8975031194234153343asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961333807,"filename":"image_15012025_02_56_26_10357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/31966f7d572e9c4489c9a6eca9fb4222.jpg","text":"TemporaryFile(/tmp/multipartBody4009438978033833416asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961333807,"filename":"image_15012025_02_56_55_9343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c9bd8592b239565d41fef128e32b8e73.jpg","text":"TemporaryFile(/tmp/multipartBody3378373552243711200asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961333807,"filename":"image_15012025_02_57_05_10459.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8c1a6e383a03ecbcf3520e717ae787cd.jpg","text":"TemporaryFile(/tmp/multipartBody4465038492128983260asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961333807,"filename":"image_15012025_02_55_15_9320.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329179664","file1":"1329179649","file0":"1329179641","file4":"1329179680","file5":"1329179698","file3":"1329179676"},"map_files_photo_id_array":[{"photo_id":"1329179698","filename":"file5"},{"photo_id":"1329179664","filename":"file2"},{"photo_id":"1329179680","filename":"file4"},{"photo_id":"1329179649","filename":"file1"},{"photo_id":"1329179641","filename":"file0"},{"photo_id":"1329179676","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329179676":["hashtag1","hashtag2"]},{"1329179664":["hashtag1","hashtag2"]},{"1329179649":["hashtag1","hashtag2"]},{"1329179680":["hashtag1","hashtag2"]},{"1329179698":["hashtag1","hashtag2"]},{"1329179641":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329179676, 1329179664, 1329179649, 1329179680, 1329179698, 1329179641)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.2338593006134 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 15 --only_old 0
2025-01-15 18:15:33.070024
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/57/image_15012025_02_57_16_10358.jpg', '/home/pi/Desktop/images/15012025/02/57/image_15012025_02_57_25_9449.jpg', '/home/pi/Desktop/images/15012025/02/57/image_15012025_02_57_35_10351.jpg', '/home/pi/Desktop/images/15012025/02/57/image_15012025_02_57_45_9474.jpg', '/home/pi/Desktop/images/15012025/02/57/image_15012025_02_57_55_10364.jpg', '/home/pi/Desktop/images/15012025/02/57/image_15012025_02_58_06_10375.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/57/image_15012025_02_57_16_10358.jpg
/home/pi/Desktop/images/15012025/02/57/image_15012025_02_57_25_9449.jpg
/home/pi/Desktop/images/15012025/02/57/image_15012025_02_57_35_10351.jpg
/home/pi/Desktop/images/15012025/02/57/image_15012025_02_57_45_9474.jpg
/home/pi/Desktop/images/15012025/02/57/image_15012025_02_57_55_10364.jpg
/home/pi/Desktop/images/15012025/02/57/image_15012025_02_58_06_10375.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329179858","1329179819","1329179797","1329179872","1329179866","1329179839"],"photo_ids_order":["1329179797","1329179819","1329179839","1329179858","1329179866","1329179872"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5838520d275bd830190b785f94ad4b36.jpg","text":"TemporaryFile(/tmp/multipartBody7143702559254663011asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961394053,"filename":"image_15012025_02_57_45_9474.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d5d23b04d8a71cba23813a4ddac75ccb.jpg","text":"TemporaryFile(/tmp/multipartBody6838141933168237030asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961394053,"filename":"image_15012025_02_57_25_9449.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/744a7c2a6c1becd089db5b43fa971829.jpg","text":"TemporaryFile(/tmp/multipartBody4544280159807988469asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961394053,"filename":"image_15012025_02_57_16_10358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/157d21eb64d472b3cf5e00b2985b499a.jpg","text":"TemporaryFile(/tmp/multipartBody1682299948420855845asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961394053,"filename":"image_15012025_02_58_06_10375.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4e5d3d2ba87da9001ca5d717f77177b2.jpg","text":"TemporaryFile(/tmp/multipartBody2190553003274863072asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961394053,"filename":"image_15012025_02_57_55_10364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/accc765cbe36531cc083d635aafb29fd.jpg","text":"TemporaryFile(/tmp/multipartBody8909870022393211286asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961394053,"filename":"image_15012025_02_57_35_10351.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329179839","file1":"1329179819","file0":"1329179797","file4":"1329179866","file5":"1329179872","file3":"1329179858"},"map_files_photo_id_array":[{"photo_id":"1329179872","filename":"file5"},{"photo_id":"1329179839","filename":"file2"},{"photo_id":"1329179866","filename":"file4"},{"photo_id":"1329179819","filename":"file1"},{"photo_id":"1329179797","filename":"file0"},{"photo_id":"1329179858","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329179858":["hashtag1","hashtag2"]},{"1329179819":["hashtag1","hashtag2"]},{"1329179797":["hashtag1","hashtag2"]},{"1329179872":["hashtag1","hashtag2"]},{"1329179866":["hashtag1","hashtag2"]},{"1329179839":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329179858, 1329179819, 1329179797, 1329179872, 1329179866, 1329179839)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.110771894454956 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 15 --only_old 0
2025-01-15 18:16:32.826579
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/58/image_15012025_02_58_15_9433.jpg', '/home/pi/Desktop/images/15012025/02/58/image_15012025_02_58_26_10449.jpg', '/home/pi/Desktop/images/15012025/02/58/image_15012025_02_58_35_9503.jpg', '/home/pi/Desktop/images/15012025/02/58/image_15012025_02_58_45_10347.jpg', '/home/pi/Desktop/images/15012025/02/58/image_15012025_02_58_56_10327.jpg', '/home/pi/Desktop/images/15012025/02/58/image_15012025_02_59_05_9399.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/58/image_15012025_02_58_15_9433.jpg
/home/pi/Desktop/images/15012025/02/58/image_15012025_02_58_26_10449.jpg
/home/pi/Desktop/images/15012025/02/58/image_15012025_02_58_35_9503.jpg
/home/pi/Desktop/images/15012025/02/58/image_15012025_02_58_45_10347.jpg
/home/pi/Desktop/images/15012025/02/58/image_15012025_02_58_56_10327.jpg
/home/pi/Desktop/images/15012025/02/58/image_15012025_02_59_05_9399.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329179917","1329179943","1329179922","1329179912","1329179900","1329179947"],"photo_ids_order":["1329179900","1329179912","1329179917","1329179922","1329179943","1329179947"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/54b6808353a91804decd840097b8f34c.jpg","text":"TemporaryFile(/tmp/multipartBody4953334388881004836asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961453853,"filename":"image_15012025_02_58_35_9503.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/85a8fc95359e4fc94829a4ec55dad457.jpg","text":"TemporaryFile(/tmp/multipartBody7168536240933206360asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961453853,"filename":"image_15012025_02_58_56_10327.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5fd003148600bc07931e50d3ae324dd8.jpg","text":"TemporaryFile(/tmp/multipartBody6375262185684859033asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961453853,"filename":"image_15012025_02_58_45_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3a845139b329ea7b2ea620294c3006cc.jpg","text":"TemporaryFile(/tmp/multipartBody4293320912297322638asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961453853,"filename":"image_15012025_02_58_26_10449.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/20d553fcf6d409261bc7af0c0a9a3d54.jpg","text":"TemporaryFile(/tmp/multipartBody1258446598985796498asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961453853,"filename":"image_15012025_02_58_15_9433.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/88662e3fcb205183b692bca96e3aea50.jpg","text":"TemporaryFile(/tmp/multipartBody7252700086291284027asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961453853,"filename":"image_15012025_02_59_05_9399.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329179917","file1":"1329179912","file0":"1329179900","file4":"1329179943","file5":"1329179947","file3":"1329179922"},"map_files_photo_id_array":[{"photo_id":"1329179947","filename":"file5"},{"photo_id":"1329179917","filename":"file2"},{"photo_id":"1329179943","filename":"file4"},{"photo_id":"1329179912","filename":"file1"},{"photo_id":"1329179900","filename":"file0"},{"photo_id":"1329179922","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329179917":["hashtag1","hashtag2"]},{"1329179943":["hashtag1","hashtag2"]},{"1329179922":["hashtag1","hashtag2"]},{"1329179912":["hashtag1","hashtag2"]},{"1329179900":["hashtag1","hashtag2"]},{"1329179947":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329179917, 1329179943, 1329179922, 1329179912, 1329179900, 1329179947)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.83158588409424 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 15 --only_old 0
2025-01-15 18:17:33.024984
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/02/59/image_15012025_02_59_15_10353.jpg', '/home/pi/Desktop/images/15012025/02/59/image_15012025_02_59_25_9381.jpg', '/home/pi/Desktop/images/15012025/02/59/image_15012025_02_59_35_10352.jpg', '/home/pi/Desktop/images/15012025/02/59/image_15012025_02_59_46_10355.jpg', '/home/pi/Desktop/images/15012025/02/59/image_15012025_02_59_55_9370.jpg', '/home/pi/Desktop/images/15012025/03/00/image_15012025_03_00_16_10072.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/02/59/image_15012025_02_59_15_10353.jpg
/home/pi/Desktop/images/15012025/02/59/image_15012025_02_59_25_9381.jpg
/home/pi/Desktop/images/15012025/02/59/image_15012025_02_59_35_10352.jpg
/home/pi/Desktop/images/15012025/02/59/image_15012025_02_59_46_10355.jpg
/home/pi/Desktop/images/15012025/02/59/image_15012025_02_59_55_9370.jpg
/home/pi/Desktop/images/15012025/03/00/image_15012025_03_00_16_10072.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329180007","1329179964","1329179975","1329179978","1329179969","1329179960"],"photo_ids_order":["1329179960","1329179964","1329179969","1329179975","1329179978","1329180007"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/477b02568a8a4a7fbcc69f9da82b6479.jpg","text":"TemporaryFile(/tmp/multipartBody3280588229753689880asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961514018,"filename":"image_15012025_03_00_16_10072.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7dfa17095a1aaf95de5c207f8a596e00.jpg","text":"TemporaryFile(/tmp/multipartBody5376750133667397359asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961514018,"filename":"image_15012025_02_59_25_9381.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ae623853edc5bf7b6f942610b574d734.jpg","text":"TemporaryFile(/tmp/multipartBody1086970775106147857asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961514018,"filename":"image_15012025_02_59_46_10355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1d923ce0a260e46be44edd12a209d0bd.jpg","text":"TemporaryFile(/tmp/multipartBody6079619124996399110asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961514018,"filename":"image_15012025_02_59_55_9370.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fb7d6e909c94d37fd472ff59815392e1.jpg","text":"TemporaryFile(/tmp/multipartBody2857258794252988468asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961514018,"filename":"image_15012025_02_59_35_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2ccb63a112a208f2ef0d49494036a4db.jpg","text":"TemporaryFile(/tmp/multipartBody1133373472916358815asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961514018,"filename":"image_15012025_02_59_15_10353.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329179969","file1":"1329179964","file0":"1329179960","file4":"1329179978","file5":"1329180007","file3":"1329179975"},"map_files_photo_id_array":[{"photo_id":"1329180007","filename":"file5"},{"photo_id":"1329179969","filename":"file2"},{"photo_id":"1329179978","filename":"file4"},{"photo_id":"1329179964","filename":"file1"},{"photo_id":"1329179960","filename":"file0"},{"photo_id":"1329179975","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329180007":["hashtag1","hashtag2"]},{"1329179964":["hashtag1","hashtag2"]},{"1329179975":["hashtag1","hashtag2"]},{"1329179978":["hashtag1","hashtag2"]},{"1329179969":["hashtag1","hashtag2"]},{"1329179960":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329180007, 1329179964, 1329179975, 1329179978, 1329179969, 1329179960)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.72393083572388 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 15 --only_old 0
2025-01-15 18:18:33.147399
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/00/image_15012025_03_00_26_10447.jpg', '/home/pi/Desktop/images/15012025/03/00/image_15012025_03_00_36_10417.jpg', '/home/pi/Desktop/images/15012025/03/00/image_15012025_03_00_46_9333.jpg', '/home/pi/Desktop/images/15012025/03/00/image_15012025_03_01_06_9377.jpg', '/home/pi/Desktop/images/15012025/03/01/image_15012025_03_01_16_10353.jpg', '/home/pi/Desktop/images/15012025/03/01/image_15012025_03_01_26_10488.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/00/image_15012025_03_00_26_10447.jpg
/home/pi/Desktop/images/15012025/03/00/image_15012025_03_00_36_10417.jpg
/home/pi/Desktop/images/15012025/03/00/image_15012025_03_00_46_9333.jpg
/home/pi/Desktop/images/15012025/03/00/image_15012025_03_01_06_9377.jpg
/home/pi/Desktop/images/15012025/03/01/image_15012025_03_01_16_10353.jpg
/home/pi/Desktop/images/15012025/03/01/image_15012025_03_01_26_10488.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329180978","1329180977","1329180551","1329180854","1329180970","1329180694"],"photo_ids_order":["1329180551","1329180694","1329180854","1329180970","1329180977","1329180978"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9253042b771dc17f18acb009f9f642b7.jpg","text":"TemporaryFile(/tmp/multipartBody2255569162654993639asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961574145,"filename":"image_15012025_03_01_26_10488.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b908eeafb5ff8fb462878439c6b59e7a.jpg","text":"TemporaryFile(/tmp/multipartBody999150550487092924asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961574145,"filename":"image_15012025_03_01_16_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dfb906e0a4102c701b7492283e714317.jpg","text":"TemporaryFile(/tmp/multipartBody1377884909045792114asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961574145,"filename":"image_15012025_03_00_26_10447.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c59662a2a6f03e9a2bc5c7938cb9b263.jpg","text":"TemporaryFile(/tmp/multipartBody3255999042964296507asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961574145,"filename":"image_15012025_03_00_46_9333.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/79245f26467a864be52d8d171865171a.jpg","text":"TemporaryFile(/tmp/multipartBody377380847034755689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961574145,"filename":"image_15012025_03_01_06_9377.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/682007c40e60300b196a96b5b10ea1ab.jpg","text":"TemporaryFile(/tmp/multipartBody3409606935339673841asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961574145,"filename":"image_15012025_03_00_36_10417.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329180854","file1":"1329180694","file0":"1329180551","file4":"1329180977","file5":"1329180978","file3":"1329180970"},"map_files_photo_id_array":[{"photo_id":"1329180978","filename":"file5"},{"photo_id":"1329180854","filename":"file2"},{"photo_id":"1329180977","filename":"file4"},{"photo_id":"1329180694","filename":"file1"},{"photo_id":"1329180551","filename":"file0"},{"photo_id":"1329180970","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329180978":["hashtag1","hashtag2"]},{"1329180977":["hashtag1","hashtag2"]},{"1329180551":["hashtag1","hashtag2"]},{"1329180854":["hashtag1","hashtag2"]},{"1329180970":["hashtag1","hashtag2"]},{"1329180694":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329180978, 1329180977, 1329180551, 1329180854, 1329180970, 1329180694)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.66193342208862 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 15 --only_old 0
2025-01-15 18:19:32.293157
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/01/image_15012025_03_01_36_9417.jpg', '/home/pi/Desktop/images/15012025/03/01/image_15012025_03_01_46_10457.jpg', '/home/pi/Desktop/images/15012025/03/01/image_15012025_03_02_06_10446.jpg', '/home/pi/Desktop/images/15012025/03/02/image_15012025_03_02_36_10341.jpg', '/home/pi/Desktop/images/15012025/03/02/image_15012025_03_02_46_9441.jpg', '/home/pi/Desktop/images/15012025/03/02/image_15012025_03_02_56_10433.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/01/image_15012025_03_01_36_9417.jpg
/home/pi/Desktop/images/15012025/03/01/image_15012025_03_01_46_10457.jpg
/home/pi/Desktop/images/15012025/03/01/image_15012025_03_02_06_10446.jpg
/home/pi/Desktop/images/15012025/03/02/image_15012025_03_02_36_10341.jpg
/home/pi/Desktop/images/15012025/03/02/image_15012025_03_02_46_9441.jpg
/home/pi/Desktop/images/15012025/03/02/image_15012025_03_02_56_10433.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329181024","1329181049","1329181037","1329181028","1329181054","1329181063"],"photo_ids_order":["1329181024","1329181028","1329181037","1329181049","1329181054","1329181063"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d18d40b2e201874037dd336d57a98426.jpg","text":"TemporaryFile(/tmp/multipartBody5690492256142130289asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961633306,"filename":"image_15012025_03_01_36_9417.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d274953ca5e43cd7cac3bdb90f14cb54.jpg","text":"TemporaryFile(/tmp/multipartBody6847589388461622392asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961633306,"filename":"image_15012025_03_02_36_10341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7ec274481aac41f928765d32db3026f0.jpg","text":"TemporaryFile(/tmp/multipartBody7295822872683563290asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961633306,"filename":"image_15012025_03_02_06_10446.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cab2868f098b3889f4cb2d4a79f47f2c.jpg","text":"TemporaryFile(/tmp/multipartBody7417807870459050868asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961633306,"filename":"image_15012025_03_01_46_10457.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9dd52425bf559231359308249f7685d0.jpg","text":"TemporaryFile(/tmp/multipartBody3888352136205860895asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961633306,"filename":"image_15012025_03_02_46_9441.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/04621a7dc35804073ea3c2df414eedec.jpg","text":"TemporaryFile(/tmp/multipartBody5964588876577240834asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961633306,"filename":"image_15012025_03_02_56_10433.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329181037","file1":"1329181028","file0":"1329181024","file4":"1329181054","file5":"1329181063","file3":"1329181049"},"map_files_photo_id_array":[{"photo_id":"1329181063","filename":"file5"},{"photo_id":"1329181037","filename":"file2"},{"photo_id":"1329181054","filename":"file4"},{"photo_id":"1329181028","filename":"file1"},{"photo_id":"1329181024","filename":"file0"},{"photo_id":"1329181049","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329181024":["hashtag1","hashtag2"]},{"1329181049":["hashtag1","hashtag2"]},{"1329181037":["hashtag1","hashtag2"]},{"1329181028":["hashtag1","hashtag2"]},{"1329181054":["hashtag1","hashtag2"]},{"1329181063":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329181024, 1329181049, 1329181037, 1329181028, 1329181054, 1329181063)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.894368410110474 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 15 --only_old 0
2025-01-15 18:20:32.486059
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/02/image_15012025_03_03_06_10415.jpg', '/home/pi/Desktop/images/15012025/03/03/image_15012025_03_03_16_9400.jpg', '/home/pi/Desktop/images/15012025/03/03/image_15012025_03_03_26_10437.jpg', '/home/pi/Desktop/images/15012025/03/03/image_15012025_03_03_36_9363.jpg', '/home/pi/Desktop/images/15012025/03/03/image_15012025_03_03_46_10391.jpg', '/home/pi/Desktop/images/15012025/03/03/image_15012025_03_03_56_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/02/image_15012025_03_03_06_10415.jpg
/home/pi/Desktop/images/15012025/03/03/image_15012025_03_03_16_9400.jpg
/home/pi/Desktop/images/15012025/03/03/image_15012025_03_03_26_10437.jpg
/home/pi/Desktop/images/15012025/03/03/image_15012025_03_03_36_9363.jpg
/home/pi/Desktop/images/15012025/03/03/image_15012025_03_03_46_10391.jpg
/home/pi/Desktop/images/15012025/03/03/image_15012025_03_03_56_10356.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6103951930999756 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
2025-01-15 18:20:42.471628
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/02/image_15012025_03_03_06_10415.jpg', '/home/pi/Desktop/images/15012025/03/03/image_15012025_03_03_16_9400.jpg', '/home/pi/Desktop/images/15012025/03/03/image_15012025_03_03_26_10437.jpg', '/home/pi/Desktop/images/15012025/03/03/image_15012025_03_03_36_9363.jpg', '/home/pi/Desktop/images/15012025/03/03/image_15012025_03_03_46_10391.jpg', '/home/pi/Desktop/images/15012025/03/03/image_15012025_03_03_56_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/02/image_15012025_03_03_06_10415.jpg
/home/pi/Desktop/images/15012025/03/03/image_15012025_03_03_16_9400.jpg
/home/pi/Desktop/images/15012025/03/03/image_15012025_03_03_26_10437.jpg
/home/pi/Desktop/images/15012025/03/03/image_15012025_03_03_36_9363.jpg
/home/pi/Desktop/images/15012025/03/03/image_15012025_03_03_46_10391.jpg
/home/pi/Desktop/images/15012025/03/03/image_15012025_03_03_56_10356.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329181522","1329181536","1329181545","1329181527","1329181541","1329181510"],"photo_ids_order":["1329181510","1329181522","1329181527","1329181536","1329181541","1329181545"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2fb6dd73e50c0832a7ae6269274a5ff4.jpg","text":"TemporaryFile(/tmp/multipartBody2386545836380335886asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961703396,"filename":"image_15012025_03_03_16_9400.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/89d4af8d38a572e5819f8597ef57d184.jpg","text":"TemporaryFile(/tmp/multipartBody4671632122573380248asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961703396,"filename":"image_15012025_03_03_36_9363.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d154ecdc73cce2ea281d009be933e541.jpg","text":"TemporaryFile(/tmp/multipartBody8699022605721349042asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961703396,"filename":"image_15012025_03_03_56_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3bbcd4315febaaec9095c27c70d85f3a.jpg","text":"TemporaryFile(/tmp/multipartBody4943500828453677057asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961703396,"filename":"image_15012025_03_03_26_10437.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/84ded7099116fa85e2096f29d7eb849b.jpg","text":"TemporaryFile(/tmp/multipartBody2164239774328268053asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961703396,"filename":"image_15012025_03_03_46_10391.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/803fa0865a4535db9009d381ca123dc1.jpg","text":"TemporaryFile(/tmp/multipartBody4145398390578788148asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961703396,"filename":"image_15012025_03_03_06_10415.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329181527","file1":"1329181522","file0":"1329181510","file4":"1329181541","file5":"1329181545","file3":"1329181536"},"map_files_photo_id_array":[{"photo_id":"1329181545","filename":"file5"},{"photo_id":"1329181527","filename":"file2"},{"photo_id":"1329181541","filename":"file4"},{"photo_id":"1329181522","filename":"file1"},{"photo_id":"1329181510","filename":"file0"},{"photo_id":"1329181536","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329181522":["hashtag1","hashtag2"]},{"1329181536":["hashtag1","hashtag2"]},{"1329181545":["hashtag1","hashtag2"]},{"1329181527":["hashtag1","hashtag2"]},{"1329181541":["hashtag1","hashtag2"]},{"1329181510":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329181522, 1329181536, 1329181545, 1329181527, 1329181541, 1329181510)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.18701457977295 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 15 --only_old 0
2025-01-15 18:21:32.736671
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/03/image_15012025_03_04_06_9341.jpg', '/home/pi/Desktop/images/15012025/03/04/image_15012025_03_04_16_10428.jpg', '/home/pi/Desktop/images/15012025/03/04/image_15012025_03_04_26_9358.jpg', '/home/pi/Desktop/images/15012025/03/04/image_15012025_03_04_36_10361.jpg', '/home/pi/Desktop/images/15012025/03/04/image_15012025_03_04_46_10357.jpg', '/home/pi/Desktop/images/15012025/03/04/image_15012025_03_04_56_9360.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/03/image_15012025_03_04_06_9341.jpg
/home/pi/Desktop/images/15012025/03/04/image_15012025_03_04_16_10428.jpg
/home/pi/Desktop/images/15012025/03/04/image_15012025_03_04_26_9358.jpg
/home/pi/Desktop/images/15012025/03/04/image_15012025_03_04_36_10361.jpg
/home/pi/Desktop/images/15012025/03/04/image_15012025_03_04_46_10357.jpg
/home/pi/Desktop/images/15012025/03/04/image_15012025_03_04_56_9360.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329181596","1329181593","1329181560","1329181580","1329181571","1329181601"],"photo_ids_order":["1329181560","1329181571","1329181580","1329181593","1329181596","1329181601"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2a0ab148fcae8cfe30ad7e1540176538.jpg","text":"TemporaryFile(/tmp/multipartBody200081021217089644asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961753745,"filename":"image_15012025_03_04_46_10357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1cc8761c212f51504988847ad079ec89.jpg","text":"TemporaryFile(/tmp/multipartBody3476415888675101811asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961753745,"filename":"image_15012025_03_04_36_10361.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2b2383c82108e312d70a2e7787d0efd4.jpg","text":"TemporaryFile(/tmp/multipartBody2796948110226288327asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961753745,"filename":"image_15012025_03_04_06_9341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4abab12f2a92cfd332b6d8e5b693865b.jpg","text":"TemporaryFile(/tmp/multipartBody417831689099975029asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961753745,"filename":"image_15012025_03_04_26_9358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f62150cd105d15a2a2179e11fda2de3f.jpg","text":"TemporaryFile(/tmp/multipartBody3838120054016357881asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961753745,"filename":"image_15012025_03_04_16_10428.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/55075af61199344e8c9ed09dbbb36760.jpg","text":"TemporaryFile(/tmp/multipartBody792325814445080946asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961753745,"filename":"image_15012025_03_04_56_9360.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329181580","file1":"1329181571","file0":"1329181560","file4":"1329181596","file5":"1329181601","file3":"1329181593"},"map_files_photo_id_array":[{"photo_id":"1329181601","filename":"file5"},{"photo_id":"1329181580","filename":"file2"},{"photo_id":"1329181596","filename":"file4"},{"photo_id":"1329181571","filename":"file1"},{"photo_id":"1329181560","filename":"file0"},{"photo_id":"1329181593","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329181596":["hashtag1","hashtag2"]},{"1329181593":["hashtag1","hashtag2"]},{"1329181560":["hashtag1","hashtag2"]},{"1329181580":["hashtag1","hashtag2"]},{"1329181571":["hashtag1","hashtag2"]},{"1329181601":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329181596, 1329181593, 1329181560, 1329181580, 1329181571, 1329181601)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.65226364135742 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 15 --only_old 0
2025-01-15 18:22:32.891747
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/04/image_15012025_03_05_06_10466.jpg', '/home/pi/Desktop/images/15012025/03/05/image_15012025_03_05_16_10374.jpg', '/home/pi/Desktop/images/15012025/03/05/image_15012025_03_05_26_9357.jpg', '/home/pi/Desktop/images/15012025/03/05/image_15012025_03_05_36_10433.jpg', '/home/pi/Desktop/images/15012025/03/05/image_15012025_03_05_46_9325.jpg', '/home/pi/Desktop/images/15012025/03/05/image_15012025_03_05_56_10403.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/04/image_15012025_03_05_06_10466.jpg
/home/pi/Desktop/images/15012025/03/05/image_15012025_03_05_16_10374.jpg
/home/pi/Desktop/images/15012025/03/05/image_15012025_03_05_26_9357.jpg
/home/pi/Desktop/images/15012025/03/05/image_15012025_03_05_36_10433.jpg
/home/pi/Desktop/images/15012025/03/05/image_15012025_03_05_46_9325.jpg
/home/pi/Desktop/images/15012025/03/05/image_15012025_03_05_56_10403.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329182280","1329182766","1329181880","1329182414","1329182059","1329182598"],"photo_ids_order":["1329181880","1329182059","1329182280","1329182414","1329182598","1329182766"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0824da52997e54fc619cab4a7d92a22a.jpg","text":"TemporaryFile(/tmp/multipartBody4445832654309178604asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961813883,"filename":"image_15012025_03_05_26_9357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/816658944df27b26e0221cddc503e259.jpg","text":"TemporaryFile(/tmp/multipartBody3292653195039690411asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961813883,"filename":"image_15012025_03_05_56_10403.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/818f97e7f978f44d6bcd731fe40d7a5c.jpg","text":"TemporaryFile(/tmp/multipartBody5522346350704660427asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961813883,"filename":"image_15012025_03_05_06_10466.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2870cba4ea535eb19bebbb5ab764d426.jpg","text":"TemporaryFile(/tmp/multipartBody2132012026113896846asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961813883,"filename":"image_15012025_03_05_36_10433.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/570331e4b73389f8ca898d372c836fd8.jpg","text":"TemporaryFile(/tmp/multipartBody3182489406291706888asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961813883,"filename":"image_15012025_03_05_16_10374.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5580ca074bfc4edf4e5f5bef9e8c44b6.jpg","text":"TemporaryFile(/tmp/multipartBody8463563921863903888asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961813883,"filename":"image_15012025_03_05_46_9325.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329182280","file1":"1329182059","file0":"1329181880","file4":"1329182598","file5":"1329182766","file3":"1329182414"},"map_files_photo_id_array":[{"photo_id":"1329182766","filename":"file5"},{"photo_id":"1329182280","filename":"file2"},{"photo_id":"1329182598","filename":"file4"},{"photo_id":"1329182059","filename":"file1"},{"photo_id":"1329181880","filename":"file0"},{"photo_id":"1329182414","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329182280":["hashtag1","hashtag2"]},{"1329182766":["hashtag1","hashtag2"]},{"1329181880":["hashtag1","hashtag2"]},{"1329182414":["hashtag1","hashtag2"]},{"1329182059":["hashtag1","hashtag2"]},{"1329182598":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329182280, 1329182766, 1329181880, 1329182414, 1329182059, 1329182598)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.80656981468201 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 15 --only_old 0
2025-01-15 18:23:33.075303
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/05/image_15012025_03_06_06_10368.jpg', '/home/pi/Desktop/images/15012025/03/06/image_15012025_03_06_16_9431.jpg', '/home/pi/Desktop/images/15012025/03/06/image_15012025_03_06_26_10365.jpg', '/home/pi/Desktop/images/15012025/03/06/image_15012025_03_06_37_10346.jpg', '/home/pi/Desktop/images/15012025/03/06/image_15012025_03_06_46_9362.jpg', '/home/pi/Desktop/images/15012025/03/06/image_15012025_03_06_56_10427.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/05/image_15012025_03_06_06_10368.jpg
/home/pi/Desktop/images/15012025/03/06/image_15012025_03_06_16_9431.jpg
/home/pi/Desktop/images/15012025/03/06/image_15012025_03_06_26_10365.jpg
/home/pi/Desktop/images/15012025/03/06/image_15012025_03_06_37_10346.jpg
/home/pi/Desktop/images/15012025/03/06/image_15012025_03_06_46_9362.jpg
/home/pi/Desktop/images/15012025/03/06/image_15012025_03_06_56_10427.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329182838","1329182840","1329182834","1329182830","1329182806","1329182800"],"photo_ids_order":["1329182800","1329182806","1329182830","1329182834","1329182838","1329182840"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a321083704c4ca4d83bcb38349bedc41.jpg","text":"TemporaryFile(/tmp/multipartBody3107186743436276873asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961874053,"filename":"image_15012025_03_06_46_9362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dbc084dc596608ea9e11ca54b6e2f108.jpg","text":"TemporaryFile(/tmp/multipartBody1165246380893886355asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961874053,"filename":"image_15012025_03_06_56_10427.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/992d3c29f4e3e948f6f2d9d16abd15af.jpg","text":"TemporaryFile(/tmp/multipartBody4429230324546373752asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961874053,"filename":"image_15012025_03_06_37_10346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e309688bed1c3661f07873b68cbe5dd6.jpg","text":"TemporaryFile(/tmp/multipartBody2603778336110296475asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961874053,"filename":"image_15012025_03_06_26_10365.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ddc25f5749cb1f0020b9f8d3de8c926e.jpg","text":"TemporaryFile(/tmp/multipartBody1324326998826325298asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961874053,"filename":"image_15012025_03_06_16_9431.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7c086dbcb9f7db98b1b3f8571770910a.jpg","text":"TemporaryFile(/tmp/multipartBody8798945586302376351asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961874053,"filename":"image_15012025_03_06_06_10368.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329182830","file1":"1329182806","file0":"1329182800","file4":"1329182838","file5":"1329182840","file3":"1329182834"},"map_files_photo_id_array":[{"photo_id":"1329182840","filename":"file5"},{"photo_id":"1329182830","filename":"file2"},{"photo_id":"1329182838","filename":"file4"},{"photo_id":"1329182806","filename":"file1"},{"photo_id":"1329182800","filename":"file0"},{"photo_id":"1329182834","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329182838":["hashtag1","hashtag2"]},{"1329182840":["hashtag1","hashtag2"]},{"1329182834":["hashtag1","hashtag2"]},{"1329182830":["hashtag1","hashtag2"]},{"1329182806":["hashtag1","hashtag2"]},{"1329182800":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329182838, 1329182840, 1329182834, 1329182830, 1329182806, 1329182800)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.725422382354736 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 15 --only_old 0
2025-01-15 18:24:32.378697
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/06/image_15012025_03_07_06_9352.jpg', '/home/pi/Desktop/images/15012025/03/07/image_15012025_03_07_16_10403.jpg', '/home/pi/Desktop/images/15012025/03/07/image_15012025_03_07_27_10446.jpg', '/home/pi/Desktop/images/15012025/03/07/image_15012025_03_07_36_9402.jpg', '/home/pi/Desktop/images/15012025/03/07/image_15012025_03_07_46_10457.jpg', '/home/pi/Desktop/images/15012025/03/08/image_15012025_03_08_26_9364.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/06/image_15012025_03_07_06_9352.jpg
/home/pi/Desktop/images/15012025/03/07/image_15012025_03_07_16_10403.jpg
/home/pi/Desktop/images/15012025/03/07/image_15012025_03_07_27_10446.jpg
/home/pi/Desktop/images/15012025/03/07/image_15012025_03_07_36_9402.jpg
/home/pi/Desktop/images/15012025/03/07/image_15012025_03_07_46_10457.jpg
/home/pi/Desktop/images/15012025/03/08/image_15012025_03_08_26_9364.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329183290","1329183215","1329183209","1329183316","1329183319","1329183261"],"photo_ids_order":["1329183209","1329183215","1329183261","1329183290","1329183316","1329183319"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1d0c5f195e950f8e94d6f62295b01fa2.jpg","text":"TemporaryFile(/tmp/multipartBody1128546849134158443asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961934011,"filename":"image_15012025_03_07_36_9402.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7445a82e619c3bc15ff29c39f9ce165a.jpg","text":"TemporaryFile(/tmp/multipartBody3552499971611653426asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961934011,"filename":"image_15012025_03_07_16_10403.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/70cc7b7b15356b7d5f31daea54198527.jpg","text":"TemporaryFile(/tmp/multipartBody2390130555692696604asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961934011,"filename":"image_15012025_03_07_06_9352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/54b004758bca7c8615d1f186a77f3b0e.jpg","text":"TemporaryFile(/tmp/multipartBody3302340748339690939asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961934011,"filename":"image_15012025_03_07_46_10457.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/08eb4fd41df6516d48b8430cc3b6fb22.jpg","text":"TemporaryFile(/tmp/multipartBody8417638784809213364asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961934011,"filename":"image_15012025_03_08_26_9364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6bbff2fbdf6625598660d1250f9a3b82.jpg","text":"TemporaryFile(/tmp/multipartBody374062640448751871asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961934011,"filename":"image_15012025_03_07_27_10446.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329183261","file1":"1329183215","file0":"1329183209","file4":"1329183316","file5":"1329183319","file3":"1329183290"},"map_files_photo_id_array":[{"photo_id":"1329183319","filename":"file5"},{"photo_id":"1329183261","filename":"file2"},{"photo_id":"1329183316","filename":"file4"},{"photo_id":"1329183215","filename":"file1"},{"photo_id":"1329183209","filename":"file0"},{"photo_id":"1329183290","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329183290":["hashtag1","hashtag2"]},{"1329183215":["hashtag1","hashtag2"]},{"1329183209":["hashtag1","hashtag2"]},{"1329183316":["hashtag1","hashtag2"]},{"1329183319":["hashtag1","hashtag2"]},{"1329183261":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329183290, 1329183215, 1329183209, 1329183316, 1329183319, 1329183261)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.48630404472351 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 15 --only_old 0
2025-01-15 18:25:32.877504
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/09/image_15012025_03_09_16_9367.jpg', '/home/pi/Desktop/images/15012025/03/09/image_15012025_03_09_26_10492.jpg', '/home/pi/Desktop/images/15012025/03/09/image_15012025_03_09_36_9459.jpg', '/home/pi/Desktop/images/15012025/03/09/image_15012025_03_09_46_10406.jpg', '/home/pi/Desktop/images/15012025/03/09/image_15012025_03_09_56_10345.jpg', '/home/pi/Desktop/images/15012025/03/09/image_15012025_03_10_06_9345.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/09/image_15012025_03_09_16_9367.jpg
/home/pi/Desktop/images/15012025/03/09/image_15012025_03_09_26_10492.jpg
/home/pi/Desktop/images/15012025/03/09/image_15012025_03_09_36_9459.jpg
/home/pi/Desktop/images/15012025/03/09/image_15012025_03_09_46_10406.jpg
/home/pi/Desktop/images/15012025/03/09/image_15012025_03_09_56_10345.jpg
/home/pi/Desktop/images/15012025/03/09/image_15012025_03_10_06_9345.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329183359","1329183346","1329183337","1329183331","1329183342","1329183348"],"photo_ids_order":["1329183331","1329183337","1329183342","1329183346","1329183348","1329183359"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2ebdf1572f225db586f66410826e9b6b.jpg","text":"TemporaryFile(/tmp/multipartBody2492850925210400290asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961993889,"filename":"image_15012025_03_10_06_9345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/516456225587cac8acf6fdaf1e600014.jpg","text":"TemporaryFile(/tmp/multipartBody2504870907602342411asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961993889,"filename":"image_15012025_03_09_46_10406.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e500d34f597c99bfb6cdf3b5e231610b.jpg","text":"TemporaryFile(/tmp/multipartBody5256732287788139153asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961993889,"filename":"image_15012025_03_09_26_10492.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/578c5229230fbda2b2421433332f3faa.jpg","text":"TemporaryFile(/tmp/multipartBody7777855634376497304asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961993889,"filename":"image_15012025_03_09_16_9367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/02c4dbfdba540ca7960a20cd4c1bd5ea.jpg","text":"TemporaryFile(/tmp/multipartBody5316798389464873952asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961993889,"filename":"image_15012025_03_09_36_9459.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2adeea593e3ef3e09d7695db450c0dfd.jpg","text":"TemporaryFile(/tmp/multipartBody1713749160675607401asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736961993889,"filename":"image_15012025_03_09_56_10345.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329183342","file1":"1329183337","file0":"1329183331","file4":"1329183348","file5":"1329183359","file3":"1329183346"},"map_files_photo_id_array":[{"photo_id":"1329183359","filename":"file5"},{"photo_id":"1329183342","filename":"file2"},{"photo_id":"1329183348","filename":"file4"},{"photo_id":"1329183337","filename":"file1"},{"photo_id":"1329183331","filename":"file0"},{"photo_id":"1329183346","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329183359":["hashtag1","hashtag2"]},{"1329183346":["hashtag1","hashtag2"]},{"1329183337":["hashtag1","hashtag2"]},{"1329183331":["hashtag1","hashtag2"]},{"1329183342":["hashtag1","hashtag2"]},{"1329183348":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329183359, 1329183346, 1329183337, 1329183331, 1329183342, 1329183348)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.26942849159241 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 15 --only_old 0
2025-01-15 18:26:32.933489
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/10/image_15012025_03_10_16_10343.jpg', '/home/pi/Desktop/images/15012025/03/10/image_15012025_03_10_46_10435.jpg', '/home/pi/Desktop/images/15012025/03/10/image_15012025_03_10_56_9342.jpg', '/home/pi/Desktop/images/15012025/03/10/image_15012025_03_11_06_10405.jpg', '/home/pi/Desktop/images/15012025/03/11/image_15012025_03_11_36_9364.jpg', '/home/pi/Desktop/images/15012025/03/12/image_15012025_03_12_26_10384.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/10/image_15012025_03_10_16_10343.jpg
/home/pi/Desktop/images/15012025/03/10/image_15012025_03_10_46_10435.jpg
/home/pi/Desktop/images/15012025/03/10/image_15012025_03_10_56_9342.jpg
/home/pi/Desktop/images/15012025/03/10/image_15012025_03_11_06_10405.jpg
/home/pi/Desktop/images/15012025/03/11/image_15012025_03_11_36_9364.jpg
/home/pi/Desktop/images/15012025/03/12/image_15012025_03_12_26_10384.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329183435","1329183476","1329183431","1329183419","1329183404","1329183438"],"photo_ids_order":["1329183404","1329183419","1329183431","1329183435","1329183438","1329183476"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/686343c35a1f9a7cb11adba0373220c4.jpg","text":"TemporaryFile(/tmp/multipartBody6827330931588776559asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962053924,"filename":"image_15012025_03_11_06_10405.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ec7f0c3f5800c0bb6b65053bbddc45ac.jpg","text":"TemporaryFile(/tmp/multipartBody8116317422786556296asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962053924,"filename":"image_15012025_03_12_26_10384.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0bb1ed673f63caf371ba105525bd4cd7.jpg","text":"TemporaryFile(/tmp/multipartBody6155933117058581695asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962053924,"filename":"image_15012025_03_10_56_9342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a5c767139b9ebab753f5815ef19db8f5.jpg","text":"TemporaryFile(/tmp/multipartBody383324419277791527asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962053924,"filename":"image_15012025_03_10_46_10435.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ac3108187ed79b5bd947854c010bf90b.jpg","text":"TemporaryFile(/tmp/multipartBody418646241592073435asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962053924,"filename":"image_15012025_03_10_16_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6f56246c283047af05b27f58a6f7a886.jpg","text":"TemporaryFile(/tmp/multipartBody3879173834607082605asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962053924,"filename":"image_15012025_03_11_36_9364.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329183431","file1":"1329183419","file0":"1329183404","file4":"1329183438","file5":"1329183476","file3":"1329183435"},"map_files_photo_id_array":[{"photo_id":"1329183476","filename":"file5"},{"photo_id":"1329183431","filename":"file2"},{"photo_id":"1329183438","filename":"file4"},{"photo_id":"1329183419","filename":"file1"},{"photo_id":"1329183404","filename":"file0"},{"photo_id":"1329183435","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329183435":["hashtag1","hashtag2"]},{"1329183476":["hashtag1","hashtag2"]},{"1329183431":["hashtag1","hashtag2"]},{"1329183419":["hashtag1","hashtag2"]},{"1329183404":["hashtag1","hashtag2"]},{"1329183438":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329183435, 1329183476, 1329183431, 1329183419, 1329183404, 1329183438)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.898258209228516 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 15 --only_old 0
2025-01-15 18:27:33.210085
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/12/image_15012025_03_12_46_9346.jpg', '/home/pi/Desktop/images/15012025/03/12/image_15012025_03_12_56_10461.jpg', '/home/pi/Desktop/images/15012025/03/13/image_15012025_03_13_46_10360.jpg', '/home/pi/Desktop/images/15012025/03/13/image_15012025_03_13_56_10367.jpg', '/home/pi/Desktop/images/15012025/03/14/image_15012025_03_14_16_10449.jpg', '/home/pi/Desktop/images/15012025/03/14/image_15012025_03_14_26_9353.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/12/image_15012025_03_12_46_9346.jpg
/home/pi/Desktop/images/15012025/03/12/image_15012025_03_12_56_10461.jpg
/home/pi/Desktop/images/15012025/03/13/image_15012025_03_13_46_10360.jpg
/home/pi/Desktop/images/15012025/03/13/image_15012025_03_13_56_10367.jpg
/home/pi/Desktop/images/15012025/03/14/image_15012025_03_14_16_10449.jpg
/home/pi/Desktop/images/15012025/03/14/image_15012025_03_14_26_9353.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329183507","1329183497","1329183491","1329183518","1329183526","1329183529"],"photo_ids_order":["1329183491","1329183497","1329183507","1329183518","1329183526","1329183529"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b6b6d8704a3f661895e85152698f229b.jpg","text":"TemporaryFile(/tmp/multipartBody6528027328495442719asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962114218,"filename":"image_15012025_03_13_46_10360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a20aa0aaa88db812ad68a48f0bc43d80.jpg","text":"TemporaryFile(/tmp/multipartBody1905269208857761027asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962114218,"filename":"image_15012025_03_12_56_10461.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/485fb964fe942f9316c2ffc5660aba11.jpg","text":"TemporaryFile(/tmp/multipartBody7174869226479676967asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962114218,"filename":"image_15012025_03_12_46_9346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/690e0d2688bbf5b912b13c1841721762.jpg","text":"TemporaryFile(/tmp/multipartBody1078284402797331832asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962114218,"filename":"image_15012025_03_13_56_10367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8e7597d4167e6a3d400758a6ee635c25.jpg","text":"TemporaryFile(/tmp/multipartBody5544865712004835464asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962114218,"filename":"image_15012025_03_14_16_10449.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2ff34efd9321f9fbde134498f0c538e4.jpg","text":"TemporaryFile(/tmp/multipartBody2956871667602682705asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962114218,"filename":"image_15012025_03_14_26_9353.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329183507","file1":"1329183497","file0":"1329183491","file4":"1329183526","file5":"1329183529","file3":"1329183518"},"map_files_photo_id_array":[{"photo_id":"1329183529","filename":"file5"},{"photo_id":"1329183507","filename":"file2"},{"photo_id":"1329183526","filename":"file4"},{"photo_id":"1329183497","filename":"file1"},{"photo_id":"1329183491","filename":"file0"},{"photo_id":"1329183518","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329183507":["hashtag1","hashtag2"]},{"1329183497":["hashtag1","hashtag2"]},{"1329183491":["hashtag1","hashtag2"]},{"1329183518":["hashtag1","hashtag2"]},{"1329183526":["hashtag1","hashtag2"]},{"1329183529":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329183507, 1329183497, 1329183491, 1329183518, 1329183526, 1329183529)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.523303508758545 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 15 --only_old 0
2025-01-15 18:28:32.382894
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/14/image_15012025_03_14_36_10351.jpg', '/home/pi/Desktop/images/15012025/03/14/image_15012025_03_14_56_9333.jpg', '/home/pi/Desktop/images/15012025/03/14/image_15012025_03_15_06_10480.jpg', '/home/pi/Desktop/images/15012025/03/15/image_15012025_03_15_17_10343.jpg', '/home/pi/Desktop/images/15012025/03/15/image_15012025_03_15_36_10441.jpg', '/home/pi/Desktop/images/15012025/03/15/image_15012025_03_15_46_9343.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/14/image_15012025_03_14_36_10351.jpg
/home/pi/Desktop/images/15012025/03/14/image_15012025_03_14_56_9333.jpg
/home/pi/Desktop/images/15012025/03/14/image_15012025_03_15_06_10480.jpg
/home/pi/Desktop/images/15012025/03/15/image_15012025_03_15_17_10343.jpg
/home/pi/Desktop/images/15012025/03/15/image_15012025_03_15_36_10441.jpg
/home/pi/Desktop/images/15012025/03/15/image_15012025_03_15_46_9343.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329183566","1329183559","1329183544","1329183567","1329183564","1329183552"],"photo_ids_order":["1329183544","1329183552","1329183559","1329183564","1329183566","1329183567"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c70b0c5b5f070b9f834e3a028b2f84ab.jpg","text":"TemporaryFile(/tmp/multipartBody9165996863745605892asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962173738,"filename":"image_15012025_03_15_36_10441.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c693c9b89f3d11585e9d64534cf0b36e.jpg","text":"TemporaryFile(/tmp/multipartBody4249956880536383918asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962173738,"filename":"image_15012025_03_15_06_10480.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/52212c9771290093f02a2ec3fd2dc349.jpg","text":"TemporaryFile(/tmp/multipartBody2947369582793094390asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962173738,"filename":"image_15012025_03_14_36_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bc2ce840f5efc32a6c92d21a66e63ea5.jpg","text":"TemporaryFile(/tmp/multipartBody6310395352147556914asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962173738,"filename":"image_15012025_03_15_46_9343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a59f31ecb9d8e6ef476edf8be27347a0.jpg","text":"TemporaryFile(/tmp/multipartBody5301001687415753181asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962173738,"filename":"image_15012025_03_15_17_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c55ca4f6dfac8af4bb70eca39c81248b.jpg","text":"TemporaryFile(/tmp/multipartBody2776926223081356090asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962173738,"filename":"image_15012025_03_14_56_9333.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329183559","file1":"1329183552","file0":"1329183544","file4":"1329183566","file5":"1329183567","file3":"1329183564"},"map_files_photo_id_array":[{"photo_id":"1329183567","filename":"file5"},{"photo_id":"1329183559","filename":"file2"},{"photo_id":"1329183566","filename":"file4"},{"photo_id":"1329183552","filename":"file1"},{"photo_id":"1329183544","filename":"file0"},{"photo_id":"1329183564","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329183566":["hashtag1","hashtag2"]},{"1329183559":["hashtag1","hashtag2"]},{"1329183544":["hashtag1","hashtag2"]},{"1329183567":["hashtag1","hashtag2"]},{"1329183564":["hashtag1","hashtag2"]},{"1329183552":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329183566, 1329183559, 1329183544, 1329183567, 1329183564, 1329183552)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.49331450462341 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 15 --only_old 0
2025-01-15 18:29:32.676509
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/15/image_15012025_03_16_06_9459.jpg', '/home/pi/Desktop/images/15012025/03/17/image_15012025_03_17_36_10406.jpg', '/home/pi/Desktop/images/15012025/03/17/image_15012025_03_17_46_9353.jpg', '/home/pi/Desktop/images/15012025/03/17/image_15012025_03_17_56_10409.jpg', '/home/pi/Desktop/images/15012025/03/17/image_15012025_03_18_06_10333.jpg', '/home/pi/Desktop/images/15012025/03/18/image_15012025_03_18_16_9349.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/15/image_15012025_03_16_06_9459.jpg
/home/pi/Desktop/images/15012025/03/17/image_15012025_03_17_36_10406.jpg
/home/pi/Desktop/images/15012025/03/17/image_15012025_03_17_46_9353.jpg
/home/pi/Desktop/images/15012025/03/17/image_15012025_03_17_56_10409.jpg
/home/pi/Desktop/images/15012025/03/17/image_15012025_03_18_06_10333.jpg
/home/pi/Desktop/images/15012025/03/18/image_15012025_03_18_16_9349.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329183633","1329183654","1329183741","1329183636","1329183651","1329183645"],"photo_ids_order":["1329183633","1329183636","1329183645","1329183651","1329183654","1329183741"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f52c9c4a5b81e8f9dd4ac6dc54c58da5.jpg","text":"TemporaryFile(/tmp/multipartBody4470507839569741993asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962233693,"filename":"image_15012025_03_16_06_9459.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cc058dad912fe0bedc0648edf3d7a2d7.jpg","text":"TemporaryFile(/tmp/multipartBody3074339228766980273asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962233693,"filename":"image_15012025_03_18_06_10333.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c735b1cc5827395cfbb123db33489e82.jpg","text":"TemporaryFile(/tmp/multipartBody8275954216632119159asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962233693,"filename":"image_15012025_03_18_16_9349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1b90c77a20ba8e2fc3d04c328e4db192.jpg","text":"TemporaryFile(/tmp/multipartBody557201844481207317asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962233693,"filename":"image_15012025_03_17_36_10406.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/13516ae85379e1a18cc034037feb7621.jpg","text":"TemporaryFile(/tmp/multipartBody2394203247964151028asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962233693,"filename":"image_15012025_03_17_56_10409.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/44e8bb5eacc836947833550d187e3381.jpg","text":"TemporaryFile(/tmp/multipartBody8893232220763111334asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962233693,"filename":"image_15012025_03_17_46_9353.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329183645","file1":"1329183636","file0":"1329183633","file4":"1329183654","file5":"1329183741","file3":"1329183651"},"map_files_photo_id_array":[{"photo_id":"1329183741","filename":"file5"},{"photo_id":"1329183645","filename":"file2"},{"photo_id":"1329183654","filename":"file4"},{"photo_id":"1329183636","filename":"file1"},{"photo_id":"1329183633","filename":"file0"},{"photo_id":"1329183651","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329183633":["hashtag1","hashtag2"]},{"1329183654":["hashtag1","hashtag2"]},{"1329183741":["hashtag1","hashtag2"]},{"1329183636":["hashtag1","hashtag2"]},{"1329183651":["hashtag1","hashtag2"]},{"1329183645":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329183633, 1329183654, 1329183741, 1329183636, 1329183651, 1329183645)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.765843868255615 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 15 --only_old 0
2025-01-15 18:30:32.837721
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/18/image_15012025_03_18_36_9427.jpg', '/home/pi/Desktop/images/15012025/03/18/image_15012025_03_18_56_10353.jpg', '/home/pi/Desktop/images/15012025/03/19/image_15012025_03_19_26_9343.jpg', '/home/pi/Desktop/images/15012025/03/19/image_15012025_03_19_56_9348.jpg', '/home/pi/Desktop/images/15012025/03/19/image_15012025_03_20_06_10467.jpg', '/home/pi/Desktop/images/15012025/03/20/image_15012025_03_20_56_10414.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/18/image_15012025_03_18_36_9427.jpg
/home/pi/Desktop/images/15012025/03/18/image_15012025_03_18_56_10353.jpg
/home/pi/Desktop/images/15012025/03/19/image_15012025_03_19_26_9343.jpg
/home/pi/Desktop/images/15012025/03/19/image_15012025_03_19_56_9348.jpg
/home/pi/Desktop/images/15012025/03/19/image_15012025_03_20_06_10467.jpg
/home/pi/Desktop/images/15012025/03/20/image_15012025_03_20_56_10414.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329184454","1329184241","1329184171","1329184527","1329184350","1329184116"],"photo_ids_order":["1329184116","1329184171","1329184241","1329184350","1329184454","1329184527"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c2fbe805a868b46de340bc2e1d8e2430.jpg","text":"TemporaryFile(/tmp/multipartBody3459361496438099879asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962293875,"filename":"image_15012025_03_20_06_10467.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e6a0643303abd1b634866bd1bcb52049.jpg","text":"TemporaryFile(/tmp/multipartBody2597274561989512075asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962293875,"filename":"image_15012025_03_19_26_9343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0806181164b1c1c3d6e7e1c1cc9afc96.jpg","text":"TemporaryFile(/tmp/multipartBody435505437676231778asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962293875,"filename":"image_15012025_03_18_56_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/093c8a6b03cd3457bdcbc80ff64b3b5c.jpg","text":"TemporaryFile(/tmp/multipartBody3832441123406294317asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962293875,"filename":"image_15012025_03_20_56_10414.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/59c791174362cb2bbc9a91893134f38a.jpg","text":"TemporaryFile(/tmp/multipartBody3212872481014507641asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962293875,"filename":"image_15012025_03_19_56_9348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/eafc9907611cece8d7bc2f946ddfc77e.jpg","text":"TemporaryFile(/tmp/multipartBody4953431988269472385asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962293875,"filename":"image_15012025_03_18_36_9427.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329184241","file1":"1329184171","file0":"1329184116","file4":"1329184454","file5":"1329184527","file3":"1329184350"},"map_files_photo_id_array":[{"photo_id":"1329184527","filename":"file5"},{"photo_id":"1329184241","filename":"file2"},{"photo_id":"1329184454","filename":"file4"},{"photo_id":"1329184171","filename":"file1"},{"photo_id":"1329184116","filename":"file0"},{"photo_id":"1329184350","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329184454":["hashtag1","hashtag2"]},{"1329184241":["hashtag1","hashtag2"]},{"1329184171":["hashtag1","hashtag2"]},{"1329184527":["hashtag1","hashtag2"]},{"1329184350":["hashtag1","hashtag2"]},{"1329184116":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329184454, 1329184241, 1329184171, 1329184527, 1329184350, 1329184116)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 58.93054246902466 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 15 --only_old 0
2025-01-15 18:31:33.049316
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/21/image_15012025_03_21_46_10347.jpg', '/home/pi/Desktop/images/15012025/03/21/image_15012025_03_21_56_10404.jpg', '/home/pi/Desktop/images/15012025/03/21/image_15012025_03_22_06_9357.jpg', '/home/pi/Desktop/images/15012025/03/22/image_15012025_03_22_16_10476.jpg', '/home/pi/Desktop/images/15012025/03/22/image_15012025_03_22_27_10370.jpg', '/home/pi/Desktop/images/15012025/03/22/image_15012025_03_22_36_9328.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/21/image_15012025_03_21_46_10347.jpg
/home/pi/Desktop/images/15012025/03/21/image_15012025_03_21_56_10404.jpg
/home/pi/Desktop/images/15012025/03/21/image_15012025_03_22_06_9357.jpg
/home/pi/Desktop/images/15012025/03/22/image_15012025_03_22_16_10476.jpg
/home/pi/Desktop/images/15012025/03/22/image_15012025_03_22_27_10370.jpg
/home/pi/Desktop/images/15012025/03/22/image_15012025_03_22_36_9328.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329184649","1329184613","1329184735","1329184677","1329184626","1329184827"],"photo_ids_order":["1329184613","1329184626","1329184649","1329184677","1329184735","1329184827"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3929bb2deff638aa572a89a4cef1d0b0.jpg","text":"TemporaryFile(/tmp/multipartBody7502631938528657796asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962354058,"filename":"image_15012025_03_22_06_9357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5f854983cf37d4f9d36824df0f846f88.jpg","text":"TemporaryFile(/tmp/multipartBody8569373315389119914asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962354058,"filename":"image_15012025_03_21_46_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dc157d1965d3af5d7422ca39e4c5e255.jpg","text":"TemporaryFile(/tmp/multipartBody2060966302576893046asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962354058,"filename":"image_15012025_03_22_27_10370.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b834ed807a92e58cde6abd4a0018455e.jpg","text":"TemporaryFile(/tmp/multipartBody4478247760290112816asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962354058,"filename":"image_15012025_03_22_16_10476.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5c2e8b16d54d484708c37f4e73128880.jpg","text":"TemporaryFile(/tmp/multipartBody9155664268894876728asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962354058,"filename":"image_15012025_03_21_56_10404.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/afe887ed33f990b3c58c658b3a235381.jpg","text":"TemporaryFile(/tmp/multipartBody896951585515314256asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962354058,"filename":"image_15012025_03_22_36_9328.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329184649","file1":"1329184626","file0":"1329184613","file4":"1329184735","file5":"1329184827","file3":"1329184677"},"map_files_photo_id_array":[{"photo_id":"1329184827","filename":"file5"},{"photo_id":"1329184649","filename":"file2"},{"photo_id":"1329184735","filename":"file4"},{"photo_id":"1329184626","filename":"file1"},{"photo_id":"1329184613","filename":"file0"},{"photo_id":"1329184677","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329184649":["hashtag1","hashtag2"]},{"1329184613":["hashtag1","hashtag2"]},{"1329184735":["hashtag1","hashtag2"]},{"1329184677":["hashtag1","hashtag2"]},{"1329184626":["hashtag1","hashtag2"]},{"1329184827":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329184649, 1329184613, 1329184735, 1329184677, 1329184626, 1329184827)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 49.53835868835449 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 15 --only_old 0
2025-01-15 18:32:32.271480
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/22/image_15012025_03_22_46_10463.jpg', '/home/pi/Desktop/images/15012025/03/22/image_15012025_03_22_56_9350.jpg', '/home/pi/Desktop/images/15012025/03/22/image_15012025_03_23_06_10391.jpg', '/home/pi/Desktop/images/15012025/03/23/image_15012025_03_23_16_10384.jpg', '/home/pi/Desktop/images/15012025/03/23/image_15012025_03_23_26_9360.jpg', '/home/pi/Desktop/images/15012025/03/23/image_15012025_03_23_36_10460.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/22/image_15012025_03_22_46_10463.jpg
/home/pi/Desktop/images/15012025/03/22/image_15012025_03_22_56_9350.jpg
/home/pi/Desktop/images/15012025/03/22/image_15012025_03_23_06_10391.jpg
/home/pi/Desktop/images/15012025/03/23/image_15012025_03_23_16_10384.jpg
/home/pi/Desktop/images/15012025/03/23/image_15012025_03_23_26_9360.jpg
/home/pi/Desktop/images/15012025/03/23/image_15012025_03_23_36_10460.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329184990","1329184987","1329184992","1329184995","1329184968","1329184983"],"photo_ids_order":["1329184968","1329184983","1329184987","1329184990","1329184992","1329184995"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d4c75b63c5f8195d0175cb333e639004.jpg","text":"TemporaryFile(/tmp/multipartBody4161348494553885070asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962413285,"filename":"image_15012025_03_23_16_10384.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ca7ec69a8b4a3fbed15e8ed1e7bbd284.jpg","text":"TemporaryFile(/tmp/multipartBody3878272427617868602asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962413285,"filename":"image_15012025_03_23_06_10391.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/828e6a218946027ab2bd74748c53f42c.jpg","text":"TemporaryFile(/tmp/multipartBody7780575649352048617asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962413285,"filename":"image_15012025_03_23_26_9360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ce94b6aa75d6123df8aaddb939b4243a.jpg","text":"TemporaryFile(/tmp/multipartBody1774575999884783626asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962413285,"filename":"image_15012025_03_23_36_10460.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/524fb1f25a49ce16c2ef7d96b9c1d597.jpg","text":"TemporaryFile(/tmp/multipartBody5524726564333360876asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962413285,"filename":"image_15012025_03_22_46_10463.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c5b5f7a5545a4008d64710590560a1d5.jpg","text":"TemporaryFile(/tmp/multipartBody4574115035178481417asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962413285,"filename":"image_15012025_03_22_56_9350.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329184987","file1":"1329184983","file0":"1329184968","file4":"1329184992","file5":"1329184995","file3":"1329184990"},"map_files_photo_id_array":[{"photo_id":"1329184995","filename":"file5"},{"photo_id":"1329184987","filename":"file2"},{"photo_id":"1329184992","filename":"file4"},{"photo_id":"1329184983","filename":"file1"},{"photo_id":"1329184968","filename":"file0"},{"photo_id":"1329184990","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329184990":["hashtag1","hashtag2"]},{"1329184987":["hashtag1","hashtag2"]},{"1329184992":["hashtag1","hashtag2"]},{"1329184995":["hashtag1","hashtag2"]},{"1329184968":["hashtag1","hashtag2"]},{"1329184983":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329184990, 1329184987, 1329184992, 1329184995, 1329184968, 1329184983)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.408427476882935 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 15 --only_old 0
2025-01-15 18:33:32.461332
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/23/image_15012025_03_23_46_9329.jpg', '/home/pi/Desktop/images/15012025/03/23/image_15012025_03_23_56_10406.jpg', '/home/pi/Desktop/images/15012025/03/23/image_15012025_03_24_06_10352.jpg', '/home/pi/Desktop/images/15012025/03/24/image_15012025_03_24_16_9340.jpg', '/home/pi/Desktop/images/15012025/03/24/image_15012025_03_24_26_10443.jpg', '/home/pi/Desktop/images/15012025/03/25/image_15012025_03_25_46_10416.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/23/image_15012025_03_23_46_9329.jpg
/home/pi/Desktop/images/15012025/03/23/image_15012025_03_23_56_10406.jpg
/home/pi/Desktop/images/15012025/03/23/image_15012025_03_24_06_10352.jpg
/home/pi/Desktop/images/15012025/03/24/image_15012025_03_24_16_9340.jpg
/home/pi/Desktop/images/15012025/03/24/image_15012025_03_24_26_10443.jpg
/home/pi/Desktop/images/15012025/03/25/image_15012025_03_25_46_10416.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329185216","1329185204","1329185218","1329185212","1329185196","1329185208"],"photo_ids_order":["1329185196","1329185204","1329185208","1329185212","1329185216","1329185218"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bf3e9cabea1ef7de93bd5e5a4925d7ea.jpg","text":"TemporaryFile(/tmp/multipartBody5581533993749000193asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962473501,"filename":"image_15012025_03_24_26_10443.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a43c48ca3fb0f8d6c1fcb341f38cc642.jpg","text":"TemporaryFile(/tmp/multipartBody993672716959720123asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962473501,"filename":"image_15012025_03_23_56_10406.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d07f2e3a3b0ec67a1b5e2d5eb88df430.jpg","text":"TemporaryFile(/tmp/multipartBody8101256900360927706asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962473501,"filename":"image_15012025_03_25_46_10416.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fe4833fd9bb2473d1f56fad4889d2146.jpg","text":"TemporaryFile(/tmp/multipartBody271116389785981090asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962473501,"filename":"image_15012025_03_24_16_9340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/13a2aafcd3e6353ba71dc1beaa727baa.jpg","text":"TemporaryFile(/tmp/multipartBody4383234834786214837asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962473501,"filename":"image_15012025_03_23_46_9329.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b8f362028f71612892f6920033c200b2.jpg","text":"TemporaryFile(/tmp/multipartBody1243491273300840207asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962473501,"filename":"image_15012025_03_24_06_10352.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329185208","file1":"1329185204","file0":"1329185196","file4":"1329185216","file5":"1329185218","file3":"1329185212"},"map_files_photo_id_array":[{"photo_id":"1329185218","filename":"file5"},{"photo_id":"1329185208","filename":"file2"},{"photo_id":"1329185216","filename":"file4"},{"photo_id":"1329185204","filename":"file1"},{"photo_id":"1329185196","filename":"file0"},{"photo_id":"1329185212","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329185216":["hashtag1","hashtag2"]},{"1329185204":["hashtag1","hashtag2"]},{"1329185218":["hashtag1","hashtag2"]},{"1329185212":["hashtag1","hashtag2"]},{"1329185196":["hashtag1","hashtag2"]},{"1329185208":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329185216, 1329185204, 1329185218, 1329185212, 1329185196, 1329185208)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.6051139831543 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 15 --only_old 0
2025-01-15 18:34:32.720839
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/26/image_15012025_03_26_16_10355.jpg', '/home/pi/Desktop/images/15012025/03/26/image_15012025_03_26_36_10425.jpg', '/home/pi/Desktop/images/15012025/03/26/image_15012025_03_26_56_9536.jpg', '/home/pi/Desktop/images/15012025/03/26/image_15012025_03_27_07_10455.jpg', '/home/pi/Desktop/images/15012025/03/27/image_15012025_03_27_16_9353.jpg', '/home/pi/Desktop/images/15012025/03/27/image_15012025_03_27_26_10388.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/26/image_15012025_03_26_16_10355.jpg
/home/pi/Desktop/images/15012025/03/26/image_15012025_03_26_36_10425.jpg
/home/pi/Desktop/images/15012025/03/26/image_15012025_03_26_56_9536.jpg
/home/pi/Desktop/images/15012025/03/26/image_15012025_03_27_07_10455.jpg
/home/pi/Desktop/images/15012025/03/27/image_15012025_03_27_16_9353.jpg
/home/pi/Desktop/images/15012025/03/27/image_15012025_03_27_26_10388.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329185464","1329185533","1329185515","1329185529","1329185369","1329185522"],"photo_ids_order":["1329185369","1329185464","1329185515","1329185522","1329185529","1329185533"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5f7ba55186c73dbb0b57949aae51970c.jpg","text":"TemporaryFile(/tmp/multipartBody1962291644257228548asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962533742,"filename":"image_15012025_03_26_36_10425.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/418424dd323323eaa3114c9f818889bf.jpg","text":"TemporaryFile(/tmp/multipartBody7065927846921549965asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962533742,"filename":"image_15012025_03_27_26_10388.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/48cf190ec6a3475bf7657d9779ea6059.jpg","text":"TemporaryFile(/tmp/multipartBody7183679794136719412asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962533742,"filename":"image_15012025_03_26_56_9536.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9ce0282616bfd24d08115ca7442e970a.jpg","text":"TemporaryFile(/tmp/multipartBody7816319152341491234asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962533742,"filename":"image_15012025_03_27_16_9353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/01edaaf8a9109ec6062f0ea7d2e06563.jpg","text":"TemporaryFile(/tmp/multipartBody1586802191578237140asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962533742,"filename":"image_15012025_03_26_16_10355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cbf960126b50e4836034aecf6c41d90c.jpg","text":"TemporaryFile(/tmp/multipartBody7714782046303657911asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962533742,"filename":"image_15012025_03_27_07_10455.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329185515","file1":"1329185464","file0":"1329185369","file4":"1329185529","file5":"1329185533","file3":"1329185522"},"map_files_photo_id_array":[{"photo_id":"1329185533","filename":"file5"},{"photo_id":"1329185515","filename":"file2"},{"photo_id":"1329185529","filename":"file4"},{"photo_id":"1329185464","filename":"file1"},{"photo_id":"1329185369","filename":"file0"},{"photo_id":"1329185522","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329185464":["hashtag1","hashtag2"]},{"1329185533":["hashtag1","hashtag2"]},{"1329185515":["hashtag1","hashtag2"]},{"1329185529":["hashtag1","hashtag2"]},{"1329185369":["hashtag1","hashtag2"]},{"1329185522":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329185464, 1329185533, 1329185515, 1329185529, 1329185369, 1329185522)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.47110557556152 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 15 --only_old 0
2025-01-15 18:35:33.063001
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/27/image_15012025_03_27_36_9412.jpg', '/home/pi/Desktop/images/15012025/03/27/image_15012025_03_27_46_10401.jpg', '/home/pi/Desktop/images/15012025/03/27/image_15012025_03_27_56_10405.jpg', '/home/pi/Desktop/images/15012025/03/27/image_15012025_03_28_06_9347.jpg', '/home/pi/Desktop/images/15012025/03/28/image_15012025_03_28_16_10339.jpg', '/home/pi/Desktop/images/15012025/03/28/image_15012025_03_28_26_9353.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/27/image_15012025_03_27_36_9412.jpg
/home/pi/Desktop/images/15012025/03/27/image_15012025_03_27_46_10401.jpg
/home/pi/Desktop/images/15012025/03/27/image_15012025_03_27_56_10405.jpg
/home/pi/Desktop/images/15012025/03/27/image_15012025_03_28_06_9347.jpg
/home/pi/Desktop/images/15012025/03/28/image_15012025_03_28_16_10339.jpg
/home/pi/Desktop/images/15012025/03/28/image_15012025_03_28_26_9353.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329185606","1329185638","1329185586","1329185601","1329185579","1329185594"],"photo_ids_order":["1329185579","1329185586","1329185594","1329185601","1329185606","1329185638"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bd9d5fb2932781c02324f4bf93a0daa3.jpg","text":"TemporaryFile(/tmp/multipartBody8592379876991985725asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962594048,"filename":"image_15012025_03_28_16_10339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/15fedae0d2b4554644f3c48d672e8601.jpg","text":"TemporaryFile(/tmp/multipartBody6414493657715588013asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962594048,"filename":"image_15012025_03_28_26_9353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/55a27e79f66b7588e0db1952a090f49a.jpg","text":"TemporaryFile(/tmp/multipartBody2361917800241423714asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962594048,"filename":"image_15012025_03_27_46_10401.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f87dbfc6a85b32ac6f4756c5df708263.jpg","text":"TemporaryFile(/tmp/multipartBody8037212904400008840asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962594048,"filename":"image_15012025_03_28_06_9347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4d864fb5da5e421bfe67be62e88e9cd6.jpg","text":"TemporaryFile(/tmp/multipartBody2394881068287629410asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962594048,"filename":"image_15012025_03_27_36_9412.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/06844512a8e79e3b740b62f39bf19054.jpg","text":"TemporaryFile(/tmp/multipartBody6442166283813685718asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962594048,"filename":"image_15012025_03_27_56_10405.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329185594","file1":"1329185586","file0":"1329185579","file4":"1329185606","file5":"1329185638","file3":"1329185601"},"map_files_photo_id_array":[{"photo_id":"1329185638","filename":"file5"},{"photo_id":"1329185594","filename":"file2"},{"photo_id":"1329185606","filename":"file4"},{"photo_id":"1329185586","filename":"file1"},{"photo_id":"1329185579","filename":"file0"},{"photo_id":"1329185601","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329185606":["hashtag1","hashtag2"]},{"1329185638":["hashtag1","hashtag2"]},{"1329185586":["hashtag1","hashtag2"]},{"1329185601":["hashtag1","hashtag2"]},{"1329185579":["hashtag1","hashtag2"]},{"1329185594":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329185606, 1329185638, 1329185586, 1329185601, 1329185579, 1329185594)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.65034031867981 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 15 --only_old 0
2025-01-15 18:36:32.293828
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/28/image_15012025_03_28_36_10390.jpg', '/home/pi/Desktop/images/15012025/03/28/image_15012025_03_28_46_10371.jpg', '/home/pi/Desktop/images/15012025/03/28/image_15012025_03_28_56_9357.jpg', '/home/pi/Desktop/images/15012025/03/28/image_15012025_03_29_06_10477.jpg', '/home/pi/Desktop/images/15012025/03/29/image_15012025_03_29_16_10332.jpg', '/home/pi/Desktop/images/15012025/03/29/image_15012025_03_29_26_9350.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/28/image_15012025_03_28_36_10390.jpg
/home/pi/Desktop/images/15012025/03/28/image_15012025_03_28_46_10371.jpg
/home/pi/Desktop/images/15012025/03/28/image_15012025_03_28_56_9357.jpg
/home/pi/Desktop/images/15012025/03/28/image_15012025_03_29_06_10477.jpg
/home/pi/Desktop/images/15012025/03/29/image_15012025_03_29_16_10332.jpg
/home/pi/Desktop/images/15012025/03/29/image_15012025_03_29_26_9350.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329185876","1329185814","1329185808","1329185870","1329185864","1329185873"],"photo_ids_order":["1329185808","1329185814","1329185864","1329185870","1329185873","1329185876"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6ebe7a1448021119f196ca6b2a4fd5d9.jpg","text":"TemporaryFile(/tmp/multipartBody9189444662494721579asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962653321,"filename":"image_15012025_03_29_26_9350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1a96da8ebf0b0d60e4a66c3a1eba8bed.jpg","text":"TemporaryFile(/tmp/multipartBody4390437658371057922asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962653321,"filename":"image_15012025_03_28_46_10371.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/90af49375f8502153c422fb08b8b2e3b.jpg","text":"TemporaryFile(/tmp/multipartBody3522117655875306893asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962653321,"filename":"image_15012025_03_28_36_10390.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fea815f47b478d7763735d1c43ee80dc.jpg","text":"TemporaryFile(/tmp/multipartBody6649858389004532623asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962653321,"filename":"image_15012025_03_29_06_10477.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1dd9b34e19d085551c3e2046d25a234c.jpg","text":"TemporaryFile(/tmp/multipartBody3925439388913661394asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962653321,"filename":"image_15012025_03_28_56_9357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d71b437de4401cd75132c0d0efa0680b.jpg","text":"TemporaryFile(/tmp/multipartBody2872095712021826998asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962653321,"filename":"image_15012025_03_29_16_10332.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329185864","file1":"1329185814","file0":"1329185808","file4":"1329185873","file5":"1329185876","file3":"1329185870"},"map_files_photo_id_array":[{"photo_id":"1329185876","filename":"file5"},{"photo_id":"1329185864","filename":"file2"},{"photo_id":"1329185873","filename":"file4"},{"photo_id":"1329185814","filename":"file1"},{"photo_id":"1329185808","filename":"file0"},{"photo_id":"1329185870","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329185876":["hashtag1","hashtag2"]},{"1329185814":["hashtag1","hashtag2"]},{"1329185808":["hashtag1","hashtag2"]},{"1329185870":["hashtag1","hashtag2"]},{"1329185864":["hashtag1","hashtag2"]},{"1329185873":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329185876, 1329185814, 1329185808, 1329185870, 1329185864, 1329185873)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.7539176940918 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 15 --only_old 0
2025-01-15 18:37:32.527213
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/29/image_15012025_03_29_36_10359.jpg', '/home/pi/Desktop/images/15012025/03/29/image_15012025_03_29_47_10333.jpg', '/home/pi/Desktop/images/15012025/03/29/image_15012025_03_29_56_9344.jpg', '/home/pi/Desktop/images/15012025/03/29/image_15012025_03_30_06_10393.jpg', '/home/pi/Desktop/images/15012025/03/30/image_15012025_03_30_16_9397.jpg', '/home/pi/Desktop/images/15012025/03/30/image_15012025_03_30_26_10411.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/29/image_15012025_03_29_36_10359.jpg
/home/pi/Desktop/images/15012025/03/29/image_15012025_03_29_47_10333.jpg
/home/pi/Desktop/images/15012025/03/29/image_15012025_03_29_56_9344.jpg
/home/pi/Desktop/images/15012025/03/29/image_15012025_03_30_06_10393.jpg
/home/pi/Desktop/images/15012025/03/30/image_15012025_03_30_16_9397.jpg
/home/pi/Desktop/images/15012025/03/30/image_15012025_03_30_26_10411.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329185903","1329185920","1329185907","1329185912","1329185915","1329185900"],"photo_ids_order":["1329185900","1329185903","1329185907","1329185912","1329185915","1329185920"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d5e315e385b35a5cb91d3c79ebd79361.jpg","text":"TemporaryFile(/tmp/multipartBody6158559631638535002asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962713533,"filename":"image_15012025_03_29_47_10333.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/330e49f809c4720ed536ff65b7ae0d1b.jpg","text":"TemporaryFile(/tmp/multipartBody9129348929837015818asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962713533,"filename":"image_15012025_03_30_26_10411.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4f7fd633e38815880a3f3e1479fd56bd.jpg","text":"TemporaryFile(/tmp/multipartBody662698203524799973asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962713533,"filename":"image_15012025_03_29_56_9344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b2dd22ae97651d5fb36ea604d8bb59e3.jpg","text":"TemporaryFile(/tmp/multipartBody1715075513482246554asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962713533,"filename":"image_15012025_03_30_06_10393.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/649773a364e6a6147fee133008f1b3e0.jpg","text":"TemporaryFile(/tmp/multipartBody1195924215079628asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962713533,"filename":"image_15012025_03_30_16_9397.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f1e9aa6f0884c5aadd8444c13c4113cb.jpg","text":"TemporaryFile(/tmp/multipartBody8840031501137279721asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962713533,"filename":"image_15012025_03_29_36_10359.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329185907","file1":"1329185903","file0":"1329185900","file4":"1329185915","file5":"1329185920","file3":"1329185912"},"map_files_photo_id_array":[{"photo_id":"1329185920","filename":"file5"},{"photo_id":"1329185907","filename":"file2"},{"photo_id":"1329185915","filename":"file4"},{"photo_id":"1329185903","filename":"file1"},{"photo_id":"1329185900","filename":"file0"},{"photo_id":"1329185912","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329185903":["hashtag1","hashtag2"]},{"1329185920":["hashtag1","hashtag2"]},{"1329185907":["hashtag1","hashtag2"]},{"1329185912":["hashtag1","hashtag2"]},{"1329185915":["hashtag1","hashtag2"]},{"1329185900":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329185903, 1329185920, 1329185907, 1329185912, 1329185915, 1329185900)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.05513596534729 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 15 --only_old 0
2025-01-15 18:38:32.676992
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/30/image_15012025_03_30_36_10350.jpg', '/home/pi/Desktop/images/15012025/03/30/image_15012025_03_30_46_9352.jpg', '/home/pi/Desktop/images/15012025/03/31/image_15012025_03_31_16_9362.jpg', '/home/pi/Desktop/images/15012025/03/31/image_15012025_03_31_26_10371.jpg', '/home/pi/Desktop/images/15012025/03/31/image_15012025_03_31_36_9341.jpg', '/home/pi/Desktop/images/15012025/03/31/image_15012025_03_31_46_10357.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/30/image_15012025_03_30_36_10350.jpg
/home/pi/Desktop/images/15012025/03/30/image_15012025_03_30_46_9352.jpg
/home/pi/Desktop/images/15012025/03/31/image_15012025_03_31_16_9362.jpg
/home/pi/Desktop/images/15012025/03/31/image_15012025_03_31_26_10371.jpg
/home/pi/Desktop/images/15012025/03/31/image_15012025_03_31_36_9341.jpg
/home/pi/Desktop/images/15012025/03/31/image_15012025_03_31_46_10357.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329185956","1329185950","1329185955","1329185957","1329185942","1329185936"],"photo_ids_order":["1329185936","1329185942","1329185950","1329185955","1329185956","1329185957"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/01df59993b8dfc87cab6e512c85ff778.jpg","text":"TemporaryFile(/tmp/multipartBody8812202649770298175asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962773679,"filename":"image_15012025_03_31_36_9341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ab9313365d897b03327b9450e0677b18.jpg","text":"TemporaryFile(/tmp/multipartBody2109024188277579273asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962773679,"filename":"image_15012025_03_31_16_9362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/40e143b6bc772fa67bdfc11a5beb1e1c.jpg","text":"TemporaryFile(/tmp/multipartBody2446674974125373225asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962773679,"filename":"image_15012025_03_31_26_10371.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7ec3df5b59a12d20439c9de3524cd46e.jpg","text":"TemporaryFile(/tmp/multipartBody5229394669879836924asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962773679,"filename":"image_15012025_03_31_46_10357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7d2525b1f69fe9559744973ba732dfc4.jpg","text":"TemporaryFile(/tmp/multipartBody2484994367290171235asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962773679,"filename":"image_15012025_03_30_46_9352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/aca9e50917f4d97dab29a29e552a0835.jpg","text":"TemporaryFile(/tmp/multipartBody6918913101899561044asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962773679,"filename":"image_15012025_03_30_36_10350.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329185950","file1":"1329185942","file0":"1329185936","file4":"1329185956","file5":"1329185957","file3":"1329185955"},"map_files_photo_id_array":[{"photo_id":"1329185957","filename":"file5"},{"photo_id":"1329185950","filename":"file2"},{"photo_id":"1329185956","filename":"file4"},{"photo_id":"1329185942","filename":"file1"},{"photo_id":"1329185936","filename":"file0"},{"photo_id":"1329185955","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329185956":["hashtag1","hashtag2"]},{"1329185950":["hashtag1","hashtag2"]},{"1329185955":["hashtag1","hashtag2"]},{"1329185957":["hashtag1","hashtag2"]},{"1329185942":["hashtag1","hashtag2"]},{"1329185936":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329185956, 1329185950, 1329185955, 1329185957, 1329185942, 1329185936)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.24825835227966 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 15 --only_old 0
2025-01-15 18:39:32.942532
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/31/image_15012025_03_31_56_10359.jpg', '/home/pi/Desktop/images/15012025/03/31/image_15012025_03_32_06_9356.jpg', '/home/pi/Desktop/images/15012025/03/32/image_15012025_03_32_16_10406.jpg', '/home/pi/Desktop/images/15012025/03/32/image_15012025_03_32_26_10359.jpg', '/home/pi/Desktop/images/15012025/03/32/image_15012025_03_32_36_9343.jpg', '/home/pi/Desktop/images/15012025/03/32/image_15012025_03_32_46_10363.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/31/image_15012025_03_31_56_10359.jpg
/home/pi/Desktop/images/15012025/03/31/image_15012025_03_32_06_9356.jpg
/home/pi/Desktop/images/15012025/03/32/image_15012025_03_32_16_10406.jpg
/home/pi/Desktop/images/15012025/03/32/image_15012025_03_32_26_10359.jpg
/home/pi/Desktop/images/15012025/03/32/image_15012025_03_32_36_9343.jpg
/home/pi/Desktop/images/15012025/03/32/image_15012025_03_32_46_10363.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329185986","1329185979","1329186003","1329185993","1329186005","1329185998"],"photo_ids_order":["1329185979","1329185986","1329185993","1329185998","1329186003","1329186005"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7d570df026bcd5998877f9027846e6ba.jpg","text":"TemporaryFile(/tmp/multipartBody8336537062699152296asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962834071,"filename":"image_15012025_03_32_06_9356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4a38acdf286c32cd1b2bde339116b1ce.jpg","text":"TemporaryFile(/tmp/multipartBody5530186585867660256asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962834071,"filename":"image_15012025_03_31_56_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b4a63e83a84bcc4a7ffccee315edc3d6.jpg","text":"TemporaryFile(/tmp/multipartBody3010808173766411993asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962834071,"filename":"image_15012025_03_32_36_9343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4cedb0d0fdbe5c3bcfeb192848d02f55.jpg","text":"TemporaryFile(/tmp/multipartBody3510896260761705861asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962834071,"filename":"image_15012025_03_32_16_10406.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8cd3a6425ffe74529467e20309aab657.jpg","text":"TemporaryFile(/tmp/multipartBody2275614298575043305asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962834071,"filename":"image_15012025_03_32_46_10363.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/078f7b750e6c5fe66f5dcf012b06a589.jpg","text":"TemporaryFile(/tmp/multipartBody4018253136868388779asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962834071,"filename":"image_15012025_03_32_26_10359.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329185993","file1":"1329185986","file0":"1329185979","file4":"1329186003","file5":"1329186005","file3":"1329185998"},"map_files_photo_id_array":[{"photo_id":"1329186005","filename":"file5"},{"photo_id":"1329185993","filename":"file2"},{"photo_id":"1329186003","filename":"file4"},{"photo_id":"1329185986","filename":"file1"},{"photo_id":"1329185979","filename":"file0"},{"photo_id":"1329185998","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329185986":["hashtag1","hashtag2"]},{"1329185979":["hashtag1","hashtag2"]},{"1329186003":["hashtag1","hashtag2"]},{"1329185993":["hashtag1","hashtag2"]},{"1329186005":["hashtag1","hashtag2"]},{"1329185998":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329185986, 1329185979, 1329186003, 1329185993, 1329186005, 1329185998)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.39368438720703 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 15 --only_old 0
2025-01-15 18:40:32.550459
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/32/image_15012025_03_32_56_10380.jpg', '/home/pi/Desktop/images/15012025/03/32/image_15012025_03_33_06_9414.jpg', '/home/pi/Desktop/images/15012025/03/33/image_15012025_03_33_16_10464.jpg', '/home/pi/Desktop/images/15012025/03/33/image_15012025_03_33_26_9395.jpg', '/home/pi/Desktop/images/15012025/03/33/image_15012025_03_33_36_10377.jpg', '/home/pi/Desktop/images/15012025/03/33/image_15012025_03_33_47_10386.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/32/image_15012025_03_32_56_10380.jpg
/home/pi/Desktop/images/15012025/03/32/image_15012025_03_33_06_9414.jpg
/home/pi/Desktop/images/15012025/03/33/image_15012025_03_33_16_10464.jpg
/home/pi/Desktop/images/15012025/03/33/image_15012025_03_33_26_9395.jpg
/home/pi/Desktop/images/15012025/03/33/image_15012025_03_33_36_10377.jpg
/home/pi/Desktop/images/15012025/03/33/image_15012025_03_33_47_10386.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329186127","1329186327","1329186420","1329186216","1329186097","1329186512"],"photo_ids_order":["1329186097","1329186127","1329186216","1329186327","1329186420","1329186512"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b07c611ba991d0e935e185fb0251af61.jpg","text":"TemporaryFile(/tmp/multipartBody3213822477179342503asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962893575,"filename":"image_15012025_03_33_06_9414.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/836819a731c46e59b09178f26d929af0.jpg","text":"TemporaryFile(/tmp/multipartBody4364562376126827459asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962893575,"filename":"image_15012025_03_33_26_9395.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4003820c04e64630c6a49fe3834525a8.jpg","text":"TemporaryFile(/tmp/multipartBody3837623450450061896asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962893575,"filename":"image_15012025_03_33_36_10377.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/acf8cc77ae8d9522079f2d7466c2df64.jpg","text":"TemporaryFile(/tmp/multipartBody5019778556639937744asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962893575,"filename":"image_15012025_03_33_16_10464.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e8a4ebf447e54dae0e648e8cdbb3303a.jpg","text":"TemporaryFile(/tmp/multipartBody6685669094942854465asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962893575,"filename":"image_15012025_03_32_56_10380.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9c9048530e1d84db544b42a64775bae9.jpg","text":"TemporaryFile(/tmp/multipartBody9139827086811976864asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962893575,"filename":"image_15012025_03_33_47_10386.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329186216","file1":"1329186127","file0":"1329186097","file4":"1329186420","file5":"1329186512","file3":"1329186327"},"map_files_photo_id_array":[{"photo_id":"1329186512","filename":"file5"},{"photo_id":"1329186216","filename":"file2"},{"photo_id":"1329186420","filename":"file4"},{"photo_id":"1329186127","filename":"file1"},{"photo_id":"1329186097","filename":"file0"},{"photo_id":"1329186327","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329186127":["hashtag1","hashtag2"]},{"1329186327":["hashtag1","hashtag2"]},{"1329186420":["hashtag1","hashtag2"]},{"1329186216":["hashtag1","hashtag2"]},{"1329186097":["hashtag1","hashtag2"]},{"1329186512":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329186127, 1329186327, 1329186420, 1329186216, 1329186097, 1329186512)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 50.91568088531494 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 15 --only_old 0
2025-01-15 18:41:32.866890
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/33/image_15012025_03_33_56_9356.jpg', '/home/pi/Desktop/images/15012025/03/33/image_15012025_03_34_06_10423.jpg', '/home/pi/Desktop/images/15012025/03/34/image_15012025_03_34_16_9362.jpg', '/home/pi/Desktop/images/15012025/03/34/image_15012025_03_34_26_10398.jpg', '/home/pi/Desktop/images/15012025/03/34/image_15012025_03_34_46_9398.jpg', '/home/pi/Desktop/images/15012025/03/34/image_15012025_03_34_56_10382.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/33/image_15012025_03_33_56_9356.jpg
/home/pi/Desktop/images/15012025/03/33/image_15012025_03_34_06_10423.jpg
/home/pi/Desktop/images/15012025/03/34/image_15012025_03_34_16_9362.jpg
/home/pi/Desktop/images/15012025/03/34/image_15012025_03_34_26_10398.jpg
/home/pi/Desktop/images/15012025/03/34/image_15012025_03_34_46_9398.jpg
/home/pi/Desktop/images/15012025/03/34/image_15012025_03_34_56_10382.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6221926212310791 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
2025-01-15 18:41:42.828229
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/33/image_15012025_03_33_56_9356.jpg', '/home/pi/Desktop/images/15012025/03/33/image_15012025_03_34_06_10423.jpg', '/home/pi/Desktop/images/15012025/03/34/image_15012025_03_34_16_9362.jpg', '/home/pi/Desktop/images/15012025/03/34/image_15012025_03_34_26_10398.jpg', '/home/pi/Desktop/images/15012025/03/34/image_15012025_03_34_46_9398.jpg', '/home/pi/Desktop/images/15012025/03/34/image_15012025_03_34_56_10382.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/33/image_15012025_03_33_56_9356.jpg
/home/pi/Desktop/images/15012025/03/33/image_15012025_03_34_06_10423.jpg
/home/pi/Desktop/images/15012025/03/34/image_15012025_03_34_16_9362.jpg
/home/pi/Desktop/images/15012025/03/34/image_15012025_03_34_26_10398.jpg
/home/pi/Desktop/images/15012025/03/34/image_15012025_03_34_46_9398.jpg
/home/pi/Desktop/images/15012025/03/34/image_15012025_03_34_56_10382.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329187185","1329187149","1329187119","1329187193","1329186965","1329187156"],"photo_ids_order":["1329186965","1329187119","1329187149","1329187156","1329187185","1329187193"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7715081dce20ee483dbe2d54655a57f3.jpg","text":"TemporaryFile(/tmp/multipartBody2398583043792967228asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962963789,"filename":"image_15012025_03_34_46_9398.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/489c78b4ed6e26e26923821c9921f216.jpg","text":"TemporaryFile(/tmp/multipartBody6966568408909695041asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962963789,"filename":"image_15012025_03_34_16_9362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9de55da18dcadf7fdf6e7a8c6285ec35.jpg","text":"TemporaryFile(/tmp/multipartBody145994850835295563asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962963789,"filename":"image_15012025_03_34_06_10423.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9af62c54c3d924ac0ac572d71d0e0170.jpg","text":"TemporaryFile(/tmp/multipartBody4458772675940359728asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962963789,"filename":"image_15012025_03_34_56_10382.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f3cc5bf99f01182abd1dbd6ea0426902.jpg","text":"TemporaryFile(/tmp/multipartBody3159168881363802544asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962963789,"filename":"image_15012025_03_33_56_9356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2c24e083f02870e3a788dd90d15ce36e.jpg","text":"TemporaryFile(/tmp/multipartBody5197483901446091432asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736962963789,"filename":"image_15012025_03_34_26_10398.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329187149","file1":"1329187119","file0":"1329186965","file4":"1329187185","file5":"1329187193","file3":"1329187156"},"map_files_photo_id_array":[{"photo_id":"1329187193","filename":"file5"},{"photo_id":"1329187149","filename":"file2"},{"photo_id":"1329187185","filename":"file4"},{"photo_id":"1329187119","filename":"file1"},{"photo_id":"1329186965","filename":"file0"},{"photo_id":"1329187156","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329187185":["hashtag1","hashtag2"]},{"1329187149":["hashtag1","hashtag2"]},{"1329187119":["hashtag1","hashtag2"]},{"1329187193":["hashtag1","hashtag2"]},{"1329186965":["hashtag1","hashtag2"]},{"1329187156":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329187185, 1329187149, 1329187119, 1329187193, 1329186965, 1329187156)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.46842408180237 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 15 --only_old 0
2025-01-15 18:42:33.038660
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/34/image_15012025_03_35_06_9437.jpg', '/home/pi/Desktop/images/15012025/03/35/image_15012025_03_35_16_10387.jpg', '/home/pi/Desktop/images/15012025/03/35/image_15012025_03_35_26_10352.jpg', '/home/pi/Desktop/images/15012025/03/35/image_15012025_03_35_36_9401.jpg', '/home/pi/Desktop/images/15012025/03/35/image_15012025_03_35_46_10342.jpg', '/home/pi/Desktop/images/15012025/03/35/image_15012025_03_35_57_10355.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/34/image_15012025_03_35_06_9437.jpg
/home/pi/Desktop/images/15012025/03/35/image_15012025_03_35_16_10387.jpg
/home/pi/Desktop/images/15012025/03/35/image_15012025_03_35_26_10352.jpg
/home/pi/Desktop/images/15012025/03/35/image_15012025_03_35_36_9401.jpg
/home/pi/Desktop/images/15012025/03/35/image_15012025_03_35_46_10342.jpg
/home/pi/Desktop/images/15012025/03/35/image_15012025_03_35_57_10355.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329187222","1329187218","1329187209","1329187214","1329187226","1329187231"],"photo_ids_order":["1329187209","1329187214","1329187218","1329187222","1329187226","1329187231"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b8d46a4f6808fe65e230e31656d172f6.jpg","text":"TemporaryFile(/tmp/multipartBody6781649620596533327asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963014049,"filename":"image_15012025_03_35_36_9401.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4e5ce75e63b5e78d3a91b40e3ea9c344.jpg","text":"TemporaryFile(/tmp/multipartBody4591674294133167080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963014049,"filename":"image_15012025_03_35_26_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/80495c92d818b374a3eab6204bf49913.jpg","text":"TemporaryFile(/tmp/multipartBody8975585107474718612asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963014049,"filename":"image_15012025_03_35_06_9437.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d89cf398e13c46dd9d460881b2b8d58f.jpg","text":"TemporaryFile(/tmp/multipartBody8535261970121458463asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963014049,"filename":"image_15012025_03_35_16_10387.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7dffec4659964b269453bcef25d60c57.jpg","text":"TemporaryFile(/tmp/multipartBody2017275248471112883asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963014049,"filename":"image_15012025_03_35_46_10342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a75f6e21d2996eb3f657dc3848da4f65.jpg","text":"TemporaryFile(/tmp/multipartBody689745954525416960asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963014049,"filename":"image_15012025_03_35_57_10355.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329187218","file1":"1329187214","file0":"1329187209","file4":"1329187226","file5":"1329187231","file3":"1329187222"},"map_files_photo_id_array":[{"photo_id":"1329187231","filename":"file5"},{"photo_id":"1329187218","filename":"file2"},{"photo_id":"1329187226","filename":"file4"},{"photo_id":"1329187214","filename":"file1"},{"photo_id":"1329187209","filename":"file0"},{"photo_id":"1329187222","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329187222":["hashtag1","hashtag2"]},{"1329187218":["hashtag1","hashtag2"]},{"1329187209":["hashtag1","hashtag2"]},{"1329187214":["hashtag1","hashtag2"]},{"1329187226":["hashtag1","hashtag2"]},{"1329187231":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329187222, 1329187218, 1329187209, 1329187214, 1329187226, 1329187231)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.601284980773926 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 15 --only_old 0
2025-01-15 18:43:32.212077
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/35/image_15012025_03_36_06_9465.jpg', '/home/pi/Desktop/images/15012025/03/36/image_15012025_03_36_16_10365.jpg', '/home/pi/Desktop/images/15012025/03/36/image_15012025_03_36_26_9376.jpg', '/home/pi/Desktop/images/15012025/03/36/image_15012025_03_36_36_10365.jpg', '/home/pi/Desktop/images/15012025/03/36/image_15012025_03_36_56_9340.jpg', '/home/pi/Desktop/images/15012025/03/37/image_15012025_03_37_16_9366.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/35/image_15012025_03_36_06_9465.jpg
/home/pi/Desktop/images/15012025/03/36/image_15012025_03_36_16_10365.jpg
/home/pi/Desktop/images/15012025/03/36/image_15012025_03_36_26_9376.jpg
/home/pi/Desktop/images/15012025/03/36/image_15012025_03_36_36_10365.jpg
/home/pi/Desktop/images/15012025/03/36/image_15012025_03_36_56_9340.jpg
/home/pi/Desktop/images/15012025/03/37/image_15012025_03_37_16_9366.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329187464","1329187392","1329187275","1329187370","1329187265","1329187559"],"photo_ids_order":["1329187265","1329187275","1329187370","1329187392","1329187464","1329187559"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5dfbf8bc3b8b4a778ac5615166a6e0ea.jpg","text":"TemporaryFile(/tmp/multipartBody1659517329182157826asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963073214,"filename":"image_15012025_03_36_56_9340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/136adcf4992346a060487365e298c596.jpg","text":"TemporaryFile(/tmp/multipartBody1011491203278853632asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963073214,"filename":"image_15012025_03_36_36_10365.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/56d6f070f7ba9705eb7392fa7fc5b374.jpg","text":"TemporaryFile(/tmp/multipartBody8151768221170863665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963073214,"filename":"image_15012025_03_36_16_10365.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d184c8def427029094a2170fe1c95140.jpg","text":"TemporaryFile(/tmp/multipartBody7395902396223199034asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963073214,"filename":"image_15012025_03_36_26_9376.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/eed75a4af65f85f1e547bfe6efb05eef.jpg","text":"TemporaryFile(/tmp/multipartBody6755250612567283254asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963073214,"filename":"image_15012025_03_36_06_9465.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f04e9e839429dee28bd19a0adb8fbc3e.jpg","text":"TemporaryFile(/tmp/multipartBody5369133640969544620asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963073214,"filename":"image_15012025_03_37_16_9366.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329187370","file1":"1329187275","file0":"1329187265","file4":"1329187464","file5":"1329187559","file3":"1329187392"},"map_files_photo_id_array":[{"photo_id":"1329187559","filename":"file5"},{"photo_id":"1329187370","filename":"file2"},{"photo_id":"1329187464","filename":"file4"},{"photo_id":"1329187275","filename":"file1"},{"photo_id":"1329187265","filename":"file0"},{"photo_id":"1329187392","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329187464":["hashtag1","hashtag2"]},{"1329187392":["hashtag1","hashtag2"]},{"1329187275":["hashtag1","hashtag2"]},{"1329187370":["hashtag1","hashtag2"]},{"1329187265":["hashtag1","hashtag2"]},{"1329187559":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329187464, 1329187392, 1329187275, 1329187370, 1329187265, 1329187559)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 54.78232192993164 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 15 --only_old 0
2025-01-15 18:44:32.471783
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/37/image_15012025_03_37_26_10447.jpg', '/home/pi/Desktop/images/15012025/03/37/image_15012025_03_37_36_10343.jpg', '/home/pi/Desktop/images/15012025/03/37/image_15012025_03_37_46_9348.jpg', '/home/pi/Desktop/images/15012025/03/37/image_15012025_03_37_56_10456.jpg', '/home/pi/Desktop/images/15012025/03/37/image_15012025_03_38_06_9364.jpg', '/home/pi/Desktop/images/15012025/03/38/image_15012025_03_38_26_10474.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/37/image_15012025_03_37_26_10447.jpg
/home/pi/Desktop/images/15012025/03/37/image_15012025_03_37_36_10343.jpg
/home/pi/Desktop/images/15012025/03/37/image_15012025_03_37_46_9348.jpg
/home/pi/Desktop/images/15012025/03/37/image_15012025_03_37_56_10456.jpg
/home/pi/Desktop/images/15012025/03/37/image_15012025_03_38_06_9364.jpg
/home/pi/Desktop/images/15012025/03/38/image_15012025_03_38_26_10474.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329187794","1329187797","1329187725","1329187841","1329187733","1329187759"],"photo_ids_order":["1329187725","1329187733","1329187759","1329187794","1329187797","1329187841"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/85212cc969ac886fe60afb2d7fa589c0.jpg","text":"TemporaryFile(/tmp/multipartBody5883902595322288855asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963133487,"filename":"image_15012025_03_37_56_10456.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/71a20b6ea4b89d9136181613091f16e3.jpg","text":"TemporaryFile(/tmp/multipartBody2022815321036192163asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963133487,"filename":"image_15012025_03_38_06_9364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cab4827c332310b29766f4129fe8da25.jpg","text":"TemporaryFile(/tmp/multipartBody2670371827928280897asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963133487,"filename":"image_15012025_03_37_26_10447.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3b88e020a6213ec851b61f44adee9e84.jpg","text":"TemporaryFile(/tmp/multipartBody6317510846913329519asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963133487,"filename":"image_15012025_03_38_26_10474.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ebed533e153da660435b87c9255097c6.jpg","text":"TemporaryFile(/tmp/multipartBody2655854621159287287asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963133487,"filename":"image_15012025_03_37_36_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8c1d03b91db236979bb2b1ffff70ea53.jpg","text":"TemporaryFile(/tmp/multipartBody5977558031435470190asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963133487,"filename":"image_15012025_03_37_46_9348.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329187759","file1":"1329187733","file0":"1329187725","file4":"1329187797","file5":"1329187841","file3":"1329187794"},"map_files_photo_id_array":[{"photo_id":"1329187841","filename":"file5"},{"photo_id":"1329187759","filename":"file2"},{"photo_id":"1329187797","filename":"file4"},{"photo_id":"1329187733","filename":"file1"},{"photo_id":"1329187725","filename":"file0"},{"photo_id":"1329187794","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329187794":["hashtag1","hashtag2"]},{"1329187797":["hashtag1","hashtag2"]},{"1329187725":["hashtag1","hashtag2"]},{"1329187841":["hashtag1","hashtag2"]},{"1329187733":["hashtag1","hashtag2"]},{"1329187759":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329187794, 1329187797, 1329187725, 1329187841, 1329187733, 1329187759)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 50.91464805603027 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 15 --only_old 0
2025-01-15 18:45:32.826261
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/38/image_15012025_03_38_36_9330.jpg', '/home/pi/Desktop/images/15012025/03/38/image_15012025_03_38_46_10441.jpg', '/home/pi/Desktop/images/15012025/03/38/image_15012025_03_38_56_10355.jpg', '/home/pi/Desktop/images/15012025/03/38/image_15012025_03_39_06_9403.jpg', '/home/pi/Desktop/images/15012025/03/39/image_15012025_03_39_16_10522.jpg', '/home/pi/Desktop/images/15012025/03/39/image_15012025_03_39_36_10222.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/38/image_15012025_03_38_36_9330.jpg
/home/pi/Desktop/images/15012025/03/38/image_15012025_03_38_46_10441.jpg
/home/pi/Desktop/images/15012025/03/38/image_15012025_03_38_56_10355.jpg
/home/pi/Desktop/images/15012025/03/38/image_15012025_03_39_06_9403.jpg
/home/pi/Desktop/images/15012025/03/39/image_15012025_03_39_16_10522.jpg
/home/pi/Desktop/images/15012025/03/39/image_15012025_03_39_36_10222.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329187950","1329187979","1329187925","1329187910","1329188002","1329187998"],"photo_ids_order":["1329187910","1329187925","1329187950","1329187979","1329187998","1329188002"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/87cd65ca988c1acdf688b0f1ee7aea6e.jpg","text":"TemporaryFile(/tmp/multipartBody1921192366153382195asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963193831,"filename":"image_15012025_03_38_56_10355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e066df00bbaa4fa587df4c1a04997385.jpg","text":"TemporaryFile(/tmp/multipartBody4279637150780416944asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963193831,"filename":"image_15012025_03_39_06_9403.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/020578d918df23d8be97f0f675855ecb.jpg","text":"TemporaryFile(/tmp/multipartBody3244233724280867218asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963193831,"filename":"image_15012025_03_38_46_10441.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a53d48917d5f08006fba0480040d1f57.jpg","text":"TemporaryFile(/tmp/multipartBody464076053489695610asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963193831,"filename":"image_15012025_03_38_36_9330.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/48bfc89093a05df4b8982a1a96a45617.jpg","text":"TemporaryFile(/tmp/multipartBody7620823928949411704asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963193831,"filename":"image_15012025_03_39_36_10222.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e41e12833cc2693c9330cecc4af9d300.jpg","text":"TemporaryFile(/tmp/multipartBody6678700022794139493asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963193831,"filename":"image_15012025_03_39_16_10522.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329187950","file1":"1329187925","file0":"1329187910","file4":"1329187998","file5":"1329188002","file3":"1329187979"},"map_files_photo_id_array":[{"photo_id":"1329188002","filename":"file5"},{"photo_id":"1329187950","filename":"file2"},{"photo_id":"1329187998","filename":"file4"},{"photo_id":"1329187925","filename":"file1"},{"photo_id":"1329187910","filename":"file0"},{"photo_id":"1329187979","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329187950":["hashtag1","hashtag2"]},{"1329187979":["hashtag1","hashtag2"]},{"1329187925":["hashtag1","hashtag2"]},{"1329187910":["hashtag1","hashtag2"]},{"1329188002":["hashtag1","hashtag2"]},{"1329187998":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329187950, 1329187979, 1329187925, 1329187910, 1329188002, 1329187998)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 48.04769682884216 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 15 --only_old 0
2025-01-15 18:46:32.975067
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/39/image_15012025_03_40_06_10445.jpg', '/home/pi/Desktop/images/15012025/03/40/image_15012025_03_40_17_10406.jpg', '/home/pi/Desktop/images/15012025/03/40/image_15012025_03_40_26_9361.jpg', '/home/pi/Desktop/images/15012025/03/40/image_15012025_03_40_36_10431.jpg', '/home/pi/Desktop/images/15012025/03/40/image_15012025_03_40_56_10453.jpg', '/home/pi/Desktop/images/15012025/03/41/image_15012025_03_41_26_10390.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/39/image_15012025_03_40_06_10445.jpg
/home/pi/Desktop/images/15012025/03/40/image_15012025_03_40_17_10406.jpg
/home/pi/Desktop/images/15012025/03/40/image_15012025_03_40_26_9361.jpg
/home/pi/Desktop/images/15012025/03/40/image_15012025_03_40_36_10431.jpg
/home/pi/Desktop/images/15012025/03/40/image_15012025_03_40_56_10453.jpg
/home/pi/Desktop/images/15012025/03/41/image_15012025_03_41_26_10390.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329188055","1329188034","1329188022","1329188075","1329188087","1329188089"],"photo_ids_order":["1329188022","1329188034","1329188055","1329188075","1329188087","1329188089"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/56d6a11bef49a06052f7b2f8bccac135.jpg","text":"TemporaryFile(/tmp/multipartBody8967182500931998528asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963253994,"filename":"image_15012025_03_40_26_9361.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b2a321f6fac39620e57d5b222128702c.jpg","text":"TemporaryFile(/tmp/multipartBody4005709506812093664asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963253994,"filename":"image_15012025_03_40_17_10406.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f4fb064f9633d77bfb510ed308130bba.jpg","text":"TemporaryFile(/tmp/multipartBody7028511560517686765asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963253994,"filename":"image_15012025_03_40_06_10445.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/73b433d387b496eac43b9adb9d8d6b3c.jpg","text":"TemporaryFile(/tmp/multipartBody9104555323218773162asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963253994,"filename":"image_15012025_03_40_36_10431.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/be2f1720437a0f88bfdb7a36e66efa0d.jpg","text":"TemporaryFile(/tmp/multipartBody1559578478150187475asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963253994,"filename":"image_15012025_03_40_56_10453.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/84a143322dbc8e9dff5da6000c662f69.jpg","text":"TemporaryFile(/tmp/multipartBody868068386553172411asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963253994,"filename":"image_15012025_03_41_26_10390.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329188055","file1":"1329188034","file0":"1329188022","file4":"1329188087","file5":"1329188089","file3":"1329188075"},"map_files_photo_id_array":[{"photo_id":"1329188089","filename":"file5"},{"photo_id":"1329188055","filename":"file2"},{"photo_id":"1329188087","filename":"file4"},{"photo_id":"1329188034","filename":"file1"},{"photo_id":"1329188022","filename":"file0"},{"photo_id":"1329188075","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329188055":["hashtag1","hashtag2"]},{"1329188034":["hashtag1","hashtag2"]},{"1329188022":["hashtag1","hashtag2"]},{"1329188075":["hashtag1","hashtag2"]},{"1329188087":["hashtag1","hashtag2"]},{"1329188089":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329188055, 1329188034, 1329188022, 1329188075, 1329188087, 1329188089)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 53.483733892440796 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 15 --only_old 0
2025-01-15 18:47:32.303431
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/41/image_15012025_03_41_36_9364.jpg', '/home/pi/Desktop/images/15012025/03/41/image_15012025_03_41_46_10404.jpg', '/home/pi/Desktop/images/15012025/03/41/image_15012025_03_41_56_10419.jpg', '/home/pi/Desktop/images/15012025/03/41/image_15012025_03_42_06_9427.jpg', '/home/pi/Desktop/images/15012025/03/42/image_15012025_03_42_16_10423.jpg', '/home/pi/Desktop/images/15012025/03/42/image_15012025_03_42_26_9356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/41/image_15012025_03_41_36_9364.jpg
/home/pi/Desktop/images/15012025/03/41/image_15012025_03_41_46_10404.jpg
/home/pi/Desktop/images/15012025/03/41/image_15012025_03_41_56_10419.jpg
/home/pi/Desktop/images/15012025/03/41/image_15012025_03_42_06_9427.jpg
/home/pi/Desktop/images/15012025/03/42/image_15012025_03_42_16_10423.jpg
/home/pi/Desktop/images/15012025/03/42/image_15012025_03_42_26_9356.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329188168","1329188126","1329188122","1329188110","1329188104","1329188116"],"photo_ids_order":["1329188104","1329188110","1329188116","1329188122","1329188126","1329188168"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c6310bfc6f6149f8e7070a46f158dd88.jpg","text":"TemporaryFile(/tmp/multipartBody1422256324151936522asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963313312,"filename":"image_15012025_03_42_26_9356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6158858e780e2dd7a40b87cb21dfd259.jpg","text":"TemporaryFile(/tmp/multipartBody7788847359846721999asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963313312,"filename":"image_15012025_03_42_16_10423.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c44268dc09c07868a67845cf301b74a2.jpg","text":"TemporaryFile(/tmp/multipartBody5890409766463377383asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963313312,"filename":"image_15012025_03_42_06_9427.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/447a42fa0aeb9f58bb42cf068378468b.jpg","text":"TemporaryFile(/tmp/multipartBody5191587721091496335asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963313312,"filename":"image_15012025_03_41_46_10404.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fb5eadd966a8029ce0b3738f12ffb994.jpg","text":"TemporaryFile(/tmp/multipartBody8558302842296110268asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963313312,"filename":"image_15012025_03_41_36_9364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ea4e672c22a6b02cb33b7e061334fd2c.jpg","text":"TemporaryFile(/tmp/multipartBody741334241429629395asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963313312,"filename":"image_15012025_03_41_56_10419.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329188116","file1":"1329188110","file0":"1329188104","file4":"1329188126","file5":"1329188168","file3":"1329188122"},"map_files_photo_id_array":[{"photo_id":"1329188168","filename":"file5"},{"photo_id":"1329188116","filename":"file2"},{"photo_id":"1329188126","filename":"file4"},{"photo_id":"1329188110","filename":"file1"},{"photo_id":"1329188104","filename":"file0"},{"photo_id":"1329188122","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329188168":["hashtag1","hashtag2"]},{"1329188126":["hashtag1","hashtag2"]},{"1329188122":["hashtag1","hashtag2"]},{"1329188110":["hashtag1","hashtag2"]},{"1329188104":["hashtag1","hashtag2"]},{"1329188116":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329188168, 1329188126, 1329188122, 1329188110, 1329188104, 1329188116)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.871809244155884 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 15 --only_old 0
2025-01-15 18:48:32.463385
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/42/image_15012025_03_42_36_10435.jpg', '/home/pi/Desktop/images/15012025/03/42/image_15012025_03_42_46_10350.jpg', '/home/pi/Desktop/images/15012025/03/42/image_15012025_03_42_56_9358.jpg', '/home/pi/Desktop/images/15012025/03/42/image_15012025_03_43_06_10438.jpg', '/home/pi/Desktop/images/15012025/03/43/image_15012025_03_43_16_9399.jpg', '/home/pi/Desktop/images/15012025/03/43/image_15012025_03_43_26_10462.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/42/image_15012025_03_42_36_10435.jpg
/home/pi/Desktop/images/15012025/03/42/image_15012025_03_42_46_10350.jpg
/home/pi/Desktop/images/15012025/03/42/image_15012025_03_42_56_9358.jpg
/home/pi/Desktop/images/15012025/03/42/image_15012025_03_43_06_10438.jpg
/home/pi/Desktop/images/15012025/03/43/image_15012025_03_43_16_9399.jpg
/home/pi/Desktop/images/15012025/03/43/image_15012025_03_43_26_10462.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329188223","1329188216","1329188248","1329188245","1329188230","1329188206"],"photo_ids_order":["1329188206","1329188216","1329188223","1329188230","1329188245","1329188248"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2498d1e4f79818652e9ce45481cadd30.jpg","text":"TemporaryFile(/tmp/multipartBody5588443532228689368asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963373506,"filename":"image_15012025_03_42_56_9358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0131d7931d971577816c4f54564e28e6.jpg","text":"TemporaryFile(/tmp/multipartBody4951320175896412004asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963373506,"filename":"image_15012025_03_42_46_10350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a220f24113f57b68edfb7b8bc47b9217.jpg","text":"TemporaryFile(/tmp/multipartBody1597186040332602078asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963373506,"filename":"image_15012025_03_43_26_10462.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9bb53b904a9d284f8871bae5a99cd4e0.jpg","text":"TemporaryFile(/tmp/multipartBody4608675664119175635asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963373506,"filename":"image_15012025_03_43_16_9399.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/28a026e67ec56ff5bcc841de077f5e71.jpg","text":"TemporaryFile(/tmp/multipartBody4186463977953177552asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963373506,"filename":"image_15012025_03_43_06_10438.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6be9f4e1406c818089eeb83950a555f0.jpg","text":"TemporaryFile(/tmp/multipartBody3826104583221078376asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963373506,"filename":"image_15012025_03_42_36_10435.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329188223","file1":"1329188216","file0":"1329188206","file4":"1329188245","file5":"1329188248","file3":"1329188230"},"map_files_photo_id_array":[{"photo_id":"1329188248","filename":"file5"},{"photo_id":"1329188223","filename":"file2"},{"photo_id":"1329188245","filename":"file4"},{"photo_id":"1329188216","filename":"file1"},{"photo_id":"1329188206","filename":"file0"},{"photo_id":"1329188230","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329188223":["hashtag1","hashtag2"]},{"1329188216":["hashtag1","hashtag2"]},{"1329188248":["hashtag1","hashtag2"]},{"1329188245":["hashtag1","hashtag2"]},{"1329188230":["hashtag1","hashtag2"]},{"1329188206":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329188223, 1329188216, 1329188248, 1329188245, 1329188230, 1329188206)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.21021294593811 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 15 --only_old 0
2025-01-15 18:49:32.770003
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/43/image_15012025_03_43_36_10341.jpg', '/home/pi/Desktop/images/15012025/03/43/image_15012025_03_43_46_9491.jpg', '/home/pi/Desktop/images/15012025/03/43/image_15012025_03_43_56_10354.jpg', '/home/pi/Desktop/images/15012025/03/43/image_15012025_03_44_06_9347.jpg', '/home/pi/Desktop/images/15012025/03/44/image_15012025_03_44_16_10408.jpg', '/home/pi/Desktop/images/15012025/03/44/image_15012025_03_44_26_10373.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/43/image_15012025_03_43_36_10341.jpg
/home/pi/Desktop/images/15012025/03/43/image_15012025_03_43_46_9491.jpg
/home/pi/Desktop/images/15012025/03/43/image_15012025_03_43_56_10354.jpg
/home/pi/Desktop/images/15012025/03/43/image_15012025_03_44_06_9347.jpg
/home/pi/Desktop/images/15012025/03/44/image_15012025_03_44_16_10408.jpg
/home/pi/Desktop/images/15012025/03/44/image_15012025_03_44_26_10373.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329188294","1329188297","1329188276","1329188284","1329188269","1329188292"],"photo_ids_order":["1329188269","1329188276","1329188284","1329188292","1329188294","1329188297"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a8522babf84fb9184d43b347525b841a.jpg","text":"TemporaryFile(/tmp/multipartBody4013541833544103990asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963433772,"filename":"image_15012025_03_44_16_10408.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b511cb8bad674809e174d18379ac3357.jpg","text":"TemporaryFile(/tmp/multipartBody7017825373646545272asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963433772,"filename":"image_15012025_03_44_26_10373.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2ab04e618d107da39f929c616f08d394.jpg","text":"TemporaryFile(/tmp/multipartBody6954636450390430698asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963433772,"filename":"image_15012025_03_43_46_9491.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/92b7e644f3b5cb1cfc7fa3260604c032.jpg","text":"TemporaryFile(/tmp/multipartBody2032678368870474547asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963433772,"filename":"image_15012025_03_43_56_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/19137a040e8587b7bb8a75b024bfd7bc.jpg","text":"TemporaryFile(/tmp/multipartBody7687519317033579960asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963433772,"filename":"image_15012025_03_43_36_10341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c79e8a648de9d43cb1c41d9d8df528fd.jpg","text":"TemporaryFile(/tmp/multipartBody3562269720477132981asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963433772,"filename":"image_15012025_03_44_06_9347.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329188284","file1":"1329188276","file0":"1329188269","file4":"1329188294","file5":"1329188297","file3":"1329188292"},"map_files_photo_id_array":[{"photo_id":"1329188297","filename":"file5"},{"photo_id":"1329188284","filename":"file2"},{"photo_id":"1329188294","filename":"file4"},{"photo_id":"1329188276","filename":"file1"},{"photo_id":"1329188269","filename":"file0"},{"photo_id":"1329188292","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329188294":["hashtag1","hashtag2"]},{"1329188297":["hashtag1","hashtag2"]},{"1329188276":["hashtag1","hashtag2"]},{"1329188284":["hashtag1","hashtag2"]},{"1329188269":["hashtag1","hashtag2"]},{"1329188292":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329188294, 1329188297, 1329188276, 1329188284, 1329188269, 1329188292)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.81640863418579 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 15 --only_old 0
2025-01-15 18:50:32.928804
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/44/image_15012025_03_44_36_9327.jpg', '/home/pi/Desktop/images/15012025/03/44/image_15012025_03_44_46_10421.jpg', '/home/pi/Desktop/images/15012025/03/44/image_15012025_03_44_56_10353.jpg', '/home/pi/Desktop/images/15012025/03/44/image_15012025_03_45_06_9385.jpg', '/home/pi/Desktop/images/15012025/03/45/image_15012025_03_45_16_10447.jpg', '/home/pi/Desktop/images/15012025/03/45/image_15012025_03_45_36_10439.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/44/image_15012025_03_44_36_9327.jpg
/home/pi/Desktop/images/15012025/03/44/image_15012025_03_44_46_10421.jpg
/home/pi/Desktop/images/15012025/03/44/image_15012025_03_44_56_10353.jpg
/home/pi/Desktop/images/15012025/03/44/image_15012025_03_45_06_9385.jpg
/home/pi/Desktop/images/15012025/03/45/image_15012025_03_45_16_10447.jpg
/home/pi/Desktop/images/15012025/03/45/image_15012025_03_45_36_10439.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329188400","1329188444","1329188432","1329188426","1329188446","1329188413"],"photo_ids_order":["1329188400","1329188413","1329188426","1329188432","1329188444","1329188446"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e7a7f5f2bffc948f812debaa4bf3720e.jpg","text":"TemporaryFile(/tmp/multipartBody8826477512300857825asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963493965,"filename":"image_15012025_03_44_36_9327.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dba0198d282685a67185ec6cd60982fe.jpg","text":"TemporaryFile(/tmp/multipartBody3863522350348746814asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963493965,"filename":"image_15012025_03_45_16_10447.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6465e558c7afa4f145878151e204376a.jpg","text":"TemporaryFile(/tmp/multipartBody5891806145252580219asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963493965,"filename":"image_15012025_03_45_06_9385.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f11abbfa76efd6d1104352df78cb8a1c.jpg","text":"TemporaryFile(/tmp/multipartBody3492586354292676970asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963493965,"filename":"image_15012025_03_44_56_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/97d57b3f2a1b8ec76bb46be9379ea0c0.jpg","text":"TemporaryFile(/tmp/multipartBody4204692231267166364asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963493965,"filename":"image_15012025_03_45_36_10439.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4151b5204ae4f67b68f254e63227d917.jpg","text":"TemporaryFile(/tmp/multipartBody2652240067381362892asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963493965,"filename":"image_15012025_03_44_46_10421.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329188426","file1":"1329188413","file0":"1329188400","file4":"1329188444","file5":"1329188446","file3":"1329188432"},"map_files_photo_id_array":[{"photo_id":"1329188446","filename":"file5"},{"photo_id":"1329188426","filename":"file2"},{"photo_id":"1329188444","filename":"file4"},{"photo_id":"1329188413","filename":"file1"},{"photo_id":"1329188400","filename":"file0"},{"photo_id":"1329188432","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329188400":["hashtag1","hashtag2"]},{"1329188444":["hashtag1","hashtag2"]},{"1329188432":["hashtag1","hashtag2"]},{"1329188426":["hashtag1","hashtag2"]},{"1329188446":["hashtag1","hashtag2"]},{"1329188413":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329188400, 1329188444, 1329188432, 1329188426, 1329188446, 1329188413)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.75214886665344 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 15 --only_old 0
2025-01-15 18:51:33.100863
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/45/image_15012025_03_45_46_10359.jpg', '/home/pi/Desktop/images/15012025/03/45/image_15012025_03_45_56_9390.jpg', '/home/pi/Desktop/images/15012025/03/45/image_15012025_03_46_06_10395.jpg', '/home/pi/Desktop/images/15012025/03/46/image_15012025_03_46_26_10381.jpg', '/home/pi/Desktop/images/15012025/03/46/image_15012025_03_46_36_10335.jpg', '/home/pi/Desktop/images/15012025/03/46/image_15012025_03_46_46_9338.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/45/image_15012025_03_45_46_10359.jpg
/home/pi/Desktop/images/15012025/03/45/image_15012025_03_45_56_9390.jpg
/home/pi/Desktop/images/15012025/03/45/image_15012025_03_46_06_10395.jpg
/home/pi/Desktop/images/15012025/03/46/image_15012025_03_46_26_10381.jpg
/home/pi/Desktop/images/15012025/03/46/image_15012025_03_46_36_10335.jpg
/home/pi/Desktop/images/15012025/03/46/image_15012025_03_46_46_9338.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.5948805809020996 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
2025-01-15 18:51:43.050143
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/45/image_15012025_03_45_46_10359.jpg', '/home/pi/Desktop/images/15012025/03/45/image_15012025_03_45_56_9390.jpg', '/home/pi/Desktop/images/15012025/03/45/image_15012025_03_46_06_10395.jpg', '/home/pi/Desktop/images/15012025/03/46/image_15012025_03_46_26_10381.jpg', '/home/pi/Desktop/images/15012025/03/46/image_15012025_03_46_36_10335.jpg', '/home/pi/Desktop/images/15012025/03/46/image_15012025_03_46_46_9338.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/45/image_15012025_03_45_46_10359.jpg
/home/pi/Desktop/images/15012025/03/45/image_15012025_03_45_56_9390.jpg
/home/pi/Desktop/images/15012025/03/45/image_15012025_03_46_06_10395.jpg
/home/pi/Desktop/images/15012025/03/46/image_15012025_03_46_26_10381.jpg
/home/pi/Desktop/images/15012025/03/46/image_15012025_03_46_36_10335.jpg
/home/pi/Desktop/images/15012025/03/46/image_15012025_03_46_46_9338.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329188471","1329188495","1329188477","1329188485","1329188481","1329188490"],"photo_ids_order":["1329188471","1329188477","1329188481","1329188485","1329188490","1329188495"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/affe540878b0bdd71131e71e4b9ccd2f.jpg","text":"TemporaryFile(/tmp/multipartBody93990724903852044asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963563988,"filename":"image_15012025_03_45_46_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/01dac556ddec319a366424ce50b5ef47.jpg","text":"TemporaryFile(/tmp/multipartBody8035227224619264099asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963563988,"filename":"image_15012025_03_46_46_9338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9e09071c75cf7ee7ad496c5b5af2d084.jpg","text":"TemporaryFile(/tmp/multipartBody6672037549130504982asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963563988,"filename":"image_15012025_03_45_56_9390.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7629a965e203e75e25fdfa71341dce48.jpg","text":"TemporaryFile(/tmp/multipartBody5240098046051550884asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963563988,"filename":"image_15012025_03_46_26_10381.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/de2f4c721ff80a197033c44d587df248.jpg","text":"TemporaryFile(/tmp/multipartBody7091888162133205983asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963563988,"filename":"image_15012025_03_46_06_10395.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/37ce40efaeb503d90b3f9c0cd520a4c4.jpg","text":"TemporaryFile(/tmp/multipartBody1439334356885964039asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963563988,"filename":"image_15012025_03_46_36_10335.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329188481","file1":"1329188477","file0":"1329188471","file4":"1329188490","file5":"1329188495","file3":"1329188485"},"map_files_photo_id_array":[{"photo_id":"1329188495","filename":"file5"},{"photo_id":"1329188481","filename":"file2"},{"photo_id":"1329188490","filename":"file4"},{"photo_id":"1329188477","filename":"file1"},{"photo_id":"1329188471","filename":"file0"},{"photo_id":"1329188485","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329188471":["hashtag1","hashtag2"]},{"1329188495":["hashtag1","hashtag2"]},{"1329188477":["hashtag1","hashtag2"]},{"1329188485":["hashtag1","hashtag2"]},{"1329188481":["hashtag1","hashtag2"]},{"1329188490":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329188471, 1329188495, 1329188477, 1329188485, 1329188481, 1329188490)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.13173246383667 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 15 --only_old 0
2025-01-15 18:52:32.218653
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/46/image_15012025_03_47_07_10390.jpg', '/home/pi/Desktop/images/15012025/03/47/image_15012025_03_47_16_9337.jpg', '/home/pi/Desktop/images/15012025/03/47/image_15012025_03_47_26_10457.jpg', '/home/pi/Desktop/images/15012025/03/47/image_15012025_03_47_36_9380.jpg', '/home/pi/Desktop/images/15012025/03/47/image_15012025_03_47_46_10401.jpg', '/home/pi/Desktop/images/15012025/03/47/image_15012025_03_47_57_10411.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/46/image_15012025_03_47_07_10390.jpg
/home/pi/Desktop/images/15012025/03/47/image_15012025_03_47_16_9337.jpg
/home/pi/Desktop/images/15012025/03/47/image_15012025_03_47_26_10457.jpg
/home/pi/Desktop/images/15012025/03/47/image_15012025_03_47_36_9380.jpg
/home/pi/Desktop/images/15012025/03/47/image_15012025_03_47_46_10401.jpg
/home/pi/Desktop/images/15012025/03/47/image_15012025_03_47_57_10411.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329189392","1329189404","1329189382","1329189399","1329189387","1329189396"],"photo_ids_order":["1329189382","1329189387","1329189392","1329189396","1329189399","1329189404"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bcfc556c90a08630a63b0a6496073b76.jpg","text":"TemporaryFile(/tmp/multipartBody8679622939037064267asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963613250,"filename":"image_15012025_03_47_26_10457.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8288327eb180272e2432f922d84a282e.jpg","text":"TemporaryFile(/tmp/multipartBody7155092920965317873asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963613250,"filename":"image_15012025_03_47_57_10411.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5bfeba21dcee4f1f1e1e6862b741b876.jpg","text":"TemporaryFile(/tmp/multipartBody8423251098450918136asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963613250,"filename":"image_15012025_03_47_07_10390.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ebc357f6a802dd90cbb939ed9a966481.jpg","text":"TemporaryFile(/tmp/multipartBody3873800193812112975asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963613250,"filename":"image_15012025_03_47_46_10401.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f94fc5f600f4e3441a3dba82c446ce46.jpg","text":"TemporaryFile(/tmp/multipartBody5019824947111383580asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963613250,"filename":"image_15012025_03_47_16_9337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f98a3fa2a7dfd39e9698e4a4f2795246.jpg","text":"TemporaryFile(/tmp/multipartBody4136133546166022129asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963613250,"filename":"image_15012025_03_47_36_9380.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329189392","file1":"1329189387","file0":"1329189382","file4":"1329189399","file5":"1329189404","file3":"1329189396"},"map_files_photo_id_array":[{"photo_id":"1329189404","filename":"file5"},{"photo_id":"1329189392","filename":"file2"},{"photo_id":"1329189399","filename":"file4"},{"photo_id":"1329189387","filename":"file1"},{"photo_id":"1329189382","filename":"file0"},{"photo_id":"1329189396","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329189392":["hashtag1","hashtag2"]},{"1329189404":["hashtag1","hashtag2"]},{"1329189382":["hashtag1","hashtag2"]},{"1329189399":["hashtag1","hashtag2"]},{"1329189387":["hashtag1","hashtag2"]},{"1329189396":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329189392, 1329189404, 1329189382, 1329189399, 1329189387, 1329189396)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.564860343933105 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 15 --only_old 0
2025-01-15 18:53:32.455231
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/47/image_15012025_03_48_06_9469.jpg', '/home/pi/Desktop/images/15012025/03/48/image_15012025_03_48_16_10423.jpg', '/home/pi/Desktop/images/15012025/03/48/image_15012025_03_48_26_9372.jpg', '/home/pi/Desktop/images/15012025/03/48/image_15012025_03_48_36_10359.jpg', '/home/pi/Desktop/images/15012025/03/48/image_15012025_03_48_47_10368.jpg', '/home/pi/Desktop/images/15012025/03/48/image_15012025_03_48_56_9424.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/47/image_15012025_03_48_06_9469.jpg
/home/pi/Desktop/images/15012025/03/48/image_15012025_03_48_16_10423.jpg
/home/pi/Desktop/images/15012025/03/48/image_15012025_03_48_26_9372.jpg
/home/pi/Desktop/images/15012025/03/48/image_15012025_03_48_36_10359.jpg
/home/pi/Desktop/images/15012025/03/48/image_15012025_03_48_47_10368.jpg
/home/pi/Desktop/images/15012025/03/48/image_15012025_03_48_56_9424.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329189746","1329189688","1329189643","1329189741","1329189729","1329189615"],"photo_ids_order":["1329189615","1329189643","1329189688","1329189729","1329189741","1329189746"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bc816eca2887531ccf2e6de237741d29.jpg","text":"TemporaryFile(/tmp/multipartBody3720396361081311248asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963673474,"filename":"image_15012025_03_48_56_9424.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1fdb74a00b6b955ae87096888fc42a89.jpg","text":"TemporaryFile(/tmp/multipartBody118677994604507492asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963673474,"filename":"image_15012025_03_48_26_9372.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/53f382e0c93f495b118a828a26ddb411.jpg","text":"TemporaryFile(/tmp/multipartBody6710663734760725698asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963673474,"filename":"image_15012025_03_48_16_10423.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f862d215de0e051eba31eefeff09a8a4.jpg","text":"TemporaryFile(/tmp/multipartBody7648347382219861495asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963673474,"filename":"image_15012025_03_48_47_10368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/770e5a887417c04603a249df8cf6cc8c.jpg","text":"TemporaryFile(/tmp/multipartBody581750276697446035asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963673474,"filename":"image_15012025_03_48_36_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2236d08cb932f7ccdb45faf6bb9e589b.jpg","text":"TemporaryFile(/tmp/multipartBody3975351063939087084asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963673474,"filename":"image_15012025_03_48_06_9469.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329189688","file1":"1329189643","file0":"1329189615","file4":"1329189741","file5":"1329189746","file3":"1329189729"},"map_files_photo_id_array":[{"photo_id":"1329189746","filename":"file5"},{"photo_id":"1329189688","filename":"file2"},{"photo_id":"1329189741","filename":"file4"},{"photo_id":"1329189643","filename":"file1"},{"photo_id":"1329189615","filename":"file0"},{"photo_id":"1329189729","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329189746":["hashtag1","hashtag2"]},{"1329189688":["hashtag1","hashtag2"]},{"1329189643":["hashtag1","hashtag2"]},{"1329189741":["hashtag1","hashtag2"]},{"1329189729":["hashtag1","hashtag2"]},{"1329189615":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329189746, 1329189688, 1329189643, 1329189741, 1329189729, 1329189615)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.365984201431274 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 15 --only_old 0
2025-01-15 18:54:32.639487
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/48/image_15012025_03_49_06_10376.jpg', '/home/pi/Desktop/images/15012025/03/49/image_15012025_03_49_16_9365.jpg', '/home/pi/Desktop/images/15012025/03/49/image_15012025_03_49_26_10435.jpg', '/home/pi/Desktop/images/15012025/03/49/image_15012025_03_49_36_10354.jpg', '/home/pi/Desktop/images/15012025/03/49/image_15012025_03_49_46_9337.jpg', '/home/pi/Desktop/images/15012025/03/49/image_15012025_03_49_56_10343.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/48/image_15012025_03_49_06_10376.jpg
/home/pi/Desktop/images/15012025/03/49/image_15012025_03_49_16_9365.jpg
/home/pi/Desktop/images/15012025/03/49/image_15012025_03_49_26_10435.jpg
/home/pi/Desktop/images/15012025/03/49/image_15012025_03_49_36_10354.jpg
/home/pi/Desktop/images/15012025/03/49/image_15012025_03_49_46_9337.jpg
/home/pi/Desktop/images/15012025/03/49/image_15012025_03_49_56_10343.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329189772","1329189861","1329189777","1329190108","1329190105","1329190098"],"photo_ids_order":["1329189772","1329189777","1329189861","1329190098","1329190105","1329190108"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9f57c328d1e2f80bb067895623d61414.jpg","text":"TemporaryFile(/tmp/multipartBody8757762817824068395asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963733657,"filename":"image_15012025_03_49_06_10376.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/43e52631bfcee75228f8a1f9c193edf5.jpg","text":"TemporaryFile(/tmp/multipartBody694960685834695010asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963733657,"filename":"image_15012025_03_49_26_10435.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6423e5d90c253ced450daac6cdda8b04.jpg","text":"TemporaryFile(/tmp/multipartBody4664353039038110414asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963733657,"filename":"image_15012025_03_49_16_9365.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9f1c49ac32003c510c274ddc8752df8e.jpg","text":"TemporaryFile(/tmp/multipartBody3876909370542837530asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963733657,"filename":"image_15012025_03_49_56_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9e72056404274391a44d9bc06d0beeda.jpg","text":"TemporaryFile(/tmp/multipartBody2303409970473385723asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963733657,"filename":"image_15012025_03_49_46_9337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/113681953c6aa0d6e1ae46a31347c680.jpg","text":"TemporaryFile(/tmp/multipartBody943631965389288382asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963733657,"filename":"image_15012025_03_49_36_10354.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329189861","file1":"1329189777","file0":"1329189772","file4":"1329190105","file5":"1329190108","file3":"1329190098"},"map_files_photo_id_array":[{"photo_id":"1329190108","filename":"file5"},{"photo_id":"1329189861","filename":"file2"},{"photo_id":"1329190105","filename":"file4"},{"photo_id":"1329189777","filename":"file1"},{"photo_id":"1329189772","filename":"file0"},{"photo_id":"1329190098","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329189772":["hashtag1","hashtag2"]},{"1329189861":["hashtag1","hashtag2"]},{"1329189777":["hashtag1","hashtag2"]},{"1329190108":["hashtag1","hashtag2"]},{"1329190105":["hashtag1","hashtag2"]},{"1329190098":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329189772, 1329189861, 1329189777, 1329190108, 1329190105, 1329190098)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.970109939575195 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 15 --only_old 0
2025-01-15 18:55:32.908129
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/49/image_15012025_03_50_06_10352.jpg', '/home/pi/Desktop/images/15012025/03/50/image_15012025_03_50_56_10370.jpg', '/home/pi/Desktop/images/15012025/03/50/image_15012025_03_51_06_9436.jpg', '/home/pi/Desktop/images/15012025/03/51/image_15012025_03_51_36_9333.jpg', '/home/pi/Desktop/images/15012025/03/51/image_15012025_03_51_46_10408.jpg', '/home/pi/Desktop/images/15012025/03/51/image_15012025_03_51_56_9355.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/49/image_15012025_03_50_06_10352.jpg
/home/pi/Desktop/images/15012025/03/50/image_15012025_03_50_56_10370.jpg
/home/pi/Desktop/images/15012025/03/50/image_15012025_03_51_06_9436.jpg
/home/pi/Desktop/images/15012025/03/51/image_15012025_03_51_36_9333.jpg
/home/pi/Desktop/images/15012025/03/51/image_15012025_03_51_46_10408.jpg
/home/pi/Desktop/images/15012025/03/51/image_15012025_03_51_56_9355.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6118500232696533 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
2025-01-15 18:55:42.824182
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/49/image_15012025_03_50_06_10352.jpg', '/home/pi/Desktop/images/15012025/03/50/image_15012025_03_50_56_10370.jpg', '/home/pi/Desktop/images/15012025/03/50/image_15012025_03_51_06_9436.jpg', '/home/pi/Desktop/images/15012025/03/51/image_15012025_03_51_36_9333.jpg', '/home/pi/Desktop/images/15012025/03/51/image_15012025_03_51_46_10408.jpg', '/home/pi/Desktop/images/15012025/03/51/image_15012025_03_51_56_9355.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/49/image_15012025_03_50_06_10352.jpg
/home/pi/Desktop/images/15012025/03/50/image_15012025_03_50_56_10370.jpg
/home/pi/Desktop/images/15012025/03/50/image_15012025_03_51_06_9436.jpg
/home/pi/Desktop/images/15012025/03/51/image_15012025_03_51_36_9333.jpg
/home/pi/Desktop/images/15012025/03/51/image_15012025_03_51_46_10408.jpg
/home/pi/Desktop/images/15012025/03/51/image_15012025_03_51_56_9355.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329190310","1329190282","1329190306","1329190290","1329190293","1329190287"],"photo_ids_order":["1329190282","1329190287","1329190290","1329190293","1329190306","1329190310"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e503542b45699d61d62e5c6f27c2bb68.jpg","text":"TemporaryFile(/tmp/multipartBody268223688100600335asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963803750,"filename":"image_15012025_03_51_56_9355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/32b256ee07989f4bf6d75b21517bc2c7.jpg","text":"TemporaryFile(/tmp/multipartBody4951868705641392761asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963803750,"filename":"image_15012025_03_50_06_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6e77a83618c697014519f552e00c1132.jpg","text":"TemporaryFile(/tmp/multipartBody7288267207273162580asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963803750,"filename":"image_15012025_03_51_46_10408.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4ff295fe8f60d6105921251beccedd5c.jpg","text":"TemporaryFile(/tmp/multipartBody8044008922945902665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963803750,"filename":"image_15012025_03_51_06_9436.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/218b4838b7c0868b912507c14d39a38d.jpg","text":"TemporaryFile(/tmp/multipartBody3041238287424830862asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963803750,"filename":"image_15012025_03_51_36_9333.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bb7a914cd74852bf0e186d02ae20a76f.jpg","text":"TemporaryFile(/tmp/multipartBody1764208377558162165asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963803750,"filename":"image_15012025_03_50_56_10370.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329190290","file1":"1329190287","file0":"1329190282","file4":"1329190306","file5":"1329190310","file3":"1329190293"},"map_files_photo_id_array":[{"photo_id":"1329190310","filename":"file5"},{"photo_id":"1329190290","filename":"file2"},{"photo_id":"1329190306","filename":"file4"},{"photo_id":"1329190287","filename":"file1"},{"photo_id":"1329190282","filename":"file0"},{"photo_id":"1329190293","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329190310":["hashtag1","hashtag2"]},{"1329190282":["hashtag1","hashtag2"]},{"1329190306":["hashtag1","hashtag2"]},{"1329190290":["hashtag1","hashtag2"]},{"1329190293":["hashtag1","hashtag2"]},{"1329190287":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329190310, 1329190282, 1329190306, 1329190290, 1329190293, 1329190287)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.30536413192749 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 15 --only_old 0
2025-01-15 18:56:32.276507
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/52/image_15012025_03_52_16_10449.jpg', '/home/pi/Desktop/images/15012025/03/52/image_15012025_03_52_26_9348.jpg', '/home/pi/Desktop/images/15012025/03/52/image_15012025_03_52_36_10359.jpg', '/home/pi/Desktop/images/15012025/03/52/image_15012025_03_52_46_10344.jpg', '/home/pi/Desktop/images/15012025/03/52/image_15012025_03_53_06_10353.jpg', '/home/pi/Desktop/images/15012025/03/53/image_15012025_03_53_16_10363.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/52/image_15012025_03_52_16_10449.jpg
/home/pi/Desktop/images/15012025/03/52/image_15012025_03_52_26_9348.jpg
/home/pi/Desktop/images/15012025/03/52/image_15012025_03_52_36_10359.jpg
/home/pi/Desktop/images/15012025/03/52/image_15012025_03_52_46_10344.jpg
/home/pi/Desktop/images/15012025/03/52/image_15012025_03_53_06_10353.jpg
/home/pi/Desktop/images/15012025/03/53/image_15012025_03_53_16_10363.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329190346","1329190328","1329190337","1329190325","1329190333","1329190353"],"photo_ids_order":["1329190325","1329190328","1329190333","1329190337","1329190346","1329190353"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/34595337f5e247f5ad0864ea9c7be268.jpg","text":"TemporaryFile(/tmp/multipartBody7650151037337063539asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963853311,"filename":"image_15012025_03_53_06_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3b4c376295856051801c11e90f7f678e.jpg","text":"TemporaryFile(/tmp/multipartBody4930389782709193902asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963853311,"filename":"image_15012025_03_52_26_9348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e39da945f0509a5e20e94fbf568139ef.jpg","text":"TemporaryFile(/tmp/multipartBody8655112566813355695asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963853311,"filename":"image_15012025_03_52_46_10344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6b60a8ba406634b222d7833ba69ad1b0.jpg","text":"TemporaryFile(/tmp/multipartBody103948439297381301asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963853311,"filename":"image_15012025_03_52_16_10449.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/373860890ea91379cd7b8caee2d109c7.jpg","text":"TemporaryFile(/tmp/multipartBody1531794642700667598asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963853311,"filename":"image_15012025_03_52_36_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f8f4012a0257d09bc5d85845179dc9d2.jpg","text":"TemporaryFile(/tmp/multipartBody4168983797200712212asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736963853311,"filename":"image_15012025_03_53_16_10363.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329190333","file1":"1329190328","file0":"1329190325","file4":"1329190346","file5":"1329190353","file3":"1329190337"},"map_files_photo_id_array":[{"photo_id":"1329190353","filename":"file5"},{"photo_id":"1329190333","filename":"file2"},{"photo_id":"1329190346","filename":"file4"},{"photo_id":"1329190328","filename":"file1"},{"photo_id":"1329190325","filename":"file0"},{"photo_id":"1329190337","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329190346":["hashtag1","hashtag2"]},{"1329190328":["hashtag1","hashtag2"]},{"1329190337":["hashtag1","hashtag2"]},{"1329190325":["hashtag1","hashtag2"]},{"1329190333":["hashtag1","hashtag2"]},{"1329190353":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329190346, 1329190328, 1329190337, 1329190325, 1329190333, 1329190353)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.59977960586548 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 15 --only_old 0
2025-01-15 18:57:32.611847
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/53/image_15012025_03_53_36_10361.jpg', '/home/pi/Desktop/images/15012025/03/53/image_15012025_03_53_46_9387.jpg', '/home/pi/Desktop/images/15012025/03/53/image_15012025_03_54_06_10376.jpg', '/home/pi/Desktop/images/15012025/03/54/image_15012025_03_54_16_9335.jpg', '/home/pi/Desktop/images/15012025/03/54/image_15012025_03_54_26_10435.jpg', '/home/pi/Desktop/images/15012025/03/54/image_15012025_03_54_37_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/53/image_15012025_03_53_36_10361.jpg
/home/pi/Desktop/images/15012025/03/53/image_15012025_03_53_46_9387.jpg
/home/pi/Desktop/images/15012025/03/53/image_15012025_03_54_06_10376.jpg
/home/pi/Desktop/images/15012025/03/54/image_15012025_03_54_16_9335.jpg
/home/pi/Desktop/images/15012025/03/54/image_15012025_03_54_26_10435.jpg
/home/pi/Desktop/images/15012025/03/54/image_15012025_03_54_37_10356.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
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
2025-01-15 18:59:04.351750
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/53/image_15012025_03_53_36_10361.jpg', '/home/pi/Desktop/images/15012025/03/53/image_15012025_03_53_46_9387.jpg', '/home/pi/Desktop/images/15012025/03/53/image_15012025_03_54_06_10376.jpg', '/home/pi/Desktop/images/15012025/03/54/image_15012025_03_54_16_9335.jpg', '/home/pi/Desktop/images/15012025/03/54/image_15012025_03_54_26_10435.jpg', '/home/pi/Desktop/images/15012025/03/54/image_15012025_03_54_37_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/53/image_15012025_03_53_36_10361.jpg
/home/pi/Desktop/images/15012025/03/53/image_15012025_03_53_46_9387.jpg
/home/pi/Desktop/images/15012025/03/53/image_15012025_03_54_06_10376.jpg
/home/pi/Desktop/images/15012025/03/54/image_15012025_03_54_16_9335.jpg
/home/pi/Desktop/images/15012025/03/54/image_15012025_03_54_26_10435.jpg
/home/pi/Desktop/images/15012025/03/54/image_15012025_03_54_37_10356.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329190533","1329190547","1329190552","1329190540","1329190522","1329190513"],"photo_ids_order":["1329190513","1329190522","1329190533","1329190540","1329190547","1329190552"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a04ea1eb674d1f954f61370acbdddd5b.jpg","text":"TemporaryFile(/tmp/multipartBody8511629593249203782asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964005444,"filename":"image_15012025_03_54_06_10376.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/de28500627e0a576b2d61eaec67a2fe0.jpg","text":"TemporaryFile(/tmp/multipartBody995065049524552993asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964005444,"filename":"image_15012025_03_54_26_10435.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/676c1a5c0cb93e64c9977f8e3b8b6284.jpg","text":"TemporaryFile(/tmp/multipartBody1924250909992175818asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964005444,"filename":"image_15012025_03_54_37_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/07e9961f954bc9e5141c40629c5af688.jpg","text":"TemporaryFile(/tmp/multipartBody2307653750255820244asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964005444,"filename":"image_15012025_03_54_16_9335.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ba7abfb47606668c3447d230dca69508.jpg","text":"TemporaryFile(/tmp/multipartBody6047598993668735988asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964005444,"filename":"image_15012025_03_53_46_9387.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4c5f96f8746b3ebd97be1d8d93643dae.jpg","text":"TemporaryFile(/tmp/multipartBody294108935602996285asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964005444,"filename":"image_15012025_03_53_36_10361.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329190533","file1":"1329190522","file0":"1329190513","file4":"1329190547","file5":"1329190552","file3":"1329190540"},"map_files_photo_id_array":[{"photo_id":"1329190552","filename":"file5"},{"photo_id":"1329190533","filename":"file2"},{"photo_id":"1329190547","filename":"file4"},{"photo_id":"1329190522","filename":"file1"},{"photo_id":"1329190513","filename":"file0"},{"photo_id":"1329190540","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329190533":["hashtag1","hashtag2"]},{"1329190547":["hashtag1","hashtag2"]},{"1329190552":["hashtag1","hashtag2"]},{"1329190540":["hashtag1","hashtag2"]},{"1329190522":["hashtag1","hashtag2"]},{"1329190513":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329190533, 1329190547, 1329190552, 1329190540, 1329190522, 1329190513)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.173299074172974 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 15 --only_old 0
2025-01-15 18:59:53.227722
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/54/image_15012025_03_54_46_9341.jpg', '/home/pi/Desktop/images/15012025/03/54/image_15012025_03_54_56_10428.jpg', '/home/pi/Desktop/images/15012025/03/54/image_15012025_03_55_06_9341.jpg', '/home/pi/Desktop/images/15012025/03/55/image_15012025_03_55_16_10399.jpg', '/home/pi/Desktop/images/15012025/03/55/image_15012025_03_55_26_10397.jpg', '/home/pi/Desktop/images/15012025/03/55/image_15012025_03_55_36_9328.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/54/image_15012025_03_54_46_9341.jpg
/home/pi/Desktop/images/15012025/03/54/image_15012025_03_54_56_10428.jpg
/home/pi/Desktop/images/15012025/03/54/image_15012025_03_55_06_9341.jpg
/home/pi/Desktop/images/15012025/03/55/image_15012025_03_55_16_10399.jpg
/home/pi/Desktop/images/15012025/03/55/image_15012025_03_55_26_10397.jpg
/home/pi/Desktop/images/15012025/03/55/image_15012025_03_55_36_9328.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329190602","1329190592","1329190613","1329190607","1329190588","1329190596"],"photo_ids_order":["1329190588","1329190592","1329190596","1329190602","1329190607","1329190613"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5da2ad503af2900e81a583ac1170efa6.jpg","text":"TemporaryFile(/tmp/multipartBody7770299939715910956asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964054263,"filename":"image_15012025_03_55_16_10399.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/da300ec053818c94bb4443a8646bf592.jpg","text":"TemporaryFile(/tmp/multipartBody8916927079615721898asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964054263,"filename":"image_15012025_03_54_56_10428.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/35dfd630fd793499d599d4b55330bcc5.jpg","text":"TemporaryFile(/tmp/multipartBody1058970835006032125asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964054263,"filename":"image_15012025_03_55_36_9328.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/425f348e5aeb4c04f6b90428e11befab.jpg","text":"TemporaryFile(/tmp/multipartBody3259785204334099152asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964054263,"filename":"image_15012025_03_55_26_10397.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5730c15a9bcb80ad039710262dbc629b.jpg","text":"TemporaryFile(/tmp/multipartBody3971403457747528480asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964054263,"filename":"image_15012025_03_54_46_9341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/40ed3571b57ed438a2ec3587bd5134c9.jpg","text":"TemporaryFile(/tmp/multipartBody7761451406626925550asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964054263,"filename":"image_15012025_03_55_06_9341.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329190596","file1":"1329190592","file0":"1329190588","file4":"1329190607","file5":"1329190613","file3":"1329190602"},"map_files_photo_id_array":[{"photo_id":"1329190613","filename":"file5"},{"photo_id":"1329190596","filename":"file2"},{"photo_id":"1329190607","filename":"file4"},{"photo_id":"1329190592","filename":"file1"},{"photo_id":"1329190588","filename":"file0"},{"photo_id":"1329190602","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329190602":["hashtag1","hashtag2"]},{"1329190592":["hashtag1","hashtag2"]},{"1329190613":["hashtag1","hashtag2"]},{"1329190607":["hashtag1","hashtag2"]},{"1329190588":["hashtag1","hashtag2"]},{"1329190596":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329190602, 1329190592, 1329190613, 1329190607, 1329190588, 1329190596)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.26152467727661 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
2025-01-15 19:00:42.512709
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/55/image_15012025_03_55_46_10338.jpg', '/home/pi/Desktop/images/15012025/03/55/image_15012025_03_56_06_9351.jpg', '/home/pi/Desktop/images/15012025/03/56/image_15012025_03_56_16_10426.jpg', '/home/pi/Desktop/images/15012025/03/56/image_15012025_03_56_26_9347.jpg', '/home/pi/Desktop/images/15012025/03/56/image_15012025_03_56_36_10464.jpg', '/home/pi/Desktop/images/15012025/03/56/image_15012025_03_56_46_10336.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/55/image_15012025_03_55_46_10338.jpg
/home/pi/Desktop/images/15012025/03/55/image_15012025_03_56_06_9351.jpg
/home/pi/Desktop/images/15012025/03/56/image_15012025_03_56_16_10426.jpg
/home/pi/Desktop/images/15012025/03/56/image_15012025_03_56_26_9347.jpg
/home/pi/Desktop/images/15012025/03/56/image_15012025_03_56_36_10464.jpg
/home/pi/Desktop/images/15012025/03/56/image_15012025_03_56_46_10336.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329190661","1329190631","1329190750","1329190651","1329190636","1329190650"],"photo_ids_order":["1329190631","1329190636","1329190650","1329190651","1329190661","1329190750"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3e02b52a756e7b6ba061d4e58fadbadb.jpg","text":"TemporaryFile(/tmp/multipartBody7795568182507883527asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964103517,"filename":"image_15012025_03_56_36_10464.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7d4fdf63ebee0c90025151ffd3f16e9c.jpg","text":"TemporaryFile(/tmp/multipartBody806114054179580076asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964103517,"filename":"image_15012025_03_55_46_10338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e2811f92150ced3a755d01c57ffe54d8.jpg","text":"TemporaryFile(/tmp/multipartBody4404519229280571065asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964103517,"filename":"image_15012025_03_56_46_10336.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/586269095a46a9979d398265ce74e379.jpg","text":"TemporaryFile(/tmp/multipartBody4952310421346376133asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964103517,"filename":"image_15012025_03_56_26_9347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d00288ce3de6cd54f5c720578fcfe84a.jpg","text":"TemporaryFile(/tmp/multipartBody684076240510806514asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964103517,"filename":"image_15012025_03_56_06_9351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/381ed820846624b0696feb8fcc4183a3.jpg","text":"TemporaryFile(/tmp/multipartBody8887067418878346222asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964103517,"filename":"image_15012025_03_56_16_10426.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329190650","file1":"1329190636","file0":"1329190631","file4":"1329190661","file5":"1329190750","file3":"1329190651"},"map_files_photo_id_array":[{"photo_id":"1329190750","filename":"file5"},{"photo_id":"1329190650","filename":"file2"},{"photo_id":"1329190661","filename":"file4"},{"photo_id":"1329190636","filename":"file1"},{"photo_id":"1329190631","filename":"file0"},{"photo_id":"1329190651","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329190661":["hashtag1","hashtag2"]},{"1329190631":["hashtag1","hashtag2"]},{"1329190750":["hashtag1","hashtag2"]},{"1329190651":["hashtag1","hashtag2"]},{"1329190636":["hashtag1","hashtag2"]},{"1329190650":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329190661, 1329190631, 1329190750, 1329190651, 1329190636, 1329190650)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.69201350212097 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 15 --only_old 0
2025-01-15 19:01:32.683198
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/56/image_15012025_03_56_56_9343.jpg', '/home/pi/Desktop/images/15012025/03/56/image_15012025_03_57_06_10446.jpg', '/home/pi/Desktop/images/15012025/03/57/image_15012025_03_57_16_9396.jpg', '/home/pi/Desktop/images/15012025/03/57/image_15012025_03_57_26_10411.jpg', '/home/pi/Desktop/images/15012025/03/57/image_15012025_03_57_36_10338.jpg', '/home/pi/Desktop/images/15012025/03/57/image_15012025_03_57_46_9427.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/56/image_15012025_03_56_56_9343.jpg
/home/pi/Desktop/images/15012025/03/56/image_15012025_03_57_06_10446.jpg
/home/pi/Desktop/images/15012025/03/57/image_15012025_03_57_16_9396.jpg
/home/pi/Desktop/images/15012025/03/57/image_15012025_03_57_26_10411.jpg
/home/pi/Desktop/images/15012025/03/57/image_15012025_03_57_36_10338.jpg
/home/pi/Desktop/images/15012025/03/57/image_15012025_03_57_46_9427.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329190932","1329191009","1329190876","1329190998","1329190983","1329190935"],"photo_ids_order":["1329190876","1329190932","1329190935","1329190983","1329190998","1329191009"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/45323ce725bb7bf96dff03630e866bf9.jpg","text":"TemporaryFile(/tmp/multipartBody2463735793793086940asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964153712,"filename":"image_15012025_03_57_06_10446.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7c3af26bfe8ce0c95a6b8e3199e9b884.jpg","text":"TemporaryFile(/tmp/multipartBody682316490598605424asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964153712,"filename":"image_15012025_03_57_46_9427.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7c5e44a9e51d2d7e8a51e07ce789137f.jpg","text":"TemporaryFile(/tmp/multipartBody2350174505852789160asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964153712,"filename":"image_15012025_03_56_56_9343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/21a3070bf1cd26cb14b58967023a00c6.jpg","text":"TemporaryFile(/tmp/multipartBody4201374239627140695asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964153712,"filename":"image_15012025_03_57_36_10338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c2e365d58328dc276ac88134e54eef0a.jpg","text":"TemporaryFile(/tmp/multipartBody3035663834073433755asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964153712,"filename":"image_15012025_03_57_26_10411.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9203734b50aa3f0c0b1566f34f3f3fb1.jpg","text":"TemporaryFile(/tmp/multipartBody4352129953589726404asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964153712,"filename":"image_15012025_03_57_16_9396.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329190935","file1":"1329190932","file0":"1329190876","file4":"1329190998","file5":"1329191009","file3":"1329190983"},"map_files_photo_id_array":[{"photo_id":"1329191009","filename":"file5"},{"photo_id":"1329190935","filename":"file2"},{"photo_id":"1329190998","filename":"file4"},{"photo_id":"1329190932","filename":"file1"},{"photo_id":"1329190876","filename":"file0"},{"photo_id":"1329190983","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329190932":["hashtag1","hashtag2"]},{"1329191009":["hashtag1","hashtag2"]},{"1329190876":["hashtag1","hashtag2"]},{"1329190998":["hashtag1","hashtag2"]},{"1329190983":["hashtag1","hashtag2"]},{"1329190935":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329190932, 1329191009, 1329190876, 1329190998, 1329190983, 1329190935)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.70179200172424 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 15 --only_old 0
2025-01-15 19:02:32.869226
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/57/image_15012025_03_57_56_10360.jpg', '/home/pi/Desktop/images/15012025/03/57/image_15012025_03_58_07_10337.jpg', '/home/pi/Desktop/images/15012025/03/58/image_15012025_03_58_16_9340.jpg', '/home/pi/Desktop/images/15012025/03/58/image_15012025_03_58_26_10365.jpg', '/home/pi/Desktop/images/15012025/03/58/image_15012025_03_58_36_9347.jpg', '/home/pi/Desktop/images/15012025/03/58/image_15012025_03_58_46_10450.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/57/image_15012025_03_57_56_10360.jpg
/home/pi/Desktop/images/15012025/03/57/image_15012025_03_58_07_10337.jpg
/home/pi/Desktop/images/15012025/03/58/image_15012025_03_58_16_9340.jpg
/home/pi/Desktop/images/15012025/03/58/image_15012025_03_58_26_10365.jpg
/home/pi/Desktop/images/15012025/03/58/image_15012025_03_58_36_9347.jpg
/home/pi/Desktop/images/15012025/03/58/image_15012025_03_58_46_10450.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329191036","1329191050","1329191047","1329191041","1329191049","1329191031"],"photo_ids_order":["1329191031","1329191036","1329191041","1329191047","1329191049","1329191050"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9fee959d807ef865ff87087d049d416f.jpg","text":"TemporaryFile(/tmp/multipartBody3380358148472656990asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964213882,"filename":"image_15012025_03_58_07_10337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e2ff3b7eef4b8dbbab576feeb2939f97.jpg","text":"TemporaryFile(/tmp/multipartBody8688682453185136602asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964213882,"filename":"image_15012025_03_58_46_10450.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/230c7bdc4f3c7a90cb05a21df871cc4a.jpg","text":"TemporaryFile(/tmp/multipartBody6593488809411876644asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964213882,"filename":"image_15012025_03_58_26_10365.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7dab7182d392f64b0021cf8c7405cbf1.jpg","text":"TemporaryFile(/tmp/multipartBody5471475907045806077asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964213882,"filename":"image_15012025_03_58_16_9340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/88c1accee19a06277a3b80aea468740d.jpg","text":"TemporaryFile(/tmp/multipartBody4897460571207084685asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964213882,"filename":"image_15012025_03_58_36_9347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9814a2d10df5eb641feae844e6c09b19.jpg","text":"TemporaryFile(/tmp/multipartBody1836048160735616695asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964213882,"filename":"image_15012025_03_57_56_10360.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329191041","file1":"1329191036","file0":"1329191031","file4":"1329191049","file5":"1329191050","file3":"1329191047"},"map_files_photo_id_array":[{"photo_id":"1329191050","filename":"file5"},{"photo_id":"1329191041","filename":"file2"},{"photo_id":"1329191049","filename":"file4"},{"photo_id":"1329191036","filename":"file1"},{"photo_id":"1329191031","filename":"file0"},{"photo_id":"1329191047","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329191036":["hashtag1","hashtag2"]},{"1329191050":["hashtag1","hashtag2"]},{"1329191047":["hashtag1","hashtag2"]},{"1329191041":["hashtag1","hashtag2"]},{"1329191049":["hashtag1","hashtag2"]},{"1329191031":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329191036, 1329191050, 1329191047, 1329191041, 1329191049, 1329191031)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.50145673751831 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 15 --only_old 0
2025-01-15 19:03:33.045274
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/58/image_15012025_03_58_56_10354.jpg', '/home/pi/Desktop/images/15012025/03/58/image_15012025_03_59_06_9419.jpg', '/home/pi/Desktop/images/15012025/03/59/image_15012025_03_59_16_10352.jpg', '/home/pi/Desktop/images/15012025/03/59/image_15012025_03_59_27_10362.jpg', '/home/pi/Desktop/images/15012025/03/59/image_15012025_03_59_36_9463.jpg', '/home/pi/Desktop/images/15012025/03/59/image_15012025_03_59_46_10352.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/58/image_15012025_03_58_56_10354.jpg
/home/pi/Desktop/images/15012025/03/58/image_15012025_03_59_06_9419.jpg
/home/pi/Desktop/images/15012025/03/59/image_15012025_03_59_16_10352.jpg
/home/pi/Desktop/images/15012025/03/59/image_15012025_03_59_27_10362.jpg
/home/pi/Desktop/images/15012025/03/59/image_15012025_03_59_36_9463.jpg
/home/pi/Desktop/images/15012025/03/59/image_15012025_03_59_46_10352.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329191090","1329191063","1329191057","1329191083","1329191077","1329191071"],"photo_ids_order":["1329191057","1329191063","1329191071","1329191077","1329191083","1329191090"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f87498813f2328b6c59d13ed756434fa.jpg","text":"TemporaryFile(/tmp/multipartBody3219755791945293106asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964274059,"filename":"image_15012025_03_59_46_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/65a00c53736cbac6cff24f937465ee2e.jpg","text":"TemporaryFile(/tmp/multipartBody5062710007333116440asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964274059,"filename":"image_15012025_03_59_06_9419.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fe9dd6f66b26bf451f2cf5f9efd95e3c.jpg","text":"TemporaryFile(/tmp/multipartBody1566915026706905747asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964274059,"filename":"image_15012025_03_58_56_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/40f16b96422a6df9d81b97f51c60f2bd.jpg","text":"TemporaryFile(/tmp/multipartBody7058010092931699540asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964274059,"filename":"image_15012025_03_59_36_9463.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/70119271490b5e4f0575cf22616faeaa.jpg","text":"TemporaryFile(/tmp/multipartBody1268188349444877314asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964274059,"filename":"image_15012025_03_59_27_10362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7aefcb762c977a17db985b047586ae0b.jpg","text":"TemporaryFile(/tmp/multipartBody847181114690622665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964274059,"filename":"image_15012025_03_59_16_10352.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329191071","file1":"1329191063","file0":"1329191057","file4":"1329191083","file5":"1329191090","file3":"1329191077"},"map_files_photo_id_array":[{"photo_id":"1329191090","filename":"file5"},{"photo_id":"1329191071","filename":"file2"},{"photo_id":"1329191083","filename":"file4"},{"photo_id":"1329191063","filename":"file1"},{"photo_id":"1329191057","filename":"file0"},{"photo_id":"1329191077","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329191090":["hashtag1","hashtag2"]},{"1329191063":["hashtag1","hashtag2"]},{"1329191057":["hashtag1","hashtag2"]},{"1329191083":["hashtag1","hashtag2"]},{"1329191077":["hashtag1","hashtag2"]},{"1329191071":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329191090, 1329191063, 1329191057, 1329191083, 1329191077, 1329191071)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.20939898490906 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 15 --only_old 0
2025-01-15 19:04:32.345982
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/59/image_15012025_03_59_56_9338.jpg', '/home/pi/Desktop/images/15012025/04/01/image_15012025_04_01_14_10074.jpg', '/home/pi/Desktop/images/15012025/04/01/image_15012025_04_01_25_10358.jpg', '/home/pi/Desktop/images/15012025/04/01/image_15012025_04_01_44_9351.jpg', '/home/pi/Desktop/images/15012025/04/01/image_15012025_04_01_55_10356.jpg', '/home/pi/Desktop/images/15012025/04/01/image_15012025_04_02_05_10354.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/59/image_15012025_03_59_56_9338.jpg
/home/pi/Desktop/images/15012025/04/01/image_15012025_04_01_14_10074.jpg
/home/pi/Desktop/images/15012025/04/01/image_15012025_04_01_25_10358.jpg
/home/pi/Desktop/images/15012025/04/01/image_15012025_04_01_44_9351.jpg
/home/pi/Desktop/images/15012025/04/01/image_15012025_04_01_55_10356.jpg
/home/pi/Desktop/images/15012025/04/01/image_15012025_04_02_05_10354.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6423447132110596 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
2025-01-15 19:04:42.268905
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/03/59/image_15012025_03_59_56_9338.jpg', '/home/pi/Desktop/images/15012025/04/01/image_15012025_04_01_14_10074.jpg', '/home/pi/Desktop/images/15012025/04/01/image_15012025_04_01_25_10358.jpg', '/home/pi/Desktop/images/15012025/04/01/image_15012025_04_01_44_9351.jpg', '/home/pi/Desktop/images/15012025/04/01/image_15012025_04_01_55_10356.jpg', '/home/pi/Desktop/images/15012025/04/01/image_15012025_04_02_05_10354.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/03/59/image_15012025_03_59_56_9338.jpg
/home/pi/Desktop/images/15012025/04/01/image_15012025_04_01_14_10074.jpg
/home/pi/Desktop/images/15012025/04/01/image_15012025_04_01_25_10358.jpg
/home/pi/Desktop/images/15012025/04/01/image_15012025_04_01_44_9351.jpg
/home/pi/Desktop/images/15012025/04/01/image_15012025_04_01_55_10356.jpg
/home/pi/Desktop/images/15012025/04/01/image_15012025_04_02_05_10354.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329191162","1329191159","1329191150","1329191153","1329191147","1329191140"],"photo_ids_order":["1329191140","1329191147","1329191150","1329191153","1329191159","1329191162"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/008876f1f8f70763c37edbbd1247f5d3.jpg","text":"TemporaryFile(/tmp/multipartBody7302533815549792272asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964343216,"filename":"image_15012025_04_02_05_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e444e5e9a1c69865e1ce2714049f19a9.jpg","text":"TemporaryFile(/tmp/multipartBody6270594742491464184asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964343216,"filename":"image_15012025_04_01_55_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3b121400fe7807adc2e8a4a76ccc317c.jpg","text":"TemporaryFile(/tmp/multipartBody36011679725849443asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964343216,"filename":"image_15012025_04_01_25_10358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9c120b085ddeffa753cb9833679c1c52.jpg","text":"TemporaryFile(/tmp/multipartBody1488223604815861578asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964343216,"filename":"image_15012025_04_01_44_9351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/068c2406f9b3d18509a621cedc2b60fe.jpg","text":"TemporaryFile(/tmp/multipartBody961441160357379748asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964343216,"filename":"image_15012025_04_01_14_10074.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/914a53cf81afd4cb25b08eb8cafd3433.jpg","text":"TemporaryFile(/tmp/multipartBody2856750872274843099asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964343216,"filename":"image_15012025_03_59_56_9338.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329191150","file1":"1329191147","file0":"1329191140","file4":"1329191159","file5":"1329191162","file3":"1329191153"},"map_files_photo_id_array":[{"photo_id":"1329191162","filename":"file5"},{"photo_id":"1329191150","filename":"file2"},{"photo_id":"1329191159","filename":"file4"},{"photo_id":"1329191147","filename":"file1"},{"photo_id":"1329191140","filename":"file0"},{"photo_id":"1329191153","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329191162":["hashtag1","hashtag2"]},{"1329191159":["hashtag1","hashtag2"]},{"1329191150":["hashtag1","hashtag2"]},{"1329191153":["hashtag1","hashtag2"]},{"1329191147":["hashtag1","hashtag2"]},{"1329191140":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329191162, 1329191159, 1329191150, 1329191153, 1329191147, 1329191140)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.44748258590698 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 15 --only_old 0
2025-01-15 19:05:32.669826
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/02/image_15012025_04_02_14_9398.jpg', '/home/pi/Desktop/images/15012025/04/02/image_15012025_04_02_25_10362.jpg', '/home/pi/Desktop/images/15012025/04/02/image_15012025_04_02_34_9397.jpg', '/home/pi/Desktop/images/15012025/04/02/image_15012025_04_02_55_10415.jpg', '/home/pi/Desktop/images/15012025/04/02/image_15012025_04_03_04_9334.jpg', '/home/pi/Desktop/images/15012025/04/03/image_15012025_04_03_15_10417.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/02/image_15012025_04_02_14_9398.jpg
/home/pi/Desktop/images/15012025/04/02/image_15012025_04_02_25_10362.jpg
/home/pi/Desktop/images/15012025/04/02/image_15012025_04_02_34_9397.jpg
/home/pi/Desktop/images/15012025/04/02/image_15012025_04_02_55_10415.jpg
/home/pi/Desktop/images/15012025/04/02/image_15012025_04_03_04_9334.jpg
/home/pi/Desktop/images/15012025/04/03/image_15012025_04_03_15_10417.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329191325","1329191282","1329191261","1329191365","1329191367","1329191340"],"photo_ids_order":["1329191261","1329191282","1329191325","1329191340","1329191365","1329191367"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ccfbb8d86a105f16beb3ae8b1a194282.jpg","text":"TemporaryFile(/tmp/multipartBody1001394036419941636asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964393687,"filename":"image_15012025_04_02_34_9397.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/146e2da080c02d5509074381e24488ca.jpg","text":"TemporaryFile(/tmp/multipartBody2363805946605828172asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964393687,"filename":"image_15012025_04_02_25_10362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cb44b391af862d7003646071b727dd6a.jpg","text":"TemporaryFile(/tmp/multipartBody2823717252083596407asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964393687,"filename":"image_15012025_04_02_14_9398.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d26f3d04853543899f2f63195e20a0c4.jpg","text":"TemporaryFile(/tmp/multipartBody6660616702500230742asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964393687,"filename":"image_15012025_04_03_04_9334.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ba2d0666c33570b52d8b1d64d725278f.jpg","text":"TemporaryFile(/tmp/multipartBody1980471622987291739asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964393687,"filename":"image_15012025_04_03_15_10417.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/df307855993ccbe2b79a5d39e59479b8.jpg","text":"TemporaryFile(/tmp/multipartBody6646734440696462509asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964393687,"filename":"image_15012025_04_02_55_10415.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329191325","file1":"1329191282","file0":"1329191261","file4":"1329191365","file5":"1329191367","file3":"1329191340"},"map_files_photo_id_array":[{"photo_id":"1329191367","filename":"file5"},{"photo_id":"1329191325","filename":"file2"},{"photo_id":"1329191365","filename":"file4"},{"photo_id":"1329191282","filename":"file1"},{"photo_id":"1329191261","filename":"file0"},{"photo_id":"1329191340","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329191325":["hashtag1","hashtag2"]},{"1329191282":["hashtag1","hashtag2"]},{"1329191261":["hashtag1","hashtag2"]},{"1329191365":["hashtag1","hashtag2"]},{"1329191367":["hashtag1","hashtag2"]},{"1329191340":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329191325, 1329191282, 1329191261, 1329191365, 1329191367, 1329191340)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.71142649650574 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 15 --only_old 0
2025-01-15 19:06:32.713830
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/03/image_15012025_04_03_35_10351.jpg', '/home/pi/Desktop/images/15012025/04/03/image_15012025_04_03_45_10477.jpg', '/home/pi/Desktop/images/15012025/04/03/image_15012025_04_03_54_9338.jpg', '/home/pi/Desktop/images/15012025/04/03/image_15012025_04_04_05_10347.jpg', '/home/pi/Desktop/images/15012025/04/04/image_15012025_04_04_14_9476.jpg', '/home/pi/Desktop/images/15012025/04/04/image_15012025_04_04_35_10463.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/03/image_15012025_04_03_35_10351.jpg
/home/pi/Desktop/images/15012025/04/03/image_15012025_04_03_45_10477.jpg
/home/pi/Desktop/images/15012025/04/03/image_15012025_04_03_54_9338.jpg
/home/pi/Desktop/images/15012025/04/03/image_15012025_04_04_05_10347.jpg
/home/pi/Desktop/images/15012025/04/04/image_15012025_04_04_14_9476.jpg
/home/pi/Desktop/images/15012025/04/04/image_15012025_04_04_35_10463.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329191575","1329191383","1329191395","1329191389","1329191380","1329191406"],"photo_ids_order":["1329191380","1329191383","1329191389","1329191395","1329191406","1329191575"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/66ea9eb85217592331619c078b99e62b.jpg","text":"TemporaryFile(/tmp/multipartBody6467415967613314903asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964453732,"filename":"image_15012025_04_04_35_10463.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c850174409de736516f37d7dc7033416.jpg","text":"TemporaryFile(/tmp/multipartBody3111426305728407676asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964453732,"filename":"image_15012025_04_03_45_10477.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ea32fcb0e8edbe2b7f26fc14a0767fd3.jpg","text":"TemporaryFile(/tmp/multipartBody7208737182355730010asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964453732,"filename":"image_15012025_04_04_05_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f6f173619d698ab62755d6d524cebdf6.jpg","text":"TemporaryFile(/tmp/multipartBody4208988650496047140asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964453732,"filename":"image_15012025_04_03_54_9338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/80101c8ca9f87beecb26e51d681f25a4.jpg","text":"TemporaryFile(/tmp/multipartBody6103335629377362439asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964453732,"filename":"image_15012025_04_03_35_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e0840b8f43096cfb953dbce85325cfbc.jpg","text":"TemporaryFile(/tmp/multipartBody6734774088774141323asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964453732,"filename":"image_15012025_04_04_14_9476.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329191389","file1":"1329191383","file0":"1329191380","file4":"1329191406","file5":"1329191575","file3":"1329191395"},"map_files_photo_id_array":[{"photo_id":"1329191575","filename":"file5"},{"photo_id":"1329191389","filename":"file2"},{"photo_id":"1329191406","filename":"file4"},{"photo_id":"1329191383","filename":"file1"},{"photo_id":"1329191380","filename":"file0"},{"photo_id":"1329191395","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329191575":["hashtag1","hashtag2"]},{"1329191383":["hashtag1","hashtag2"]},{"1329191395":["hashtag1","hashtag2"]},{"1329191389":["hashtag1","hashtag2"]},{"1329191380":["hashtag1","hashtag2"]},{"1329191406":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329191575, 1329191383, 1329191395, 1329191389, 1329191380, 1329191406)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.19189667701721 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 15 --only_old 0
2025-01-15 19:07:32.965919
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/04/image_15012025_04_04_44_9394.jpg', '/home/pi/Desktop/images/15012025/04/04/image_15012025_04_04_55_10401.jpg', '/home/pi/Desktop/images/15012025/04/04/image_15012025_04_05_04_9337.jpg', '/home/pi/Desktop/images/15012025/04/05/image_15012025_04_05_15_10343.jpg', '/home/pi/Desktop/images/15012025/04/05/image_15012025_04_05_25_10360.jpg', '/home/pi/Desktop/images/15012025/04/05/image_15012025_04_05_34_9376.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/04/image_15012025_04_04_44_9394.jpg
/home/pi/Desktop/images/15012025/04/04/image_15012025_04_04_55_10401.jpg
/home/pi/Desktop/images/15012025/04/04/image_15012025_04_05_04_9337.jpg
/home/pi/Desktop/images/15012025/04/05/image_15012025_04_05_15_10343.jpg
/home/pi/Desktop/images/15012025/04/05/image_15012025_04_05_25_10360.jpg
/home/pi/Desktop/images/15012025/04/05/image_15012025_04_05_34_9376.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329192295","1329192283","1329192291","1329192276","1329192279","1329192293"],"photo_ids_order":["1329192276","1329192279","1329192283","1329192291","1329192293","1329192295"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0f182e8473fb068cb1b7ac7762e5962b.jpg","text":"TemporaryFile(/tmp/multipartBody6617588682434306284asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964513997,"filename":"image_15012025_04_05_34_9376.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e82a0d3c6f8626130fb5858586083d33.jpg","text":"TemporaryFile(/tmp/multipartBody7543689372739972479asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964513997,"filename":"image_15012025_04_05_04_9337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fe3a6addd48eb1ba6af5f3a87c0814df.jpg","text":"TemporaryFile(/tmp/multipartBody1831793010460645749asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964513997,"filename":"image_15012025_04_05_15_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/34fbd4af0c05bc3a9d64e8bb76ce1ceb.jpg","text":"TemporaryFile(/tmp/multipartBody5600918703111559197asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964513997,"filename":"image_15012025_04_04_44_9394.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c83cf374af560ee6ead2e64d6c4cda2f.jpg","text":"TemporaryFile(/tmp/multipartBody325702793968088020asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964513997,"filename":"image_15012025_04_04_55_10401.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bfa4092b2af819d1089f6021a619ad4c.jpg","text":"TemporaryFile(/tmp/multipartBody5908500194846441950asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964513997,"filename":"image_15012025_04_05_25_10360.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329192283","file1":"1329192279","file0":"1329192276","file4":"1329192293","file5":"1329192295","file3":"1329192291"},"map_files_photo_id_array":[{"photo_id":"1329192295","filename":"file5"},{"photo_id":"1329192283","filename":"file2"},{"photo_id":"1329192293","filename":"file4"},{"photo_id":"1329192279","filename":"file1"},{"photo_id":"1329192276","filename":"file0"},{"photo_id":"1329192291","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329192295":["hashtag1","hashtag2"]},{"1329192283":["hashtag1","hashtag2"]},{"1329192291":["hashtag1","hashtag2"]},{"1329192276":["hashtag1","hashtag2"]},{"1329192279":["hashtag1","hashtag2"]},{"1329192293":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329192295, 1329192283, 1329192291, 1329192276, 1329192279, 1329192293)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.81828331947327 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 15 --only_old 0
2025-01-15 19:08:32.184919
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/05/image_15012025_04_05_45_10341.jpg', '/home/pi/Desktop/images/15012025/04/05/image_15012025_04_05_55_10444.jpg', '/home/pi/Desktop/images/15012025/04/05/image_15012025_04_06_04_9360.jpg', '/home/pi/Desktop/images/15012025/04/06/image_15012025_04_06_15_10346.jpg', '/home/pi/Desktop/images/15012025/04/06/image_15012025_04_06_25_10349.jpg', '/home/pi/Desktop/images/15012025/04/06/image_15012025_04_06_34_9337.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/05/image_15012025_04_05_45_10341.jpg
/home/pi/Desktop/images/15012025/04/05/image_15012025_04_05_55_10444.jpg
/home/pi/Desktop/images/15012025/04/05/image_15012025_04_06_04_9360.jpg
/home/pi/Desktop/images/15012025/04/06/image_15012025_04_06_15_10346.jpg
/home/pi/Desktop/images/15012025/04/06/image_15012025_04_06_25_10349.jpg
/home/pi/Desktop/images/15012025/04/06/image_15012025_04_06_34_9337.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329192400","1329192304","1329192603","1329192312","1329192309","1329192479"],"photo_ids_order":["1329192304","1329192309","1329192312","1329192400","1329192479","1329192603"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c30526c8f644494101ee7092ba1a1e36.jpg","text":"TemporaryFile(/tmp/multipartBody1993672931158727018asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964573208,"filename":"image_15012025_04_06_15_10346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9ded0b7c2c37fc53433a204d5f6398af.jpg","text":"TemporaryFile(/tmp/multipartBody4037666288008407439asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964573208,"filename":"image_15012025_04_05_45_10341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bdd2b186ab652efa09bac654892b5cc9.jpg","text":"TemporaryFile(/tmp/multipartBody3756261730331382400asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964573208,"filename":"image_15012025_04_06_34_9337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2e0a3aa8073cb16d08cd89f51fa8d296.jpg","text":"TemporaryFile(/tmp/multipartBody5735411441943676873asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964573208,"filename":"image_15012025_04_06_04_9360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9aa3afcdb53715acd3923053a7e7860f.jpg","text":"TemporaryFile(/tmp/multipartBody8877226072899790737asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964573208,"filename":"image_15012025_04_05_55_10444.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6f387aa7ed3f5f674c4290be6150ea12.jpg","text":"TemporaryFile(/tmp/multipartBody3925628119458224377asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964573208,"filename":"image_15012025_04_06_25_10349.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329192312","file1":"1329192309","file0":"1329192304","file4":"1329192479","file5":"1329192603","file3":"1329192400"},"map_files_photo_id_array":[{"photo_id":"1329192603","filename":"file5"},{"photo_id":"1329192312","filename":"file2"},{"photo_id":"1329192479","filename":"file4"},{"photo_id":"1329192309","filename":"file1"},{"photo_id":"1329192304","filename":"file0"},{"photo_id":"1329192400","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329192400":["hashtag1","hashtag2"]},{"1329192304":["hashtag1","hashtag2"]},{"1329192603":["hashtag1","hashtag2"]},{"1329192312":["hashtag1","hashtag2"]},{"1329192309":["hashtag1","hashtag2"]},{"1329192479":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329192400, 1329192304, 1329192603, 1329192312, 1329192309, 1329192479)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.53421664237976 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 15 --only_old 0
2025-01-15 19:09:32.631029
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/06/image_15012025_04_06_45_10356.jpg', '/home/pi/Desktop/images/15012025/04/06/image_15012025_04_06_54_9408.jpg', '/home/pi/Desktop/images/15012025/04/06/image_15012025_04_07_05_10369.jpg', '/home/pi/Desktop/images/15012025/04/07/image_15012025_04_07_15_10462.jpg', '/home/pi/Desktop/images/15012025/04/07/image_15012025_04_07_24_9342.jpg', '/home/pi/Desktop/images/15012025/04/07/image_15012025_04_08_05_10380.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/06/image_15012025_04_06_45_10356.jpg
/home/pi/Desktop/images/15012025/04/06/image_15012025_04_06_54_9408.jpg
/home/pi/Desktop/images/15012025/04/06/image_15012025_04_07_05_10369.jpg
/home/pi/Desktop/images/15012025/04/07/image_15012025_04_07_15_10462.jpg
/home/pi/Desktop/images/15012025/04/07/image_15012025_04_07_24_9342.jpg
/home/pi/Desktop/images/15012025/04/07/image_15012025_04_08_05_10380.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329192790","1329192751","1329192780","1329192777","1329192756","1329192723"],"photo_ids_order":["1329192723","1329192751","1329192756","1329192777","1329192780","1329192790"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/959b2f2d7dda0bb376fba795352ad5dc.jpg","text":"TemporaryFile(/tmp/multipartBody761367872427358834asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964633640,"filename":"image_15012025_04_08_05_10380.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6ff6d7d3e03b22cae0c3916b2a9f7acd.jpg","text":"TemporaryFile(/tmp/multipartBody8558472969300952911asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964633640,"filename":"image_15012025_04_06_54_9408.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/83c21dd69f59e36ca78c2a357a19c226.jpg","text":"TemporaryFile(/tmp/multipartBody7896807426810685508asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964633640,"filename":"image_15012025_04_07_24_9342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e90b36041007b6a4ccf510ae024cd3fd.jpg","text":"TemporaryFile(/tmp/multipartBody4554661823287242968asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964633640,"filename":"image_15012025_04_07_15_10462.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b192f4e82315fa54917a91bcaab35ad0.jpg","text":"TemporaryFile(/tmp/multipartBody4481478197562982568asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964633640,"filename":"image_15012025_04_07_05_10369.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bb28d55e07633ae9cb5fcdc673562b0d.jpg","text":"TemporaryFile(/tmp/multipartBody7600782853994864148asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964633640,"filename":"image_15012025_04_06_45_10356.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329192756","file1":"1329192751","file0":"1329192723","file4":"1329192780","file5":"1329192790","file3":"1329192777"},"map_files_photo_id_array":[{"photo_id":"1329192790","filename":"file5"},{"photo_id":"1329192756","filename":"file2"},{"photo_id":"1329192780","filename":"file4"},{"photo_id":"1329192751","filename":"file1"},{"photo_id":"1329192723","filename":"file0"},{"photo_id":"1329192777","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329192790":["hashtag1","hashtag2"]},{"1329192751":["hashtag1","hashtag2"]},{"1329192780":["hashtag1","hashtag2"]},{"1329192777":["hashtag1","hashtag2"]},{"1329192756":["hashtag1","hashtag2"]},{"1329192723":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329192790, 1329192751, 1329192780, 1329192777, 1329192756, 1329192723)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.714744329452515 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 15 --only_old 0
2025-01-15 19:10:32.825380
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/08/image_15012025_04_08_15_10336.jpg', '/home/pi/Desktop/images/15012025/04/08/image_15012025_04_08_25_9386.jpg', '/home/pi/Desktop/images/15012025/04/08/image_15012025_04_08_35_10353.jpg', '/home/pi/Desktop/images/15012025/04/08/image_15012025_04_08_44_9406.jpg', '/home/pi/Desktop/images/15012025/04/08/image_15012025_04_08_55_10346.jpg', '/home/pi/Desktop/images/15012025/04/08/image_15012025_04_09_05_10408.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/08/image_15012025_04_08_15_10336.jpg
/home/pi/Desktop/images/15012025/04/08/image_15012025_04_08_25_9386.jpg
/home/pi/Desktop/images/15012025/04/08/image_15012025_04_08_35_10353.jpg
/home/pi/Desktop/images/15012025/04/08/image_15012025_04_08_44_9406.jpg
/home/pi/Desktop/images/15012025/04/08/image_15012025_04_08_55_10346.jpg
/home/pi/Desktop/images/15012025/04/08/image_15012025_04_09_05_10408.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6194961071014404 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
2025-01-15 19:10:42.688169
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/08/image_15012025_04_08_15_10336.jpg', '/home/pi/Desktop/images/15012025/04/08/image_15012025_04_08_25_9386.jpg', '/home/pi/Desktop/images/15012025/04/08/image_15012025_04_08_35_10353.jpg', '/home/pi/Desktop/images/15012025/04/08/image_15012025_04_08_44_9406.jpg', '/home/pi/Desktop/images/15012025/04/08/image_15012025_04_08_55_10346.jpg', '/home/pi/Desktop/images/15012025/04/08/image_15012025_04_09_05_10408.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/08/image_15012025_04_08_15_10336.jpg
/home/pi/Desktop/images/15012025/04/08/image_15012025_04_08_25_9386.jpg
/home/pi/Desktop/images/15012025/04/08/image_15012025_04_08_35_10353.jpg
/home/pi/Desktop/images/15012025/04/08/image_15012025_04_08_44_9406.jpg
/home/pi/Desktop/images/15012025/04/08/image_15012025_04_08_55_10346.jpg
/home/pi/Desktop/images/15012025/04/08/image_15012025_04_09_05_10408.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329193015","1329193018","1329192996","1329193020","1329193022","1329192980"],"photo_ids_order":["1329192980","1329192996","1329193015","1329193018","1329193020","1329193022"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/416718c317c1931e860672e64f26bfca.jpg","text":"TemporaryFile(/tmp/multipartBody5318771821287110402asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964703617,"filename":"image_15012025_04_08_35_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7e5813cd2334ce6493826a6013191d9e.jpg","text":"TemporaryFile(/tmp/multipartBody6307022404755338508asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964703617,"filename":"image_15012025_04_08_44_9406.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d712dcd0258cf3c8773bd7dc577cd9de.jpg","text":"TemporaryFile(/tmp/multipartBody2981844205076366281asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964703617,"filename":"image_15012025_04_08_25_9386.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/12eccd8e08032c21e4b3d2546e5db1bc.jpg","text":"TemporaryFile(/tmp/multipartBody5123130642159991970asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964703617,"filename":"image_15012025_04_08_55_10346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/89816eeb68838b7edd823b2df2e869ac.jpg","text":"TemporaryFile(/tmp/multipartBody2314887573615675771asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964703617,"filename":"image_15012025_04_09_05_10408.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e9a78805a1e1292b2830283fe30b8810.jpg","text":"TemporaryFile(/tmp/multipartBody4366606220177726687asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964703617,"filename":"image_15012025_04_08_15_10336.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329193015","file1":"1329192996","file0":"1329192980","file4":"1329193020","file5":"1329193022","file3":"1329193018"},"map_files_photo_id_array":[{"photo_id":"1329193022","filename":"file5"},{"photo_id":"1329193015","filename":"file2"},{"photo_id":"1329193020","filename":"file4"},{"photo_id":"1329192996","filename":"file1"},{"photo_id":"1329192980","filename":"file0"},{"photo_id":"1329193018","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329193015":["hashtag1","hashtag2"]},{"1329193018":["hashtag1","hashtag2"]},{"1329192996":["hashtag1","hashtag2"]},{"1329193020":["hashtag1","hashtag2"]},{"1329193022":["hashtag1","hashtag2"]},{"1329192980":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329193015, 1329193018, 1329192996, 1329193020, 1329193022, 1329192980)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.70085787773132 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 15 --only_old 0
2025-01-15 19:11:32.954713
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/09/image_15012025_04_09_14_9386.jpg', '/home/pi/Desktop/images/15012025/04/09/image_15012025_04_09_25_10352.jpg', '/home/pi/Desktop/images/15012025/04/09/image_15012025_04_09_34_9448.jpg', '/home/pi/Desktop/images/15012025/04/09/image_15012025_04_09_45_10341.jpg', '/home/pi/Desktop/images/15012025/04/09/image_15012025_04_09_55_10396.jpg', '/home/pi/Desktop/images/15012025/04/10/image_15012025_04_10_15_10364.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/09/image_15012025_04_09_14_9386.jpg
/home/pi/Desktop/images/15012025/04/09/image_15012025_04_09_25_10352.jpg
/home/pi/Desktop/images/15012025/04/09/image_15012025_04_09_34_9448.jpg
/home/pi/Desktop/images/15012025/04/09/image_15012025_04_09_45_10341.jpg
/home/pi/Desktop/images/15012025/04/09/image_15012025_04_09_55_10396.jpg
/home/pi/Desktop/images/15012025/04/10/image_15012025_04_10_15_10364.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329193081","1329193090","1329193066","1329193071","1329193059","1329193088"],"photo_ids_order":["1329193059","1329193066","1329193071","1329193081","1329193088","1329193090"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dbcb7ed4631265571142e2f2fee95620.jpg","text":"TemporaryFile(/tmp/multipartBody4426314065536832367asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964753977,"filename":"image_15012025_04_09_45_10341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ac58b7c09a1121868e2f8ee93d2d1d6c.jpg","text":"TemporaryFile(/tmp/multipartBody7650542434392976688asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964753977,"filename":"image_15012025_04_10_15_10364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e7ae1dc7f630e5b8c7d0af95e5e88b0a.jpg","text":"TemporaryFile(/tmp/multipartBody2931176694478633052asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964753977,"filename":"image_15012025_04_09_25_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a51328ceda509a19e6477dd168086724.jpg","text":"TemporaryFile(/tmp/multipartBody1913024890027353006asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964753977,"filename":"image_15012025_04_09_34_9448.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7d7cf9ef29bc60e6c5eb183c675f2f56.jpg","text":"TemporaryFile(/tmp/multipartBody7457304705965795255asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964753977,"filename":"image_15012025_04_09_14_9386.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fd2a2eb8bc054022fc42185ff74a77bd.jpg","text":"TemporaryFile(/tmp/multipartBody3140384703652222595asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964753977,"filename":"image_15012025_04_09_55_10396.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329193071","file1":"1329193066","file0":"1329193059","file4":"1329193088","file5":"1329193090","file3":"1329193081"},"map_files_photo_id_array":[{"photo_id":"1329193090","filename":"file5"},{"photo_id":"1329193071","filename":"file2"},{"photo_id":"1329193088","filename":"file4"},{"photo_id":"1329193066","filename":"file1"},{"photo_id":"1329193059","filename":"file0"},{"photo_id":"1329193081","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329193081":["hashtag1","hashtag2"]},{"1329193090":["hashtag1","hashtag2"]},{"1329193066":["hashtag1","hashtag2"]},{"1329193071":["hashtag1","hashtag2"]},{"1329193059":["hashtag1","hashtag2"]},{"1329193088":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329193081, 1329193090, 1329193066, 1329193071, 1329193059, 1329193088)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 58.761961936950684 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 15 --only_old 0
2025-01-15 19:12:33.128901
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/10/image_15012025_04_10_25_10386.jpg', '/home/pi/Desktop/images/15012025/04/10/image_15012025_04_10_34_9346.jpg', '/home/pi/Desktop/images/15012025/04/10/image_15012025_04_10_45_10338.jpg', '/home/pi/Desktop/images/15012025/04/10/image_15012025_04_10_54_9403.jpg', '/home/pi/Desktop/images/15012025/04/10/image_15012025_04_11_05_10358.jpg', '/home/pi/Desktop/images/15012025/04/11/image_15012025_04_11_15_10361.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/10/image_15012025_04_10_25_10386.jpg
/home/pi/Desktop/images/15012025/04/10/image_15012025_04_10_34_9346.jpg
/home/pi/Desktop/images/15012025/04/10/image_15012025_04_10_45_10338.jpg
/home/pi/Desktop/images/15012025/04/10/image_15012025_04_10_54_9403.jpg
/home/pi/Desktop/images/15012025/04/10/image_15012025_04_11_05_10358.jpg
/home/pi/Desktop/images/15012025/04/11/image_15012025_04_11_15_10361.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329193156","1329193150","1329193140","1329193137","1329193146","1329193131"],"photo_ids_order":["1329193131","1329193137","1329193140","1329193146","1329193150","1329193156"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8157849d7c89c5a83b9bf930e129b0ab.jpg","text":"TemporaryFile(/tmp/multipartBody3128832622060149980asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964814159,"filename":"image_15012025_04_11_15_10361.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2c3736ce6f48a5853949028b87252d1b.jpg","text":"TemporaryFile(/tmp/multipartBody5292751435614696537asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964814159,"filename":"image_15012025_04_11_05_10358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5a4f340f1bee77477c0f8b67dfb71817.jpg","text":"TemporaryFile(/tmp/multipartBody1267710227040753201asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964814159,"filename":"image_15012025_04_10_45_10338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/31bd9e153d072b7c4e8895c39af3a965.jpg","text":"TemporaryFile(/tmp/multipartBody1359061217086442488asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964814159,"filename":"image_15012025_04_10_34_9346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5f21ca94ed587bfb2f62573186ec6660.jpg","text":"TemporaryFile(/tmp/multipartBody2406947555776056729asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964814159,"filename":"image_15012025_04_10_54_9403.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6f698687d32b53bf33e4cf1a7a5806d1.jpg","text":"TemporaryFile(/tmp/multipartBody2095839472515361620asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964814159,"filename":"image_15012025_04_10_25_10386.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329193140","file1":"1329193137","file0":"1329193131","file4":"1329193150","file5":"1329193156","file3":"1329193146"},"map_files_photo_id_array":[{"photo_id":"1329193156","filename":"file5"},{"photo_id":"1329193140","filename":"file2"},{"photo_id":"1329193150","filename":"file4"},{"photo_id":"1329193137","filename":"file1"},{"photo_id":"1329193131","filename":"file0"},{"photo_id":"1329193146","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329193156":["hashtag1","hashtag2"]},{"1329193150":["hashtag1","hashtag2"]},{"1329193140":["hashtag1","hashtag2"]},{"1329193137":["hashtag1","hashtag2"]},{"1329193146":["hashtag1","hashtag2"]},{"1329193131":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329193156, 1329193150, 1329193140, 1329193137, 1329193146, 1329193131)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.54304122924805 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 15 --only_old 0
2025-01-15 19:13:32.436312
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/11/image_15012025_04_11_24_9438.jpg', '/home/pi/Desktop/images/15012025/04/11/image_15012025_04_11_35_10371.jpg', '/home/pi/Desktop/images/15012025/04/11/image_15012025_04_11_45_10343.jpg', '/home/pi/Desktop/images/15012025/04/11/image_15012025_04_11_54_9352.jpg', '/home/pi/Desktop/images/15012025/04/11/image_15012025_04_12_05_10322.jpg', '/home/pi/Desktop/images/15012025/04/12/image_15012025_04_12_15_10348.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/11/image_15012025_04_11_24_9438.jpg
/home/pi/Desktop/images/15012025/04/11/image_15012025_04_11_35_10371.jpg
/home/pi/Desktop/images/15012025/04/11/image_15012025_04_11_45_10343.jpg
/home/pi/Desktop/images/15012025/04/11/image_15012025_04_11_54_9352.jpg
/home/pi/Desktop/images/15012025/04/11/image_15012025_04_12_05_10322.jpg
/home/pi/Desktop/images/15012025/04/12/image_15012025_04_12_15_10348.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329193189","1329193168","1329193185","1329193188","1329193190","1329193175"],"photo_ids_order":["1329193168","1329193175","1329193185","1329193188","1329193189","1329193190"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/da99a36214d1624d20a15b99bbd74c52.jpg","text":"TemporaryFile(/tmp/multipartBody3806116145234274203asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964873460,"filename":"image_15012025_04_12_05_10322.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/db1941e51e0091f5e12dbed381687560.jpg","text":"TemporaryFile(/tmp/multipartBody3699549278039356159asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964873460,"filename":"image_15012025_04_11_24_9438.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a97b920550066d10bc02cb554afc5bfd.jpg","text":"TemporaryFile(/tmp/multipartBody4710799232917572466asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964873460,"filename":"image_15012025_04_11_45_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fcfe8d7faf0c4b0ca772dbe08ba0da0e.jpg","text":"TemporaryFile(/tmp/multipartBody8203383787218227045asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964873460,"filename":"image_15012025_04_11_54_9352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ea059d67302420321f91538581e1888d.jpg","text":"TemporaryFile(/tmp/multipartBody837201927246324225asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964873460,"filename":"image_15012025_04_12_15_10348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f0ab4023de6cb581ca422e331535d86b.jpg","text":"TemporaryFile(/tmp/multipartBody1287702410972067971asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964873460,"filename":"image_15012025_04_11_35_10371.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329193185","file1":"1329193175","file0":"1329193168","file4":"1329193189","file5":"1329193190","file3":"1329193188"},"map_files_photo_id_array":[{"photo_id":"1329193190","filename":"file5"},{"photo_id":"1329193185","filename":"file2"},{"photo_id":"1329193189","filename":"file4"},{"photo_id":"1329193175","filename":"file1"},{"photo_id":"1329193168","filename":"file0"},{"photo_id":"1329193188","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329193189":["hashtag1","hashtag2"]},{"1329193168":["hashtag1","hashtag2"]},{"1329193185":["hashtag1","hashtag2"]},{"1329193188":["hashtag1","hashtag2"]},{"1329193190":["hashtag1","hashtag2"]},{"1329193175":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329193189, 1329193168, 1329193185, 1329193188, 1329193190, 1329193175)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.90095376968384 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 15 --only_old 0
2025-01-15 19:14:32.692588
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/12/image_15012025_04_12_24_9351.jpg', '/home/pi/Desktop/images/15012025/04/12/image_15012025_04_12_35_10431.jpg', '/home/pi/Desktop/images/15012025/04/12/image_15012025_04_12_45_10269.jpg', '/home/pi/Desktop/images/15012025/04/12/image_15012025_04_12_55_9362.jpg', '/home/pi/Desktop/images/15012025/04/12/image_15012025_04_13_05_10394.jpg', '/home/pi/Desktop/images/15012025/04/13/image_15012025_04_13_14_9401.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/12/image_15012025_04_12_24_9351.jpg
/home/pi/Desktop/images/15012025/04/12/image_15012025_04_12_35_10431.jpg
/home/pi/Desktop/images/15012025/04/12/image_15012025_04_12_45_10269.jpg
/home/pi/Desktop/images/15012025/04/12/image_15012025_04_12_55_9362.jpg
/home/pi/Desktop/images/15012025/04/12/image_15012025_04_13_05_10394.jpg
/home/pi/Desktop/images/15012025/04/13/image_15012025_04_13_14_9401.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329193237","1329193231","1329193225","1329193242","1329193250","1329193247"],"photo_ids_order":["1329193225","1329193231","1329193237","1329193242","1329193247","1329193250"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e2760495790e41328a8349de2e4bbfc9.jpg","text":"TemporaryFile(/tmp/multipartBody5132770251263780899asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964933695,"filename":"image_15012025_04_12_45_10269.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3863847f28059ff9967ead0f0503a20e.jpg","text":"TemporaryFile(/tmp/multipartBody5214272090677626079asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964933695,"filename":"image_15012025_04_12_35_10431.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5ff9a56a9b06ab2cd064a21342aa6246.jpg","text":"TemporaryFile(/tmp/multipartBody4667965810327430388asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964933695,"filename":"image_15012025_04_12_24_9351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5e240eb4212c9f82862b64cf9a372f9b.jpg","text":"TemporaryFile(/tmp/multipartBody2548604586277621504asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964933695,"filename":"image_15012025_04_12_55_9362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bf2b375371932cb4d7599919acee144e.jpg","text":"TemporaryFile(/tmp/multipartBody8655578223051073360asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964933695,"filename":"image_15012025_04_13_14_9401.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/22a673e7d3ab10efb0a3c446b1d94598.jpg","text":"TemporaryFile(/tmp/multipartBody4890380403496395700asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964933695,"filename":"image_15012025_04_13_05_10394.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329193237","file1":"1329193231","file0":"1329193225","file4":"1329193247","file5":"1329193250","file3":"1329193242"},"map_files_photo_id_array":[{"photo_id":"1329193250","filename":"file5"},{"photo_id":"1329193237","filename":"file2"},{"photo_id":"1329193247","filename":"file4"},{"photo_id":"1329193231","filename":"file1"},{"photo_id":"1329193225","filename":"file0"},{"photo_id":"1329193242","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329193237":["hashtag1","hashtag2"]},{"1329193231":["hashtag1","hashtag2"]},{"1329193225":["hashtag1","hashtag2"]},{"1329193242":["hashtag1","hashtag2"]},{"1329193250":["hashtag1","hashtag2"]},{"1329193247":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329193237, 1329193231, 1329193225, 1329193242, 1329193250, 1329193247)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.87313961982727 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 15 --only_old 0
2025-01-15 19:15:32.851506
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/13/image_15012025_04_13_25_10362.jpg', '/home/pi/Desktop/images/15012025/04/13/image_15012025_04_13_35_10479.jpg', '/home/pi/Desktop/images/15012025/04/13/image_15012025_04_13_45_9403.jpg', '/home/pi/Desktop/images/15012025/04/13/image_15012025_04_13_55_10335.jpg', '/home/pi/Desktop/images/15012025/04/13/image_15012025_04_14_04_9406.jpg', '/home/pi/Desktop/images/15012025/04/14/image_15012025_04_14_15_10361.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/13/image_15012025_04_13_25_10362.jpg
/home/pi/Desktop/images/15012025/04/13/image_15012025_04_13_35_10479.jpg
/home/pi/Desktop/images/15012025/04/13/image_15012025_04_13_45_9403.jpg
/home/pi/Desktop/images/15012025/04/13/image_15012025_04_13_55_10335.jpg
/home/pi/Desktop/images/15012025/04/13/image_15012025_04_14_04_9406.jpg
/home/pi/Desktop/images/15012025/04/14/image_15012025_04_14_15_10361.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329193310","1329193282","1329193300","1329193272","1329193268","1329193307"],"photo_ids_order":["1329193268","1329193272","1329193282","1329193300","1329193307","1329193310"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/342ce08cecbae99d576da19ed1f4c1f0.jpg","text":"TemporaryFile(/tmp/multipartBody6472429405272130745asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964993862,"filename":"image_15012025_04_14_15_10361.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/14ba7abc85204d2879ff457e7de2c200.jpg","text":"TemporaryFile(/tmp/multipartBody432186664105153961asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964993862,"filename":"image_15012025_04_13_45_9403.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5ac9547ec8302faec29c30dee469aa1a.jpg","text":"TemporaryFile(/tmp/multipartBody6933113987593456310asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964993862,"filename":"image_15012025_04_13_55_10335.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/71a473666d5433bd96360d5617b6af85.jpg","text":"TemporaryFile(/tmp/multipartBody6962784686896079040asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964993862,"filename":"image_15012025_04_13_35_10479.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/be3ba74a03d8e6cacd7669b327675432.jpg","text":"TemporaryFile(/tmp/multipartBody1857858912314932212asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964993862,"filename":"image_15012025_04_13_25_10362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/89372779db76ed91b722c5d76c5f7c91.jpg","text":"TemporaryFile(/tmp/multipartBody8192159470842961703asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736964993862,"filename":"image_15012025_04_14_04_9406.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329193282","file1":"1329193272","file0":"1329193268","file4":"1329193307","file5":"1329193310","file3":"1329193300"},"map_files_photo_id_array":[{"photo_id":"1329193310","filename":"file5"},{"photo_id":"1329193282","filename":"file2"},{"photo_id":"1329193307","filename":"file4"},{"photo_id":"1329193272","filename":"file1"},{"photo_id":"1329193268","filename":"file0"},{"photo_id":"1329193300","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329193310":["hashtag1","hashtag2"]},{"1329193282":["hashtag1","hashtag2"]},{"1329193300":["hashtag1","hashtag2"]},{"1329193272":["hashtag1","hashtag2"]},{"1329193268":["hashtag1","hashtag2"]},{"1329193307":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329193310, 1329193282, 1329193300, 1329193272, 1329193268, 1329193307)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.816046953201294 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 15 --only_old 0
2025-01-15 19:16:33.906270
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/14/image_15012025_04_14_25_10473.jpg', '/home/pi/Desktop/images/15012025/04/14/image_15012025_04_14_34_9330.jpg', '/home/pi/Desktop/images/15012025/04/14/image_15012025_04_14_45_10337.jpg', '/home/pi/Desktop/images/15012025/04/14/image_15012025_04_14_55_10356.jpg', '/home/pi/Desktop/images/15012025/04/14/image_15012025_04_15_05_9362.jpg', '/home/pi/Desktop/images/15012025/04/15/image_15012025_04_15_15_10366.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/14/image_15012025_04_14_25_10473.jpg
/home/pi/Desktop/images/15012025/04/14/image_15012025_04_14_34_9330.jpg
/home/pi/Desktop/images/15012025/04/14/image_15012025_04_14_45_10337.jpg
/home/pi/Desktop/images/15012025/04/14/image_15012025_04_14_55_10356.jpg
/home/pi/Desktop/images/15012025/04/14/image_15012025_04_15_05_9362.jpg
/home/pi/Desktop/images/15012025/04/15/image_15012025_04_15_15_10366.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329193381","1329193375","1329193378","1329193371","1329193365","1329193361"],"photo_ids_order":["1329193361","1329193365","1329193371","1329193375","1329193378","1329193381"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3eee3fc05af1c5c922c16217f0be8cc5.jpg","text":"TemporaryFile(/tmp/multipartBody8928264280817304121asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965054919,"filename":"image_15012025_04_15_15_10366.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/04d4a4aeaf7b01f29bbcc10a84ab9663.jpg","text":"TemporaryFile(/tmp/multipartBody6937011409171404443asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965054919,"filename":"image_15012025_04_14_55_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e0f9950ee90148573c9ede7c15a5ad62.jpg","text":"TemporaryFile(/tmp/multipartBody4051197744633033207asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965054919,"filename":"image_15012025_04_15_05_9362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f273c637268b9152e361532a1532b6ac.jpg","text":"TemporaryFile(/tmp/multipartBody7051276855725733888asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965054919,"filename":"image_15012025_04_14_45_10337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1330ee48ea16025d9c5e6fce27f28a10.jpg","text":"TemporaryFile(/tmp/multipartBody1232093165122779145asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965054919,"filename":"image_15012025_04_14_34_9330.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/eb64683d52bf305a4babaa0316000f9f.jpg","text":"TemporaryFile(/tmp/multipartBody3208663321095628529asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965054919,"filename":"image_15012025_04_14_25_10473.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329193371","file1":"1329193365","file0":"1329193361","file4":"1329193378","file5":"1329193381","file3":"1329193375"},"map_files_photo_id_array":[{"photo_id":"1329193381","filename":"file5"},{"photo_id":"1329193371","filename":"file2"},{"photo_id":"1329193378","filename":"file4"},{"photo_id":"1329193365","filename":"file1"},{"photo_id":"1329193361","filename":"file0"},{"photo_id":"1329193375","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329193381":["hashtag1","hashtag2"]},{"1329193375":["hashtag1","hashtag2"]},{"1329193378":["hashtag1","hashtag2"]},{"1329193371":["hashtag1","hashtag2"]},{"1329193365":["hashtag1","hashtag2"]},{"1329193361":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329193381, 1329193375, 1329193378, 1329193371, 1329193365, 1329193361)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.403156042099 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 15 --only_old 0
2025-01-15 19:17:32.280466
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/15/image_15012025_04_15_24_9419.jpg', '/home/pi/Desktop/images/15012025/04/15/image_15012025_04_15_35_10335.jpg', '/home/pi/Desktop/images/15012025/04/15/image_15012025_04_15_45_10434.jpg', '/home/pi/Desktop/images/15012025/04/15/image_15012025_04_15_54_9347.jpg', '/home/pi/Desktop/images/15012025/04/15/image_15012025_04_16_05_10404.jpg', '/home/pi/Desktop/images/15012025/04/16/image_15012025_04_16_15_10370.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/15/image_15012025_04_15_24_9419.jpg
/home/pi/Desktop/images/15012025/04/15/image_15012025_04_15_35_10335.jpg
/home/pi/Desktop/images/15012025/04/15/image_15012025_04_15_45_10434.jpg
/home/pi/Desktop/images/15012025/04/15/image_15012025_04_15_54_9347.jpg
/home/pi/Desktop/images/15012025/04/15/image_15012025_04_16_05_10404.jpg
/home/pi/Desktop/images/15012025/04/16/image_15012025_04_16_15_10370.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329193453","1329193450","1329193423","1329193405","1329193431","1329193455"],"photo_ids_order":["1329193405","1329193423","1329193431","1329193450","1329193453","1329193455"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bfa44a2211253fad9c3016261285549a.jpg","text":"TemporaryFile(/tmp/multipartBody969374939345101509asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965113308,"filename":"image_15012025_04_16_05_10404.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bd02187389e5feb675afed83b4c15fc0.jpg","text":"TemporaryFile(/tmp/multipartBody1937548853695117926asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965113308,"filename":"image_15012025_04_15_54_9347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2d84152e73853bc2187b32fa26f5a284.jpg","text":"TemporaryFile(/tmp/multipartBody8517048945369836700asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965113308,"filename":"image_15012025_04_15_35_10335.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a889c2035f882178e834df3dec77560c.jpg","text":"TemporaryFile(/tmp/multipartBody6221882129093016534asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965113308,"filename":"image_15012025_04_15_24_9419.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8c20edd52a212b9a3df03fef9a408cde.jpg","text":"TemporaryFile(/tmp/multipartBody7208513091126500754asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965113308,"filename":"image_15012025_04_15_45_10434.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0db66cceb3abb988ec13a921b38e1e30.jpg","text":"TemporaryFile(/tmp/multipartBody6819155809214076084asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965113308,"filename":"image_15012025_04_16_15_10370.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329193431","file1":"1329193423","file0":"1329193405","file4":"1329193453","file5":"1329193455","file3":"1329193450"},"map_files_photo_id_array":[{"photo_id":"1329193455","filename":"file5"},{"photo_id":"1329193431","filename":"file2"},{"photo_id":"1329193453","filename":"file4"},{"photo_id":"1329193423","filename":"file1"},{"photo_id":"1329193405","filename":"file0"},{"photo_id":"1329193450","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329193453":["hashtag1","hashtag2"]},{"1329193450":["hashtag1","hashtag2"]},{"1329193423":["hashtag1","hashtag2"]},{"1329193405":["hashtag1","hashtag2"]},{"1329193431":["hashtag1","hashtag2"]},{"1329193455":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329193453, 1329193450, 1329193423, 1329193405, 1329193431, 1329193455)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.03937101364136 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 15 --only_old 0
2025-01-15 19:18:32.500672
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/16/image_15012025_04_16_25_9349.jpg', '/home/pi/Desktop/images/15012025/04/16/image_15012025_04_16_35_10362.jpg', '/home/pi/Desktop/images/15012025/04/16/image_15012025_04_16_44_9341.jpg', '/home/pi/Desktop/images/15012025/04/16/image_15012025_04_16_55_10412.jpg', '/home/pi/Desktop/images/15012025/04/16/image_15012025_04_17_05_10491.jpg', '/home/pi/Desktop/images/15012025/04/17/image_15012025_04_17_14_9347.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/16/image_15012025_04_16_25_9349.jpg
/home/pi/Desktop/images/15012025/04/16/image_15012025_04_16_35_10362.jpg
/home/pi/Desktop/images/15012025/04/16/image_15012025_04_16_44_9341.jpg
/home/pi/Desktop/images/15012025/04/16/image_15012025_04_16_55_10412.jpg
/home/pi/Desktop/images/15012025/04/16/image_15012025_04_17_05_10491.jpg
/home/pi/Desktop/images/15012025/04/17/image_15012025_04_17_14_9347.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329193645","1329193555","1329193513","1329193507","1329193572","1329193574"],"photo_ids_order":["1329193507","1329193513","1329193555","1329193572","1329193574","1329193645"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/900dfe5c78542a95f8fbcd6cfcd81092.jpg","text":"TemporaryFile(/tmp/multipartBody3694763016729127689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965173499,"filename":"image_15012025_04_17_14_9347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1a5eb9dcb04324596986e9cc5f76d90f.jpg","text":"TemporaryFile(/tmp/multipartBody6056407840515892936asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965173499,"filename":"image_15012025_04_16_44_9341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9d7cddcc4b6679359abdb9a10e66320d.jpg","text":"TemporaryFile(/tmp/multipartBody1315072814498100823asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965173499,"filename":"image_15012025_04_16_35_10362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a788454c6fd5320eeac804ed5f35a356.jpg","text":"TemporaryFile(/tmp/multipartBody6260419215223877606asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965173499,"filename":"image_15012025_04_16_25_9349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/201b47d1729eb1875ffa2dc7cc4ace33.jpg","text":"TemporaryFile(/tmp/multipartBody4959620451735397235asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965173499,"filename":"image_15012025_04_16_55_10412.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dd654ce1c38064a7556027fd342819ac.jpg","text":"TemporaryFile(/tmp/multipartBody7693754020178943170asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965173499,"filename":"image_15012025_04_17_05_10491.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329193555","file1":"1329193513","file0":"1329193507","file4":"1329193574","file5":"1329193645","file3":"1329193572"},"map_files_photo_id_array":[{"photo_id":"1329193645","filename":"file5"},{"photo_id":"1329193555","filename":"file2"},{"photo_id":"1329193574","filename":"file4"},{"photo_id":"1329193513","filename":"file1"},{"photo_id":"1329193507","filename":"file0"},{"photo_id":"1329193572","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329193645":["hashtag1","hashtag2"]},{"1329193555":["hashtag1","hashtag2"]},{"1329193513":["hashtag1","hashtag2"]},{"1329193507":["hashtag1","hashtag2"]},{"1329193572":["hashtag1","hashtag2"]},{"1329193574":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329193645, 1329193555, 1329193513, 1329193507, 1329193572, 1329193574)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.51958394050598 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 15 --only_old 0
2025-01-15 19:19:32.931406
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/17/image_15012025_04_17_25_10343.jpg', '/home/pi/Desktop/images/15012025/04/17/image_15012025_04_17_34_9354.jpg', '/home/pi/Desktop/images/15012025/04/17/image_15012025_04_17_45_10413.jpg', '/home/pi/Desktop/images/15012025/04/17/image_15012025_04_17_55_10469.jpg', '/home/pi/Desktop/images/15012025/04/17/image_15012025_04_18_04_9353.jpg', '/home/pi/Desktop/images/15012025/04/18/image_15012025_04_18_15_10350.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/17/image_15012025_04_17_25_10343.jpg
/home/pi/Desktop/images/15012025/04/17/image_15012025_04_17_34_9354.jpg
/home/pi/Desktop/images/15012025/04/17/image_15012025_04_17_45_10413.jpg
/home/pi/Desktop/images/15012025/04/17/image_15012025_04_17_55_10469.jpg
/home/pi/Desktop/images/15012025/04/17/image_15012025_04_18_04_9353.jpg
/home/pi/Desktop/images/15012025/04/18/image_15012025_04_18_15_10350.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329194238","1329194267","1329194297","1329194300","1329194287","1329194260"],"photo_ids_order":["1329194238","1329194260","1329194267","1329194287","1329194297","1329194300"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3145a5d82417455a15aa19788073610a.jpg","text":"TemporaryFile(/tmp/multipartBody3511239559299318917asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965233953,"filename":"image_15012025_04_17_25_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0c5c8c68fa100556f3f8ba61415cda06.jpg","text":"TemporaryFile(/tmp/multipartBody116282850614126222asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965233953,"filename":"image_15012025_04_17_45_10413.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/39c508535cf634cdd7bee7e29d55fd0e.jpg","text":"TemporaryFile(/tmp/multipartBody5638251403979912454asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965233953,"filename":"image_15012025_04_18_04_9353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/913abe65bd478afc6848b4c9657d0a41.jpg","text":"TemporaryFile(/tmp/multipartBody3777839922201849460asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965233953,"filename":"image_15012025_04_18_15_10350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/71f10d26c9d728a6c457ec26f338f8db.jpg","text":"TemporaryFile(/tmp/multipartBody7417145722593753690asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965233953,"filename":"image_15012025_04_17_55_10469.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7b4c3f1d3f19bf6f86d40d717b7de624.jpg","text":"TemporaryFile(/tmp/multipartBody371909824841896533asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965233953,"filename":"image_15012025_04_17_34_9354.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329194267","file1":"1329194260","file0":"1329194238","file4":"1329194297","file5":"1329194300","file3":"1329194287"},"map_files_photo_id_array":[{"photo_id":"1329194300","filename":"file5"},{"photo_id":"1329194267","filename":"file2"},{"photo_id":"1329194297","filename":"file4"},{"photo_id":"1329194260","filename":"file1"},{"photo_id":"1329194238","filename":"file0"},{"photo_id":"1329194287","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329194238":["hashtag1","hashtag2"]},{"1329194267":["hashtag1","hashtag2"]},{"1329194297":["hashtag1","hashtag2"]},{"1329194300":["hashtag1","hashtag2"]},{"1329194287":["hashtag1","hashtag2"]},{"1329194260":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329194238, 1329194267, 1329194297, 1329194300, 1329194287, 1329194260)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.65723133087158 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 15 --only_old 0
2025-01-15 19:20:32.993792
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/18/image_15012025_04_18_24_9423.jpg', '/home/pi/Desktop/images/15012025/04/18/image_15012025_04_18_35_10347.jpg', '/home/pi/Desktop/images/15012025/04/18/image_15012025_04_18_45_10342.jpg', '/home/pi/Desktop/images/15012025/04/18/image_15012025_04_18_54_9377.jpg', '/home/pi/Desktop/images/15012025/04/18/image_15012025_04_19_05_10368.jpg', '/home/pi/Desktop/images/15012025/04/19/image_15012025_04_19_15_10433.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/18/image_15012025_04_18_24_9423.jpg
/home/pi/Desktop/images/15012025/04/18/image_15012025_04_18_35_10347.jpg
/home/pi/Desktop/images/15012025/04/18/image_15012025_04_18_45_10342.jpg
/home/pi/Desktop/images/15012025/04/18/image_15012025_04_18_54_9377.jpg
/home/pi/Desktop/images/15012025/04/18/image_15012025_04_19_05_10368.jpg
/home/pi/Desktop/images/15012025/04/19/image_15012025_04_19_15_10433.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329194509","1329194524","1329194535","1329194538","1329194528","1329194539"],"photo_ids_order":["1329194509","1329194524","1329194528","1329194535","1329194538","1329194539"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/06fedd72268a4b2f8155cb76e69e0618.jpg","text":"TemporaryFile(/tmp/multipartBody6351192169348169509asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965293994,"filename":"image_15012025_04_18_24_9423.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ec32c60b92ed8f401a21085202087967.jpg","text":"TemporaryFile(/tmp/multipartBody3474286648181454091asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965293994,"filename":"image_15012025_04_18_35_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6b00aa51a97fbdcd44303738cc98b1b0.jpg","text":"TemporaryFile(/tmp/multipartBody5847169653918190230asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965293994,"filename":"image_15012025_04_18_54_9377.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/be5e945785e2300d38021ffb54c689f4.jpg","text":"TemporaryFile(/tmp/multipartBody8431877661477171137asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965293994,"filename":"image_15012025_04_19_05_10368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/91f6e4c30e17df6cd0fd737869ca94cc.jpg","text":"TemporaryFile(/tmp/multipartBody1146097578115633869asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965293994,"filename":"image_15012025_04_18_45_10342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/052d364360eb8b7b2e0fff78e1aa6502.jpg","text":"TemporaryFile(/tmp/multipartBody9031438125744767656asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965293994,"filename":"image_15012025_04_19_15_10433.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329194528","file1":"1329194524","file0":"1329194509","file4":"1329194538","file5":"1329194539","file3":"1329194535"},"map_files_photo_id_array":[{"photo_id":"1329194539","filename":"file5"},{"photo_id":"1329194528","filename":"file2"},{"photo_id":"1329194538","filename":"file4"},{"photo_id":"1329194524","filename":"file1"},{"photo_id":"1329194509","filename":"file0"},{"photo_id":"1329194535","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329194509":["hashtag1","hashtag2"]},{"1329194524":["hashtag1","hashtag2"]},{"1329194535":["hashtag1","hashtag2"]},{"1329194538":["hashtag1","hashtag2"]},{"1329194528":["hashtag1","hashtag2"]},{"1329194539":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329194509, 1329194524, 1329194535, 1329194538, 1329194528, 1329194539)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.872133016586304 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 15 --only_old 0
2025-01-15 19:21:32.401695
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/19/image_15012025_04_19_24_9366.jpg', '/home/pi/Desktop/images/15012025/04/19/image_15012025_04_19_35_10356.jpg', '/home/pi/Desktop/images/15012025/04/19/image_15012025_04_19_44_9434.jpg', '/home/pi/Desktop/images/15012025/04/19/image_15012025_04_19_55_10359.jpg', '/home/pi/Desktop/images/15012025/04/19/image_15012025_04_20_05_10399.jpg', '/home/pi/Desktop/images/15012025/04/20/image_15012025_04_20_14_9348.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/19/image_15012025_04_19_24_9366.jpg
/home/pi/Desktop/images/15012025/04/19/image_15012025_04_19_35_10356.jpg
/home/pi/Desktop/images/15012025/04/19/image_15012025_04_19_44_9434.jpg
/home/pi/Desktop/images/15012025/04/19/image_15012025_04_19_55_10359.jpg
/home/pi/Desktop/images/15012025/04/19/image_15012025_04_20_05_10399.jpg
/home/pi/Desktop/images/15012025/04/20/image_15012025_04_20_14_9348.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329194589","1329194577","1329194585","1329194564","1329194594","1329194557"],"photo_ids_order":["1329194557","1329194564","1329194577","1329194585","1329194589","1329194594"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6f00e63f5f2712cff7cf79a363af0ce0.jpg","text":"TemporaryFile(/tmp/multipartBody7720477386888337915asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965353415,"filename":"image_15012025_04_20_05_10399.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ea798db79e78b533d7f5115f4dc444e2.jpg","text":"TemporaryFile(/tmp/multipartBody2806208957389126383asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965353415,"filename":"image_15012025_04_19_44_9434.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/250e0d448437dc775553b364b078176e.jpg","text":"TemporaryFile(/tmp/multipartBody6735858378284512706asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965353415,"filename":"image_15012025_04_19_55_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/abd746c6864d3c6574092e3a38003300.jpg","text":"TemporaryFile(/tmp/multipartBody7631354267451968825asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965353415,"filename":"image_15012025_04_19_35_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5dcbe09abf72fab639fa61b830294a65.jpg","text":"TemporaryFile(/tmp/multipartBody2725869701297122038asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965353415,"filename":"image_15012025_04_20_14_9348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3082559def7d14b69f605e1d2b3b4d78.jpg","text":"TemporaryFile(/tmp/multipartBody1121649011604923195asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965353415,"filename":"image_15012025_04_19_24_9366.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329194577","file1":"1329194564","file0":"1329194557","file4":"1329194589","file5":"1329194594","file3":"1329194585"},"map_files_photo_id_array":[{"photo_id":"1329194594","filename":"file5"},{"photo_id":"1329194577","filename":"file2"},{"photo_id":"1329194589","filename":"file4"},{"photo_id":"1329194564","filename":"file1"},{"photo_id":"1329194557","filename":"file0"},{"photo_id":"1329194585","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329194589":["hashtag1","hashtag2"]},{"1329194577":["hashtag1","hashtag2"]},{"1329194585":["hashtag1","hashtag2"]},{"1329194564":["hashtag1","hashtag2"]},{"1329194594":["hashtag1","hashtag2"]},{"1329194557":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329194589, 1329194577, 1329194585, 1329194564, 1329194594, 1329194557)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 48.49565577507019 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 15 --only_old 0
2025-01-15 19:22:32.624911
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/20/image_15012025_04_20_35_10390.jpg', '/home/pi/Desktop/images/15012025/04/20/image_15012025_04_20_44_9381.jpg', '/home/pi/Desktop/images/15012025/04/20/image_15012025_04_20_55_10412.jpg', '/home/pi/Desktop/images/15012025/04/20/image_15012025_04_21_04_9349.jpg', '/home/pi/Desktop/images/15012025/04/21/image_15012025_04_21_15_10359.jpg', '/home/pi/Desktop/images/15012025/04/21/image_15012025_04_21_25_10346.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/20/image_15012025_04_20_35_10390.jpg
/home/pi/Desktop/images/15012025/04/20/image_15012025_04_20_44_9381.jpg
/home/pi/Desktop/images/15012025/04/20/image_15012025_04_20_55_10412.jpg
/home/pi/Desktop/images/15012025/04/20/image_15012025_04_21_04_9349.jpg
/home/pi/Desktop/images/15012025/04/21/image_15012025_04_21_15_10359.jpg
/home/pi/Desktop/images/15012025/04/21/image_15012025_04_21_25_10346.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329194647","1329194626","1329194623","1329194652","1329194655","1329194638"],"photo_ids_order":["1329194623","1329194626","1329194638","1329194647","1329194652","1329194655"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/431c2f78ca17ae1ff404ca1bf532bcef.jpg","text":"TemporaryFile(/tmp/multipartBody6807540205894937310asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965413628,"filename":"image_15012025_04_21_04_9349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3ca2ea175d2c5b17489e316a4da22595.jpg","text":"TemporaryFile(/tmp/multipartBody5306333960661833648asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965413628,"filename":"image_15012025_04_20_44_9381.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/416b2c00f58783b9046e3580a49b86f7.jpg","text":"TemporaryFile(/tmp/multipartBody1295464597836128946asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965413628,"filename":"image_15012025_04_20_35_10390.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d31a971c75f93ba8ec8cfb959862d963.jpg","text":"TemporaryFile(/tmp/multipartBody1265946232570833818asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965413628,"filename":"image_15012025_04_21_15_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e5ea7dfb01fb4b267093d1c07d1a978e.jpg","text":"TemporaryFile(/tmp/multipartBody6427864208641026835asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965413628,"filename":"image_15012025_04_21_25_10346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a966f4a51bcfde271449826f17b5add7.jpg","text":"TemporaryFile(/tmp/multipartBody5047183697970927471asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965413628,"filename":"image_15012025_04_20_55_10412.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329194638","file1":"1329194626","file0":"1329194623","file4":"1329194652","file5":"1329194655","file3":"1329194647"},"map_files_photo_id_array":[{"photo_id":"1329194655","filename":"file5"},{"photo_id":"1329194638","filename":"file2"},{"photo_id":"1329194652","filename":"file4"},{"photo_id":"1329194626","filename":"file1"},{"photo_id":"1329194623","filename":"file0"},{"photo_id":"1329194647","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329194647":["hashtag1","hashtag2"]},{"1329194626":["hashtag1","hashtag2"]},{"1329194623":["hashtag1","hashtag2"]},{"1329194652":["hashtag1","hashtag2"]},{"1329194655":["hashtag1","hashtag2"]},{"1329194638":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329194647, 1329194626, 1329194623, 1329194652, 1329194655, 1329194638)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.37066888809204 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 15 --only_old 0
2025-01-15 19:23:32.958641
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/21/image_15012025_04_21_34_9335.jpg', '/home/pi/Desktop/images/15012025/04/21/image_15012025_04_21_45_10336.jpg', '/home/pi/Desktop/images/15012025/04/21/image_15012025_04_21_55_10443.jpg', '/home/pi/Desktop/images/15012025/04/21/image_15012025_04_22_04_9378.jpg', '/home/pi/Desktop/images/15012025/04/22/image_15012025_04_22_15_10343.jpg', '/home/pi/Desktop/images/15012025/04/22/image_15012025_04_22_25_10408.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/21/image_15012025_04_21_34_9335.jpg
/home/pi/Desktop/images/15012025/04/21/image_15012025_04_21_45_10336.jpg
/home/pi/Desktop/images/15012025/04/21/image_15012025_04_21_55_10443.jpg
/home/pi/Desktop/images/15012025/04/21/image_15012025_04_22_04_9378.jpg
/home/pi/Desktop/images/15012025/04/22/image_15012025_04_22_15_10343.jpg
/home/pi/Desktop/images/15012025/04/22/image_15012025_04_22_25_10408.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329194851","1329194713","1329194799","1329194867","1329194890","1329194875"],"photo_ids_order":["1329194713","1329194799","1329194851","1329194867","1329194875","1329194890"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/047c56e1b47702aa1ddfe64cf11d1446.jpg","text":"TemporaryFile(/tmp/multipartBody5673120182490304301asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965473973,"filename":"image_15012025_04_21_55_10443.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/696b592345b2deaecef2bdfd61dde0f8.jpg","text":"TemporaryFile(/tmp/multipartBody4276989279843555889asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965473973,"filename":"image_15012025_04_21_34_9335.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/667718e5d609dfaae116c5db3fe8a6ed.jpg","text":"TemporaryFile(/tmp/multipartBody1987640454158337868asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965473973,"filename":"image_15012025_04_21_45_10336.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9c3d7e0d93ce4fa4734a47de559a945d.jpg","text":"TemporaryFile(/tmp/multipartBody545679696247460305asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965473973,"filename":"image_15012025_04_22_04_9378.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4174770344755aadb25006c6b25d4263.jpg","text":"TemporaryFile(/tmp/multipartBody8635561433934083447asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965473973,"filename":"image_15012025_04_22_25_10408.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1975c54be409db3adc1b0bf01f418f1d.jpg","text":"TemporaryFile(/tmp/multipartBody8833300689937624758asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965473973,"filename":"image_15012025_04_22_15_10343.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329194851","file1":"1329194799","file0":"1329194713","file4":"1329194875","file5":"1329194890","file3":"1329194867"},"map_files_photo_id_array":[{"photo_id":"1329194890","filename":"file5"},{"photo_id":"1329194851","filename":"file2"},{"photo_id":"1329194875","filename":"file4"},{"photo_id":"1329194799","filename":"file1"},{"photo_id":"1329194713","filename":"file0"},{"photo_id":"1329194867","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329194851":["hashtag1","hashtag2"]},{"1329194713":["hashtag1","hashtag2"]},{"1329194799":["hashtag1","hashtag2"]},{"1329194867":["hashtag1","hashtag2"]},{"1329194890":["hashtag1","hashtag2"]},{"1329194875":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329194851, 1329194713, 1329194799, 1329194867, 1329194890, 1329194875)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 53.626057624816895 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 15 --only_old 0
2025-01-15 19:24:33.226668
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/22/image_15012025_04_22_34_9334.jpg', '/home/pi/Desktop/images/15012025/04/22/image_15012025_04_22_45_10346.jpg', '/home/pi/Desktop/images/15012025/04/22/image_15012025_04_22_54_9339.jpg', '/home/pi/Desktop/images/15012025/04/22/image_15012025_04_23_05_10384.jpg', '/home/pi/Desktop/images/15012025/04/23/image_15012025_04_23_15_10337.jpg', '/home/pi/Desktop/images/15012025/04/23/image_15012025_04_23_24_9405.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/22/image_15012025_04_22_34_9334.jpg
/home/pi/Desktop/images/15012025/04/22/image_15012025_04_22_45_10346.jpg
/home/pi/Desktop/images/15012025/04/22/image_15012025_04_22_54_9339.jpg
/home/pi/Desktop/images/15012025/04/22/image_15012025_04_23_05_10384.jpg
/home/pi/Desktop/images/15012025/04/23/image_15012025_04_23_15_10337.jpg
/home/pi/Desktop/images/15012025/04/23/image_15012025_04_23_24_9405.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6026966571807861 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
2025-01-15 19:24:43.066116
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/22/image_15012025_04_22_34_9334.jpg', '/home/pi/Desktop/images/15012025/04/22/image_15012025_04_22_45_10346.jpg', '/home/pi/Desktop/images/15012025/04/22/image_15012025_04_22_54_9339.jpg', '/home/pi/Desktop/images/15012025/04/22/image_15012025_04_23_05_10384.jpg', '/home/pi/Desktop/images/15012025/04/23/image_15012025_04_23_15_10337.jpg', '/home/pi/Desktop/images/15012025/04/23/image_15012025_04_23_24_9405.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/22/image_15012025_04_22_34_9334.jpg
/home/pi/Desktop/images/15012025/04/22/image_15012025_04_22_45_10346.jpg
/home/pi/Desktop/images/15012025/04/22/image_15012025_04_22_54_9339.jpg
/home/pi/Desktop/images/15012025/04/22/image_15012025_04_23_05_10384.jpg
/home/pi/Desktop/images/15012025/04/23/image_15012025_04_23_15_10337.jpg
/home/pi/Desktop/images/15012025/04/23/image_15012025_04_23_24_9405.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329194923","1329194931","1329194913","1329194922","1329194919","1329194927"],"photo_ids_order":["1329194913","1329194919","1329194922","1329194923","1329194927","1329194931"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b3506adc7e2d5d714db09550c9ca6492.jpg","text":"TemporaryFile(/tmp/multipartBody3116540867721932219asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965543984,"filename":"image_15012025_04_23_05_10384.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1cf32e4e43ce6ba91cfc36f5d5bd716f.jpg","text":"TemporaryFile(/tmp/multipartBody997169513134454219asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965543984,"filename":"image_15012025_04_23_24_9405.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0b4c6d02f4add64f7192b15e7785ca7b.jpg","text":"TemporaryFile(/tmp/multipartBody8946341941269889840asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965543984,"filename":"image_15012025_04_22_34_9334.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/724ab6e05baa323d81ce4e4e708efd74.jpg","text":"TemporaryFile(/tmp/multipartBody2579292749529350990asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965543984,"filename":"image_15012025_04_22_54_9339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d45e4af267b41784f168f64f223f7ff3.jpg","text":"TemporaryFile(/tmp/multipartBody4594950028978250901asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965543984,"filename":"image_15012025_04_22_45_10346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/af7a11c394d6e42faa01466ebae3b14b.jpg","text":"TemporaryFile(/tmp/multipartBody1205338246957452802asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965543984,"filename":"image_15012025_04_23_15_10337.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329194922","file1":"1329194919","file0":"1329194913","file4":"1329194927","file5":"1329194931","file3":"1329194923"},"map_files_photo_id_array":[{"photo_id":"1329194931","filename":"file5"},{"photo_id":"1329194922","filename":"file2"},{"photo_id":"1329194927","filename":"file4"},{"photo_id":"1329194919","filename":"file1"},{"photo_id":"1329194913","filename":"file0"},{"photo_id":"1329194923","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329194923":["hashtag1","hashtag2"]},{"1329194931":["hashtag1","hashtag2"]},{"1329194913":["hashtag1","hashtag2"]},{"1329194922":["hashtag1","hashtag2"]},{"1329194919":["hashtag1","hashtag2"]},{"1329194927":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329194923, 1329194931, 1329194913, 1329194922, 1329194919, 1329194927)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.98525619506836 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 15 --only_old 0
2025-01-15 19:25:32.448982
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/23/image_15012025_04_23_35_10390.jpg', '/home/pi/Desktop/images/15012025/04/23/image_15012025_04_23_45_10364.jpg', '/home/pi/Desktop/images/15012025/04/23/image_15012025_04_23_54_9340.jpg', '/home/pi/Desktop/images/15012025/04/23/image_15012025_04_24_05_10349.jpg', '/home/pi/Desktop/images/15012025/04/24/image_15012025_04_24_15_10345.jpg', '/home/pi/Desktop/images/15012025/04/24/image_15012025_04_24_24_9373.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/23/image_15012025_04_23_35_10390.jpg
/home/pi/Desktop/images/15012025/04/23/image_15012025_04_23_45_10364.jpg
/home/pi/Desktop/images/15012025/04/23/image_15012025_04_23_54_9340.jpg
/home/pi/Desktop/images/15012025/04/23/image_15012025_04_24_05_10349.jpg
/home/pi/Desktop/images/15012025/04/24/image_15012025_04_24_15_10345.jpg
/home/pi/Desktop/images/15012025/04/24/image_15012025_04_24_24_9373.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329195144","1329195318","1329195252","1329195098","1329195041","1329194984"],"photo_ids_order":["1329194984","1329195041","1329195098","1329195144","1329195252","1329195318"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2183761dfef24f1642613bce5035fabe.jpg","text":"TemporaryFile(/tmp/multipartBody91792909704744344asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965593469,"filename":"image_15012025_04_24_05_10349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f384e5f45f1bfd6a4ef59ee1e3b320d0.jpg","text":"TemporaryFile(/tmp/multipartBody5661153245908164664asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965593469,"filename":"image_15012025_04_24_24_9373.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fd0ca42ae75b1e2b4f39d9e1c43e82cd.jpg","text":"TemporaryFile(/tmp/multipartBody5567514708686108028asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965593469,"filename":"image_15012025_04_24_15_10345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/14ad93bbc8be1c352cb0812b75346a76.jpg","text":"TemporaryFile(/tmp/multipartBody4003002803248520864asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965593469,"filename":"image_15012025_04_23_54_9340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d0fc672ba2c44d745d1151719bf69e76.jpg","text":"TemporaryFile(/tmp/multipartBody1304082213209599430asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965593469,"filename":"image_15012025_04_23_45_10364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/57724a62e68ef9712a5500d316aa99d7.jpg","text":"TemporaryFile(/tmp/multipartBody6603509925267330242asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965593469,"filename":"image_15012025_04_23_35_10390.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329195098","file1":"1329195041","file0":"1329194984","file4":"1329195252","file5":"1329195318","file3":"1329195144"},"map_files_photo_id_array":[{"photo_id":"1329195318","filename":"file5"},{"photo_id":"1329195098","filename":"file2"},{"photo_id":"1329195252","filename":"file4"},{"photo_id":"1329195041","filename":"file1"},{"photo_id":"1329194984","filename":"file0"},{"photo_id":"1329195144","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329195144":["hashtag1","hashtag2"]},{"1329195318":["hashtag1","hashtag2"]},{"1329195252":["hashtag1","hashtag2"]},{"1329195098":["hashtag1","hashtag2"]},{"1329195041":["hashtag1","hashtag2"]},{"1329194984":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329195144, 1329195318, 1329195252, 1329195098, 1329195041, 1329194984)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 52.966716051101685 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 15 --only_old 0
2025-01-15 19:26:32.651111
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/24/image_15012025_04_24_35_10428.jpg', '/home/pi/Desktop/images/15012025/04/24/image_15012025_04_24_44_9346.jpg', '/home/pi/Desktop/images/15012025/04/24/image_15012025_04_24_55_10408.jpg', '/home/pi/Desktop/images/15012025/04/24/image_15012025_04_25_05_10399.jpg', '/home/pi/Desktop/images/15012025/04/25/image_15012025_04_25_15_9452.jpg', '/home/pi/Desktop/images/15012025/04/25/image_15012025_04_25_25_10479.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/24/image_15012025_04_24_35_10428.jpg
/home/pi/Desktop/images/15012025/04/24/image_15012025_04_24_44_9346.jpg
/home/pi/Desktop/images/15012025/04/24/image_15012025_04_24_55_10408.jpg
/home/pi/Desktop/images/15012025/04/24/image_15012025_04_25_05_10399.jpg
/home/pi/Desktop/images/15012025/04/25/image_15012025_04_25_15_9452.jpg
/home/pi/Desktop/images/15012025/04/25/image_15012025_04_25_25_10479.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329195747","1329195698","1329195551","1329195751","1329195757","1329195631"],"photo_ids_order":["1329195551","1329195631","1329195698","1329195747","1329195751","1329195757"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d5450235c63a430caea859f872f3c0c3.jpg","text":"TemporaryFile(/tmp/multipartBody4372628367123888083asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965653658,"filename":"image_15012025_04_25_05_10399.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cdb3ff3163aca8c5eed25eacff8da61e.jpg","text":"TemporaryFile(/tmp/multipartBody1241003800687707940asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965653658,"filename":"image_15012025_04_24_55_10408.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d37849ca554f87fa0939380d86166f42.jpg","text":"TemporaryFile(/tmp/multipartBody5379897987477712asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965653658,"filename":"image_15012025_04_24_35_10428.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0122dad11282323e93dc58e2d3a3742e.jpg","text":"TemporaryFile(/tmp/multipartBody8026002784725845434asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965653658,"filename":"image_15012025_04_25_15_9452.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/43872ef5112681e16591ce24fbf59b80.jpg","text":"TemporaryFile(/tmp/multipartBody6339914893110217086asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965653658,"filename":"image_15012025_04_25_25_10479.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7390c970c0f319c86c41bff7180ebf3c.jpg","text":"TemporaryFile(/tmp/multipartBody2779091437123291754asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965653658,"filename":"image_15012025_04_24_44_9346.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329195698","file1":"1329195631","file0":"1329195551","file4":"1329195751","file5":"1329195757","file3":"1329195747"},"map_files_photo_id_array":[{"photo_id":"1329195757","filename":"file5"},{"photo_id":"1329195698","filename":"file2"},{"photo_id":"1329195751","filename":"file4"},{"photo_id":"1329195631","filename":"file1"},{"photo_id":"1329195551","filename":"file0"},{"photo_id":"1329195747","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329195747":["hashtag1","hashtag2"]},{"1329195698":["hashtag1","hashtag2"]},{"1329195551":["hashtag1","hashtag2"]},{"1329195751":["hashtag1","hashtag2"]},{"1329195757":["hashtag1","hashtag2"]},{"1329195631":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329195747, 1329195698, 1329195551, 1329195751, 1329195757, 1329195631)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.864880084991455 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 15 --only_old 0
2025-01-15 19:27:32.905956
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/25/image_15012025_04_25_34_9344.jpg', '/home/pi/Desktop/images/15012025/04/25/image_15012025_04_25_45_10336.jpg', '/home/pi/Desktop/images/15012025/04/25/image_15012025_04_25_55_10436.jpg', '/home/pi/Desktop/images/15012025/04/25/image_15012025_04_26_04_9354.jpg', '/home/pi/Desktop/images/15012025/04/26/image_15012025_04_26_15_10357.jpg', '/home/pi/Desktop/images/15012025/04/26/image_15012025_04_26_24_9365.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/25/image_15012025_04_25_34_9344.jpg
/home/pi/Desktop/images/15012025/04/25/image_15012025_04_25_45_10336.jpg
/home/pi/Desktop/images/15012025/04/25/image_15012025_04_25_55_10436.jpg
/home/pi/Desktop/images/15012025/04/25/image_15012025_04_26_04_9354.jpg
/home/pi/Desktop/images/15012025/04/26/image_15012025_04_26_15_10357.jpg
/home/pi/Desktop/images/15012025/04/26/image_15012025_04_26_24_9365.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.681347131729126 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
2025-01-15 19:27:42.770793
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/25/image_15012025_04_25_34_9344.jpg', '/home/pi/Desktop/images/15012025/04/25/image_15012025_04_25_45_10336.jpg', '/home/pi/Desktop/images/15012025/04/25/image_15012025_04_25_55_10436.jpg', '/home/pi/Desktop/images/15012025/04/25/image_15012025_04_26_04_9354.jpg', '/home/pi/Desktop/images/15012025/04/26/image_15012025_04_26_15_10357.jpg', '/home/pi/Desktop/images/15012025/04/26/image_15012025_04_26_24_9365.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/25/image_15012025_04_25_34_9344.jpg
/home/pi/Desktop/images/15012025/04/25/image_15012025_04_25_45_10336.jpg
/home/pi/Desktop/images/15012025/04/25/image_15012025_04_25_55_10436.jpg
/home/pi/Desktop/images/15012025/04/25/image_15012025_04_26_04_9354.jpg
/home/pi/Desktop/images/15012025/04/26/image_15012025_04_26_15_10357.jpg
/home/pi/Desktop/images/15012025/04/26/image_15012025_04_26_24_9365.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329196038","1329195942","1329195909","1329196025","1329196042","1329195993"],"photo_ids_order":["1329195909","1329195942","1329195993","1329196025","1329196038","1329196042"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d25ac95df2fefb86dcb982052fdda9a3.jpg","text":"TemporaryFile(/tmp/multipartBody862595406196589261asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965726022,"filename":"image_15012025_04_26_15_10357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f174fe3a324cdc09d3ce931ef4f75d39.jpg","text":"TemporaryFile(/tmp/multipartBody3914850735460863253asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965726022,"filename":"image_15012025_04_25_45_10336.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a219dc9b0ccb1ccf543c01aace4bff5b.jpg","text":"TemporaryFile(/tmp/multipartBody3365959683129044169asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965726022,"filename":"image_15012025_04_25_34_9344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c82a9351b52917a41cb304368869ce2b.jpg","text":"TemporaryFile(/tmp/multipartBody3302670618465614276asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965726022,"filename":"image_15012025_04_26_04_9354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/810e4e849f94e948d0a4cb3ad30ed715.jpg","text":"TemporaryFile(/tmp/multipartBody776432912761971779asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965726022,"filename":"image_15012025_04_26_24_9365.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6eeaa23130abebb7fbe99de7fbaaa726.jpg","text":"TemporaryFile(/tmp/multipartBody3183066620966263357asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965726022,"filename":"image_15012025_04_25_55_10436.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329195993","file1":"1329195942","file0":"1329195909","file4":"1329196038","file5":"1329196042","file3":"1329196025"},"map_files_photo_id_array":[{"photo_id":"1329196042","filename":"file5"},{"photo_id":"1329195993","filename":"file2"},{"photo_id":"1329196038","filename":"file4"},{"photo_id":"1329195942","filename":"file1"},{"photo_id":"1329195909","filename":"file0"},{"photo_id":"1329196025","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329196038":["hashtag1","hashtag2"]},{"1329195942":["hashtag1","hashtag2"]},{"1329195909":["hashtag1","hashtag2"]},{"1329196025":["hashtag1","hashtag2"]},{"1329196042":["hashtag1","hashtag2"]},{"1329195993":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329196038, 1329195942, 1329195909, 1329196025, 1329196042, 1329195993)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.472906827926636 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 15 --only_old 0
2025-01-15 19:28:33.071728
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/26/image_15012025_04_26_35_10347.jpg', '/home/pi/Desktop/images/15012025/04/26/image_15012025_04_26_45_10489.jpg', '/home/pi/Desktop/images/15012025/04/26/image_15012025_04_26_54_9348.jpg', '/home/pi/Desktop/images/15012025/04/27/image_15012025_04_27_14_9415.jpg', '/home/pi/Desktop/images/15012025/04/27/image_15012025_04_27_25_10367.jpg', '/home/pi/Desktop/images/15012025/04/27/image_15012025_04_27_35_10470.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/26/image_15012025_04_26_35_10347.jpg
/home/pi/Desktop/images/15012025/04/26/image_15012025_04_26_45_10489.jpg
/home/pi/Desktop/images/15012025/04/26/image_15012025_04_26_54_9348.jpg
/home/pi/Desktop/images/15012025/04/27/image_15012025_04_27_14_9415.jpg
/home/pi/Desktop/images/15012025/04/27/image_15012025_04_27_25_10367.jpg
/home/pi/Desktop/images/15012025/04/27/image_15012025_04_27_35_10470.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329196241","1329196157","1329196072","1329196246","1329196251","1329196062"],"photo_ids_order":["1329196062","1329196072","1329196157","1329196241","1329196246","1329196251"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/19918fd68634e3c4bda1ac2be766d530.jpg","text":"TemporaryFile(/tmp/multipartBody1024644718909370967asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965774071,"filename":"image_15012025_04_27_14_9415.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/66cc0039729b4469825001403d81d4bf.jpg","text":"TemporaryFile(/tmp/multipartBody7469868474015359857asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965774071,"filename":"image_15012025_04_26_54_9348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d0c40597c813b15874d455f81322446d.jpg","text":"TemporaryFile(/tmp/multipartBody2536875314557389726asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965774071,"filename":"image_15012025_04_26_45_10489.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1aedc8ae5356d368cfbf41e3d066cab6.jpg","text":"TemporaryFile(/tmp/multipartBody84537513821281269asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965774071,"filename":"image_15012025_04_27_25_10367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6483ec35c219bd3b0326a565b629035c.jpg","text":"TemporaryFile(/tmp/multipartBody3457256967033544718asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965774071,"filename":"image_15012025_04_27_35_10470.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a8156cb121e59ddc10d6e4654b35927f.jpg","text":"TemporaryFile(/tmp/multipartBody5334459306313109574asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965774071,"filename":"image_15012025_04_26_35_10347.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329196157","file1":"1329196072","file0":"1329196062","file4":"1329196246","file5":"1329196251","file3":"1329196241"},"map_files_photo_id_array":[{"photo_id":"1329196251","filename":"file5"},{"photo_id":"1329196157","filename":"file2"},{"photo_id":"1329196246","filename":"file4"},{"photo_id":"1329196072","filename":"file1"},{"photo_id":"1329196062","filename":"file0"},{"photo_id":"1329196241","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329196241":["hashtag1","hashtag2"]},{"1329196157":["hashtag1","hashtag2"]},{"1329196072":["hashtag1","hashtag2"]},{"1329196246":["hashtag1","hashtag2"]},{"1329196251":["hashtag1","hashtag2"]},{"1329196062":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329196241, 1329196157, 1329196072, 1329196246, 1329196251, 1329196062)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.895559310913086 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 15 --only_old 0
2025-01-15 19:29:32.299328
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/27/image_15012025_04_27_44_9344.jpg', '/home/pi/Desktop/images/15012025/04/27/image_15012025_04_27_55_10344.jpg', '/home/pi/Desktop/images/15012025/04/27/image_15012025_04_28_04_9457.jpg', '/home/pi/Desktop/images/15012025/04/28/image_15012025_04_28_15_10427.jpg', '/home/pi/Desktop/images/15012025/04/28/image_15012025_04_28_25_10474.jpg', '/home/pi/Desktop/images/15012025/04/28/image_15012025_04_28_34_9350.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/27/image_15012025_04_27_44_9344.jpg
/home/pi/Desktop/images/15012025/04/27/image_15012025_04_27_55_10344.jpg
/home/pi/Desktop/images/15012025/04/27/image_15012025_04_28_04_9457.jpg
/home/pi/Desktop/images/15012025/04/28/image_15012025_04_28_15_10427.jpg
/home/pi/Desktop/images/15012025/04/28/image_15012025_04_28_25_10474.jpg
/home/pi/Desktop/images/15012025/04/28/image_15012025_04_28_34_9350.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329196396","1329196282","1329196270","1329196339","1329196287","1329196275"],"photo_ids_order":["1329196270","1329196275","1329196282","1329196287","1329196339","1329196396"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c2b5a56bac62a89dfef6628836ddb653.jpg","text":"TemporaryFile(/tmp/multipartBody7123383520056124392asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965833328,"filename":"image_15012025_04_28_34_9350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dabba6d66e8656b1c0ee9158709ab88d.jpg","text":"TemporaryFile(/tmp/multipartBody4382751030784681920asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965833328,"filename":"image_15012025_04_28_04_9457.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/52c5db18af2a37bce3cb5fd6774afda1.jpg","text":"TemporaryFile(/tmp/multipartBody2085291453433253516asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965833328,"filename":"image_15012025_04_27_44_9344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4751ecb7d4af76a20d0eed2299179bb9.jpg","text":"TemporaryFile(/tmp/multipartBody4402301035039100287asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965833328,"filename":"image_15012025_04_28_25_10474.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/064fd28855e9f3d8db20b8a0bd9c8ac7.jpg","text":"TemporaryFile(/tmp/multipartBody8932169332318586283asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965833328,"filename":"image_15012025_04_28_15_10427.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9d2b06d3b9346df39b2eada46ba21d25.jpg","text":"TemporaryFile(/tmp/multipartBody1010514871011995636asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965833328,"filename":"image_15012025_04_27_55_10344.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329196282","file1":"1329196275","file0":"1329196270","file4":"1329196339","file5":"1329196396","file3":"1329196287"},"map_files_photo_id_array":[{"photo_id":"1329196396","filename":"file5"},{"photo_id":"1329196282","filename":"file2"},{"photo_id":"1329196339","filename":"file4"},{"photo_id":"1329196275","filename":"file1"},{"photo_id":"1329196270","filename":"file0"},{"photo_id":"1329196287","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329196396":["hashtag1","hashtag2"]},{"1329196282":["hashtag1","hashtag2"]},{"1329196270":["hashtag1","hashtag2"]},{"1329196339":["hashtag1","hashtag2"]},{"1329196287":["hashtag1","hashtag2"]},{"1329196275":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329196396, 1329196282, 1329196270, 1329196339, 1329196287, 1329196275)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.265273094177246 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 15 --only_old 0
2025-01-15 19:30:32.546858
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/28/image_15012025_04_28_45_10354.jpg', '/home/pi/Desktop/images/15012025/04/28/image_15012025_04_28_54_9407.jpg', '/home/pi/Desktop/images/15012025/04/28/image_15012025_04_29_05_10330.jpg', '/home/pi/Desktop/images/15012025/04/29/image_15012025_04_29_15_10341.jpg', '/home/pi/Desktop/images/15012025/04/29/image_15012025_04_29_24_9353.jpg', '/home/pi/Desktop/images/15012025/04/29/image_15012025_04_29_35_10429.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/28/image_15012025_04_28_45_10354.jpg
/home/pi/Desktop/images/15012025/04/28/image_15012025_04_28_54_9407.jpg
/home/pi/Desktop/images/15012025/04/28/image_15012025_04_29_05_10330.jpg
/home/pi/Desktop/images/15012025/04/29/image_15012025_04_29_15_10341.jpg
/home/pi/Desktop/images/15012025/04/29/image_15012025_04_29_24_9353.jpg
/home/pi/Desktop/images/15012025/04/29/image_15012025_04_29_35_10429.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329196592","1329196585","1329196588","1329196603","1329196596","1329196599"],"photo_ids_order":["1329196585","1329196588","1329196592","1329196596","1329196599","1329196603"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/626c605b501d39f69fa0c7ed15da2328.jpg","text":"TemporaryFile(/tmp/multipartBody3826239334407340978asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965893566,"filename":"image_15012025_04_29_05_10330.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/58421ffb57eaf246f2f9baabac1438b4.jpg","text":"TemporaryFile(/tmp/multipartBody6329195083029010047asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965893566,"filename":"image_15012025_04_28_45_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/528d6c2afcef23dc05622f7ef51137e5.jpg","text":"TemporaryFile(/tmp/multipartBody5735821280300748358asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965893566,"filename":"image_15012025_04_28_54_9407.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/10bf7b88080edcc89c85374cf8bbd72c.jpg","text":"TemporaryFile(/tmp/multipartBody1887539531156467747asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965893566,"filename":"image_15012025_04_29_35_10429.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fdec7da97d082a6b1d9ab3c239a66fe0.jpg","text":"TemporaryFile(/tmp/multipartBody3154411706477450777asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965893566,"filename":"image_15012025_04_29_15_10341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/493c99fe62a3f7835b064a7724b9d3fe.jpg","text":"TemporaryFile(/tmp/multipartBody1951612670200507198asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965893566,"filename":"image_15012025_04_29_24_9353.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329196592","file1":"1329196588","file0":"1329196585","file4":"1329196599","file5":"1329196603","file3":"1329196596"},"map_files_photo_id_array":[{"photo_id":"1329196603","filename":"file5"},{"photo_id":"1329196592","filename":"file2"},{"photo_id":"1329196599","filename":"file4"},{"photo_id":"1329196588","filename":"file1"},{"photo_id":"1329196585","filename":"file0"},{"photo_id":"1329196596","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329196592":["hashtag1","hashtag2"]},{"1329196585":["hashtag1","hashtag2"]},{"1329196588":["hashtag1","hashtag2"]},{"1329196603":["hashtag1","hashtag2"]},{"1329196596":["hashtag1","hashtag2"]},{"1329196599":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329196592, 1329196585, 1329196588, 1329196603, 1329196596, 1329196599)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.95634436607361 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 15 --only_old 0
2025-01-15 19:31:32.893507
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/29/image_15012025_04_29_45_10387.jpg', '/home/pi/Desktop/images/15012025/04/29/image_15012025_04_29_54_9383.jpg', '/home/pi/Desktop/images/15012025/04/29/image_15012025_04_30_05_10424.jpg', '/home/pi/Desktop/images/15012025/04/30/image_15012025_04_30_14_9339.jpg', '/home/pi/Desktop/images/15012025/04/30/image_15012025_04_30_25_10435.jpg', '/home/pi/Desktop/images/15012025/04/30/image_15012025_04_30_35_10447.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/29/image_15012025_04_29_45_10387.jpg
/home/pi/Desktop/images/15012025/04/29/image_15012025_04_29_54_9383.jpg
/home/pi/Desktop/images/15012025/04/29/image_15012025_04_30_05_10424.jpg
/home/pi/Desktop/images/15012025/04/30/image_15012025_04_30_14_9339.jpg
/home/pi/Desktop/images/15012025/04/30/image_15012025_04_30_25_10435.jpg
/home/pi/Desktop/images/15012025/04/30/image_15012025_04_30_35_10447.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6300792694091797 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
2025-01-15 19:31:42.742566
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/29/image_15012025_04_29_45_10387.jpg', '/home/pi/Desktop/images/15012025/04/29/image_15012025_04_29_54_9383.jpg', '/home/pi/Desktop/images/15012025/04/29/image_15012025_04_30_05_10424.jpg', '/home/pi/Desktop/images/15012025/04/30/image_15012025_04_30_14_9339.jpg', '/home/pi/Desktop/images/15012025/04/30/image_15012025_04_30_25_10435.jpg', '/home/pi/Desktop/images/15012025/04/30/image_15012025_04_30_35_10447.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/29/image_15012025_04_29_45_10387.jpg
/home/pi/Desktop/images/15012025/04/29/image_15012025_04_29_54_9383.jpg
/home/pi/Desktop/images/15012025/04/29/image_15012025_04_30_05_10424.jpg
/home/pi/Desktop/images/15012025/04/30/image_15012025_04_30_14_9339.jpg
/home/pi/Desktop/images/15012025/04/30/image_15012025_04_30_25_10435.jpg
/home/pi/Desktop/images/15012025/04/30/image_15012025_04_30_35_10447.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329197096","1329196958","1329197011","1329196951","1329196948","1329196920"],"photo_ids_order":["1329196920","1329196948","1329196951","1329196958","1329197011","1329197096"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6f003e904917312d78073c31fdb108cd.jpg","text":"TemporaryFile(/tmp/multipartBody8716303368711110887asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965963663,"filename":"image_15012025_04_30_35_10447.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ead92d428ef1cc8e8da14b347d093ef0.jpg","text":"TemporaryFile(/tmp/multipartBody1170958413773764644asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965963663,"filename":"image_15012025_04_30_14_9339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1a06266b719a5001da2ab1a1844aa7b7.jpg","text":"TemporaryFile(/tmp/multipartBody3765150467770720149asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965963663,"filename":"image_15012025_04_30_25_10435.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1e04e35647101429b66c157392bf3b9d.jpg","text":"TemporaryFile(/tmp/multipartBody3534638653916450872asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965963663,"filename":"image_15012025_04_30_05_10424.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a185927d305755bfb211b0a8311bbef5.jpg","text":"TemporaryFile(/tmp/multipartBody1332029777503308595asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965963663,"filename":"image_15012025_04_29_54_9383.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/22476d120039431cdced68581b629a42.jpg","text":"TemporaryFile(/tmp/multipartBody2480467068139455134asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736965963663,"filename":"image_15012025_04_29_45_10387.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329196951","file1":"1329196948","file0":"1329196920","file4":"1329197011","file5":"1329197096","file3":"1329196958"},"map_files_photo_id_array":[{"photo_id":"1329197096","filename":"file5"},{"photo_id":"1329196951","filename":"file2"},{"photo_id":"1329197011","filename":"file4"},{"photo_id":"1329196948","filename":"file1"},{"photo_id":"1329196920","filename":"file0"},{"photo_id":"1329196958","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329197096":["hashtag1","hashtag2"]},{"1329196958":["hashtag1","hashtag2"]},{"1329197011":["hashtag1","hashtag2"]},{"1329196951":["hashtag1","hashtag2"]},{"1329196948":["hashtag1","hashtag2"]},{"1329196920":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329197096, 1329196958, 1329197011, 1329196951, 1329196948, 1329196920)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 48.82062792778015 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 15 --only_old 0
2025-01-15 19:32:32.918881
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/30/image_15012025_04_30_44_9334.jpg', '/home/pi/Desktop/images/15012025/04/30/image_15012025_04_30_55_10356.jpg', '/home/pi/Desktop/images/15012025/04/30/image_15012025_04_31_04_9433.jpg', '/home/pi/Desktop/images/15012025/04/31/image_15012025_04_31_15_10341.jpg', '/home/pi/Desktop/images/15012025/04/31/image_15012025_04_31_25_10356.jpg', '/home/pi/Desktop/images/15012025/04/31/image_15012025_04_31_34_9423.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/30/image_15012025_04_30_44_9334.jpg
/home/pi/Desktop/images/15012025/04/30/image_15012025_04_30_55_10356.jpg
/home/pi/Desktop/images/15012025/04/30/image_15012025_04_31_04_9433.jpg
/home/pi/Desktop/images/15012025/04/31/image_15012025_04_31_15_10341.jpg
/home/pi/Desktop/images/15012025/04/31/image_15012025_04_31_25_10356.jpg
/home/pi/Desktop/images/15012025/04/31/image_15012025_04_31_34_9423.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329197240","1329197198","1329197549","1329197389","1329197218","1329197576"],"photo_ids_order":["1329197198","1329197218","1329197240","1329197389","1329197549","1329197576"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7d8d65cc30b542975d2af243672fb70a.jpg","text":"TemporaryFile(/tmp/multipartBody5726919091493917867asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966013939,"filename":"image_15012025_04_31_04_9433.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/39a6b1d074359dc23f683a65f86845de.jpg","text":"TemporaryFile(/tmp/multipartBody2757851488200518137asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966013939,"filename":"image_15012025_04_30_44_9334.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0c3b8197149100a6e6f87c340a533f5b.jpg","text":"TemporaryFile(/tmp/multipartBody306902037928644388asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966013939,"filename":"image_15012025_04_31_25_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/372cd38e83ea65bdfff739a68b0ec29e.jpg","text":"TemporaryFile(/tmp/multipartBody6510635868751470250asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966013939,"filename":"image_15012025_04_31_15_10341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/277a592802840305fd6720d8d0db79e2.jpg","text":"TemporaryFile(/tmp/multipartBody3353972332209652495asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966013939,"filename":"image_15012025_04_30_55_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2837f7aea17b643d92088130eb5618db.jpg","text":"TemporaryFile(/tmp/multipartBody8461969910493485040asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966013939,"filename":"image_15012025_04_31_34_9423.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329197240","file1":"1329197218","file0":"1329197198","file4":"1329197549","file5":"1329197576","file3":"1329197389"},"map_files_photo_id_array":[{"photo_id":"1329197576","filename":"file5"},{"photo_id":"1329197240","filename":"file2"},{"photo_id":"1329197549","filename":"file4"},{"photo_id":"1329197218","filename":"file1"},{"photo_id":"1329197198","filename":"file0"},{"photo_id":"1329197389","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329197240":["hashtag1","hashtag2"]},{"1329197198":["hashtag1","hashtag2"]},{"1329197549":["hashtag1","hashtag2"]},{"1329197389":["hashtag1","hashtag2"]},{"1329197218":["hashtag1","hashtag2"]},{"1329197576":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329197240, 1329197198, 1329197549, 1329197389, 1329197218, 1329197576)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.34512972831726 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 15 --only_old 0
2025-01-15 19:33:33.165725
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/31/image_15012025_04_31_45_10398.jpg', '/home/pi/Desktop/images/15012025/04/31/image_15012025_04_31_55_10341.jpg', '/home/pi/Desktop/images/15012025/04/31/image_15012025_04_32_05_9490.jpg', '/home/pi/Desktop/images/15012025/04/32/image_15012025_04_32_15_10332.jpg', '/home/pi/Desktop/images/15012025/04/32/image_15012025_04_32_24_9361.jpg', '/home/pi/Desktop/images/15012025/04/32/image_15012025_04_32_35_10355.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/31/image_15012025_04_31_45_10398.jpg
/home/pi/Desktop/images/15012025/04/31/image_15012025_04_31_55_10341.jpg
/home/pi/Desktop/images/15012025/04/31/image_15012025_04_32_05_9490.jpg
/home/pi/Desktop/images/15012025/04/32/image_15012025_04_32_15_10332.jpg
/home/pi/Desktop/images/15012025/04/32/image_15012025_04_32_24_9361.jpg
/home/pi/Desktop/images/15012025/04/32/image_15012025_04_32_35_10355.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329197762","1329197726","1329197691","1329197685","1329197766","1329197754"],"photo_ids_order":["1329197685","1329197691","1329197726","1329197754","1329197762","1329197766"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/acb0404cfb16caf29265a43e09403d0a.jpg","text":"TemporaryFile(/tmp/multipartBody8300068128968708487asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966074179,"filename":"image_15012025_04_32_24_9361.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e1dace53771c0be32ad0900723e62d25.jpg","text":"TemporaryFile(/tmp/multipartBody203276222476907595asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966074179,"filename":"image_15012025_04_32_05_9490.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b76e57cabe063f54026f07bd97491dce.jpg","text":"TemporaryFile(/tmp/multipartBody2992715915525255131asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966074179,"filename":"image_15012025_04_31_55_10341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/19c4cd9c08d1e44b23962d8f32790df7.jpg","text":"TemporaryFile(/tmp/multipartBody6684768271228915099asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966074179,"filename":"image_15012025_04_31_45_10398.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/18e3aebf422eb85dbffc8ac214a98982.jpg","text":"TemporaryFile(/tmp/multipartBody9211863215521643337asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966074179,"filename":"image_15012025_04_32_35_10355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dd9927f42fd211b91f98cbd56c68e2a5.jpg","text":"TemporaryFile(/tmp/multipartBody2142576392095661535asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966074179,"filename":"image_15012025_04_32_15_10332.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329197726","file1":"1329197691","file0":"1329197685","file4":"1329197762","file5":"1329197766","file3":"1329197754"},"map_files_photo_id_array":[{"photo_id":"1329197766","filename":"file5"},{"photo_id":"1329197726","filename":"file2"},{"photo_id":"1329197762","filename":"file4"},{"photo_id":"1329197691","filename":"file1"},{"photo_id":"1329197685","filename":"file0"},{"photo_id":"1329197754","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329197762":["hashtag1","hashtag2"]},{"1329197726":["hashtag1","hashtag2"]},{"1329197691":["hashtag1","hashtag2"]},{"1329197685":["hashtag1","hashtag2"]},{"1329197766":["hashtag1","hashtag2"]},{"1329197754":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329197762, 1329197726, 1329197691, 1329197685, 1329197766, 1329197754)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.34657287597656 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 15 --only_old 0
2025-01-15 19:34:32.481742
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/32/image_15012025_04_32_45_10448.jpg', '/home/pi/Desktop/images/15012025/04/32/image_15012025_04_32_54_9425.jpg', '/home/pi/Desktop/images/15012025/04/32/image_15012025_04_33_05_10482.jpg', '/home/pi/Desktop/images/15012025/04/33/image_15012025_04_33_14_9343.jpg', '/home/pi/Desktop/images/15012025/04/33/image_15012025_04_33_25_10349.jpg', '/home/pi/Desktop/images/15012025/04/33/image_15012025_04_33_35_10435.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/32/image_15012025_04_32_45_10448.jpg
/home/pi/Desktop/images/15012025/04/32/image_15012025_04_32_54_9425.jpg
/home/pi/Desktop/images/15012025/04/32/image_15012025_04_33_05_10482.jpg
/home/pi/Desktop/images/15012025/04/33/image_15012025_04_33_14_9343.jpg
/home/pi/Desktop/images/15012025/04/33/image_15012025_04_33_25_10349.jpg
/home/pi/Desktop/images/15012025/04/33/image_15012025_04_33_35_10435.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329197813","1329197816","1329197794","1329197821","1329197818","1329197803"],"photo_ids_order":["1329197794","1329197803","1329197813","1329197816","1329197818","1329197821"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f3e8fbf8795c8c47112f5fd09ae9c0bf.jpg","text":"TemporaryFile(/tmp/multipartBody8211004524558594800asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966133493,"filename":"image_15012025_04_33_05_10482.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3c83cfc75f3ec450714a16aa2e33c5d7.jpg","text":"TemporaryFile(/tmp/multipartBody3503306960912625453asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966133493,"filename":"image_15012025_04_33_14_9343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/570588af6e745e034f4ba6765f2b9791.jpg","text":"TemporaryFile(/tmp/multipartBody5327417100173434394asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966133493,"filename":"image_15012025_04_32_45_10448.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a220ce250259731d588f18f2867e65dd.jpg","text":"TemporaryFile(/tmp/multipartBody357432594634065078asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966133493,"filename":"image_15012025_04_33_35_10435.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ecba3339a3de65921075dbf32ada9991.jpg","text":"TemporaryFile(/tmp/multipartBody985232680458577608asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966133493,"filename":"image_15012025_04_33_25_10349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8c2e2315f8b4c9fbf69176ab3d63d6b8.jpg","text":"TemporaryFile(/tmp/multipartBody3395736206232489387asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966133493,"filename":"image_15012025_04_32_54_9425.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329197813","file1":"1329197803","file0":"1329197794","file4":"1329197818","file5":"1329197821","file3":"1329197816"},"map_files_photo_id_array":[{"photo_id":"1329197821","filename":"file5"},{"photo_id":"1329197813","filename":"file2"},{"photo_id":"1329197818","filename":"file4"},{"photo_id":"1329197803","filename":"file1"},{"photo_id":"1329197794","filename":"file0"},{"photo_id":"1329197816","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329197813":["hashtag1","hashtag2"]},{"1329197816":["hashtag1","hashtag2"]},{"1329197794":["hashtag1","hashtag2"]},{"1329197821":["hashtag1","hashtag2"]},{"1329197818":["hashtag1","hashtag2"]},{"1329197803":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329197813, 1329197816, 1329197794, 1329197821, 1329197818, 1329197803)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.71756601333618 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 15 --only_old 0
2025-01-15 19:35:32.705855
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/33/image_15012025_04_33_55_10353.jpg', '/home/pi/Desktop/images/15012025/04/33/image_15012025_04_34_05_10340.jpg', '/home/pi/Desktop/images/15012025/04/34/image_15012025_04_34_15_9377.jpg', '/home/pi/Desktop/images/15012025/04/34/image_15012025_04_34_25_10518.jpg', '/home/pi/Desktop/images/15012025/04/34/image_15012025_04_34_34_9341.jpg', '/home/pi/Desktop/images/15012025/04/34/image_15012025_04_34_45_10339.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/33/image_15012025_04_33_55_10353.jpg
/home/pi/Desktop/images/15012025/04/33/image_15012025_04_34_05_10340.jpg
/home/pi/Desktop/images/15012025/04/34/image_15012025_04_34_15_9377.jpg
/home/pi/Desktop/images/15012025/04/34/image_15012025_04_34_25_10518.jpg
/home/pi/Desktop/images/15012025/04/34/image_15012025_04_34_34_9341.jpg
/home/pi/Desktop/images/15012025/04/34/image_15012025_04_34_45_10339.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6381008625030518 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
2025-01-15 19:35:42.576303
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/33/image_15012025_04_33_55_10353.jpg', '/home/pi/Desktop/images/15012025/04/33/image_15012025_04_34_05_10340.jpg', '/home/pi/Desktop/images/15012025/04/34/image_15012025_04_34_15_9377.jpg', '/home/pi/Desktop/images/15012025/04/34/image_15012025_04_34_25_10518.jpg', '/home/pi/Desktop/images/15012025/04/34/image_15012025_04_34_34_9341.jpg', '/home/pi/Desktop/images/15012025/04/34/image_15012025_04_34_45_10339.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/33/image_15012025_04_33_55_10353.jpg
/home/pi/Desktop/images/15012025/04/33/image_15012025_04_34_05_10340.jpg
/home/pi/Desktop/images/15012025/04/34/image_15012025_04_34_15_9377.jpg
/home/pi/Desktop/images/15012025/04/34/image_15012025_04_34_25_10518.jpg
/home/pi/Desktop/images/15012025/04/34/image_15012025_04_34_34_9341.jpg
/home/pi/Desktop/images/15012025/04/34/image_15012025_04_34_45_10339.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329197861","1329198040","1329197917","1329198006","1329197856","1329197987"],"photo_ids_order":["1329197856","1329197861","1329197917","1329197987","1329198006","1329198040"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/44d9e490d1186460955228e25ba41962.jpg","text":"TemporaryFile(/tmp/multipartBody6800027156471926194asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966203484,"filename":"image_15012025_04_34_05_10340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b6c861a4093704e4710380adaee703a8.jpg","text":"TemporaryFile(/tmp/multipartBody8638237646128626471asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966203484,"filename":"image_15012025_04_34_45_10339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d66311ecc9e82a6f2aab778eafe59de8.jpg","text":"TemporaryFile(/tmp/multipartBody5455180488390266776asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966203484,"filename":"image_15012025_04_34_15_9377.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f9abd6e72d74b39be5f25b51f75920ef.jpg","text":"TemporaryFile(/tmp/multipartBody7950331611131266625asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966203484,"filename":"image_15012025_04_34_34_9341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/34e7dbf6ad5dad470656f565b84b5e79.jpg","text":"TemporaryFile(/tmp/multipartBody3658768562532999545asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966203484,"filename":"image_15012025_04_33_55_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b206962e2f82ee61460c38a9f8167600.jpg","text":"TemporaryFile(/tmp/multipartBody7538361533460412318asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966203484,"filename":"image_15012025_04_34_25_10518.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329197917","file1":"1329197861","file0":"1329197856","file4":"1329198006","file5":"1329198040","file3":"1329197987"},"map_files_photo_id_array":[{"photo_id":"1329198040","filename":"file5"},{"photo_id":"1329197917","filename":"file2"},{"photo_id":"1329198006","filename":"file4"},{"photo_id":"1329197861","filename":"file1"},{"photo_id":"1329197856","filename":"file0"},{"photo_id":"1329197987","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329197861":["hashtag1","hashtag2"]},{"1329198040":["hashtag1","hashtag2"]},{"1329197917":["hashtag1","hashtag2"]},{"1329198006":["hashtag1","hashtag2"]},{"1329197856":["hashtag1","hashtag2"]},{"1329197987":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329197861, 1329198040, 1329197917, 1329198006, 1329197856, 1329197987)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.531330823898315 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 15 --only_old 0
2025-01-15 19:36:32.875667
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/34/image_15012025_04_34_55_10381.jpg', '/home/pi/Desktop/images/15012025/04/34/image_15012025_04_35_04_9355.jpg', '/home/pi/Desktop/images/15012025/04/35/image_15012025_04_35_15_10352.jpg', '/home/pi/Desktop/images/15012025/04/35/image_15012025_04_35_25_10367.jpg', '/home/pi/Desktop/images/15012025/04/35/image_15012025_04_35_35_9351.jpg', '/home/pi/Desktop/images/15012025/04/35/image_15012025_04_35_54_9447.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/34/image_15012025_04_34_55_10381.jpg
/home/pi/Desktop/images/15012025/04/34/image_15012025_04_35_04_9355.jpg
/home/pi/Desktop/images/15012025/04/35/image_15012025_04_35_15_10352.jpg
/home/pi/Desktop/images/15012025/04/35/image_15012025_04_35_25_10367.jpg
/home/pi/Desktop/images/15012025/04/35/image_15012025_04_35_35_9351.jpg
/home/pi/Desktop/images/15012025/04/35/image_15012025_04_35_54_9447.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329198157","1329198139","1329198084","1329198165","1329198150","1329198167"],"photo_ids_order":["1329198084","1329198139","1329198150","1329198157","1329198165","1329198167"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/655617e6f060f99351f5d415d885e523.jpg","text":"TemporaryFile(/tmp/multipartBody4130297481125616376asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966253893,"filename":"image_15012025_04_35_25_10367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ed5543a1a12f8b8b1ffc4c8b76c3bcb6.jpg","text":"TemporaryFile(/tmp/multipartBody4288205846176711544asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966253893,"filename":"image_15012025_04_35_04_9355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/974b1b2b7df0a7c9982a5f170e061da7.jpg","text":"TemporaryFile(/tmp/multipartBody896241926729166683asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966253893,"filename":"image_15012025_04_34_55_10381.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/13a103d0b6ff21d353d2c8675af8c498.jpg","text":"TemporaryFile(/tmp/multipartBody8879922618411781800asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966253893,"filename":"image_15012025_04_35_35_9351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b9b5886f81fb819f4a2870140692d620.jpg","text":"TemporaryFile(/tmp/multipartBody4979527115127121796asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966253893,"filename":"image_15012025_04_35_15_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8b81377fc646931953cf148608db1540.jpg","text":"TemporaryFile(/tmp/multipartBody6934589944883251740asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966253893,"filename":"image_15012025_04_35_54_9447.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329198150","file1":"1329198139","file0":"1329198084","file4":"1329198165","file5":"1329198167","file3":"1329198157"},"map_files_photo_id_array":[{"photo_id":"1329198167","filename":"file5"},{"photo_id":"1329198150","filename":"file2"},{"photo_id":"1329198165","filename":"file4"},{"photo_id":"1329198139","filename":"file1"},{"photo_id":"1329198084","filename":"file0"},{"photo_id":"1329198157","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329198157":["hashtag1","hashtag2"]},{"1329198139":["hashtag1","hashtag2"]},{"1329198084":["hashtag1","hashtag2"]},{"1329198165":["hashtag1","hashtag2"]},{"1329198150":["hashtag1","hashtag2"]},{"1329198167":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329198157, 1329198139, 1329198084, 1329198165, 1329198150, 1329198167)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 50.11541676521301 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 15 --only_old 0
2025-01-15 19:37:33.102078
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/35/image_15012025_04_36_05_10353.jpg', '/home/pi/Desktop/images/15012025/04/36/image_15012025_04_36_15_10470.jpg', '/home/pi/Desktop/images/15012025/04/36/image_15012025_04_36_25_9370.jpg', '/home/pi/Desktop/images/15012025/04/36/image_15012025_04_36_35_10358.jpg', '/home/pi/Desktop/images/15012025/04/36/image_15012025_04_36_44_9346.jpg', '/home/pi/Desktop/images/15012025/04/36/image_15012025_04_37_05_10439.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/35/image_15012025_04_36_05_10353.jpg
/home/pi/Desktop/images/15012025/04/36/image_15012025_04_36_15_10470.jpg
/home/pi/Desktop/images/15012025/04/36/image_15012025_04_36_25_9370.jpg
/home/pi/Desktop/images/15012025/04/36/image_15012025_04_36_35_10358.jpg
/home/pi/Desktop/images/15012025/04/36/image_15012025_04_36_44_9346.jpg
/home/pi/Desktop/images/15012025/04/36/image_15012025_04_37_05_10439.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329198203","1329198196","1329198199","1329198192","1329198183","1329198176"],"photo_ids_order":["1329198176","1329198183","1329198192","1329198196","1329198199","1329198203"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/40fb6387cd4cba415bede2c642df0112.jpg","text":"TemporaryFile(/tmp/multipartBody8193352260967483561asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966314106,"filename":"image_15012025_04_37_05_10439.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cf75613f71153a5b5cc72290563be8cb.jpg","text":"TemporaryFile(/tmp/multipartBody2651044977995055833asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966314106,"filename":"image_15012025_04_36_35_10358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/93f63f59df79b8976029dbc5611c7adb.jpg","text":"TemporaryFile(/tmp/multipartBody6908755725282760110asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966314106,"filename":"image_15012025_04_36_44_9346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/db406ae51463de143a3097544d6cb0f2.jpg","text":"TemporaryFile(/tmp/multipartBody3258054053837170468asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966314106,"filename":"image_15012025_04_36_25_9370.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3373e88be78377db96366100634c11cd.jpg","text":"TemporaryFile(/tmp/multipartBody2284172483518647178asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966314106,"filename":"image_15012025_04_36_15_10470.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/86cde9cb959773102c8e175bb9acd676.jpg","text":"TemporaryFile(/tmp/multipartBody6775532324571598075asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966314106,"filename":"image_15012025_04_36_05_10353.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329198192","file1":"1329198183","file0":"1329198176","file4":"1329198199","file5":"1329198203","file3":"1329198196"},"map_files_photo_id_array":[{"photo_id":"1329198203","filename":"file5"},{"photo_id":"1329198192","filename":"file2"},{"photo_id":"1329198199","filename":"file4"},{"photo_id":"1329198183","filename":"file1"},{"photo_id":"1329198176","filename":"file0"},{"photo_id":"1329198196","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329198203":["hashtag1","hashtag2"]},{"1329198196":["hashtag1","hashtag2"]},{"1329198199":["hashtag1","hashtag2"]},{"1329198192":["hashtag1","hashtag2"]},{"1329198183":["hashtag1","hashtag2"]},{"1329198176":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329198203, 1329198196, 1329198199, 1329198192, 1329198183, 1329198176)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.46559429168701 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 15 --only_old 0
2025-01-15 19:38:32.376983
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/37/image_15012025_04_37_25_10363.jpg', '/home/pi/Desktop/images/15012025/04/37/image_15012025_04_37_35_10369.jpg', '/home/pi/Desktop/images/15012025/04/37/image_15012025_04_37_44_9337.jpg', '/home/pi/Desktop/images/15012025/04/37/image_15012025_04_37_55_10464.jpg', '/home/pi/Desktop/images/15012025/04/37/image_15012025_04_38_04_9427.jpg', '/home/pi/Desktop/images/15012025/04/38/image_15012025_04_38_15_10363.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/37/image_15012025_04_37_25_10363.jpg
/home/pi/Desktop/images/15012025/04/37/image_15012025_04_37_35_10369.jpg
/home/pi/Desktop/images/15012025/04/37/image_15012025_04_37_44_9337.jpg
/home/pi/Desktop/images/15012025/04/37/image_15012025_04_37_55_10464.jpg
/home/pi/Desktop/images/15012025/04/37/image_15012025_04_38_04_9427.jpg
/home/pi/Desktop/images/15012025/04/38/image_15012025_04_38_15_10363.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329198256","1329198259","1329198238","1329198226","1329198249","1329198254"],"photo_ids_order":["1329198226","1329198238","1329198249","1329198254","1329198256","1329198259"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7908daaf9e2bd994e954648b4dddd384.jpg","text":"TemporaryFile(/tmp/multipartBody7769753083573320276asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966373676,"filename":"image_15012025_04_38_04_9427.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3365643ab2fbc6336036b4038d1bfdae.jpg","text":"TemporaryFile(/tmp/multipartBody843369085436661177asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966373676,"filename":"image_15012025_04_38_15_10363.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/10fd884064258654ab73477e94e3842f.jpg","text":"TemporaryFile(/tmp/multipartBody5270012850027796195asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966373676,"filename":"image_15012025_04_37_35_10369.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/283da565cb7c7d065560407ca228e7c5.jpg","text":"TemporaryFile(/tmp/multipartBody1894897509444639258asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966373676,"filename":"image_15012025_04_37_25_10363.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b7ec746dcce8f1f989b11254b6096943.jpg","text":"TemporaryFile(/tmp/multipartBody1932419116762337371asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966373676,"filename":"image_15012025_04_37_44_9337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/98d15611b93c708c1b01198bb5236c4b.jpg","text":"TemporaryFile(/tmp/multipartBody5887540331721262160asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966373676,"filename":"image_15012025_04_37_55_10464.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329198249","file1":"1329198238","file0":"1329198226","file4":"1329198256","file5":"1329198259","file3":"1329198254"},"map_files_photo_id_array":[{"photo_id":"1329198259","filename":"file5"},{"photo_id":"1329198249","filename":"file2"},{"photo_id":"1329198256","filename":"file4"},{"photo_id":"1329198238","filename":"file1"},{"photo_id":"1329198226","filename":"file0"},{"photo_id":"1329198254","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329198256":["hashtag1","hashtag2"]},{"1329198259":["hashtag1","hashtag2"]},{"1329198238":["hashtag1","hashtag2"]},{"1329198226":["hashtag1","hashtag2"]},{"1329198249":["hashtag1","hashtag2"]},{"1329198254":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329198256, 1329198259, 1329198238, 1329198226, 1329198249, 1329198254)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.62658977508545 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 15 --only_old 0
2025-01-15 19:39:33.046534
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/38/image_15012025_04_38_25_10370.jpg', '/home/pi/Desktop/images/15012025/04/38/image_15012025_04_38_34_9355.jpg', '/home/pi/Desktop/images/15012025/04/38/image_15012025_04_38_45_10352.jpg', '/home/pi/Desktop/images/15012025/04/38/image_15012025_04_38_54_9433.jpg', '/home/pi/Desktop/images/15012025/04/38/image_15012025_04_39_05_10412.jpg', '/home/pi/Desktop/images/15012025/04/39/image_15012025_04_39_15_10454.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/38/image_15012025_04_38_25_10370.jpg
/home/pi/Desktop/images/15012025/04/38/image_15012025_04_38_34_9355.jpg
/home/pi/Desktop/images/15012025/04/38/image_15012025_04_38_45_10352.jpg
/home/pi/Desktop/images/15012025/04/38/image_15012025_04_38_54_9433.jpg
/home/pi/Desktop/images/15012025/04/38/image_15012025_04_39_05_10412.jpg
/home/pi/Desktop/images/15012025/04/39/image_15012025_04_39_15_10454.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6059565544128418 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
2025-01-15 19:39:43.239588
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/38/image_15012025_04_38_25_10370.jpg', '/home/pi/Desktop/images/15012025/04/38/image_15012025_04_38_34_9355.jpg', '/home/pi/Desktop/images/15012025/04/38/image_15012025_04_38_45_10352.jpg', '/home/pi/Desktop/images/15012025/04/38/image_15012025_04_38_54_9433.jpg', '/home/pi/Desktop/images/15012025/04/38/image_15012025_04_39_05_10412.jpg', '/home/pi/Desktop/images/15012025/04/39/image_15012025_04_39_15_10454.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/38/image_15012025_04_38_25_10370.jpg
/home/pi/Desktop/images/15012025/04/38/image_15012025_04_38_34_9355.jpg
/home/pi/Desktop/images/15012025/04/38/image_15012025_04_38_45_10352.jpg
/home/pi/Desktop/images/15012025/04/38/image_15012025_04_38_54_9433.jpg
/home/pi/Desktop/images/15012025/04/38/image_15012025_04_39_05_10412.jpg
/home/pi/Desktop/images/15012025/04/39/image_15012025_04_39_15_10454.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329198370","1329198331","1329198366","1329198369","1329198348","1329198336"],"photo_ids_order":["1329198331","1329198336","1329198348","1329198366","1329198369","1329198370"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2a65d223342df657e48171223dd10b86.jpg","text":"TemporaryFile(/tmp/multipartBody469674755619979928asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966444152,"filename":"image_15012025_04_39_15_10454.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6c0c3bb830cb489d8bcd3311103b4dde.jpg","text":"TemporaryFile(/tmp/multipartBody4646954927611542002asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966444152,"filename":"image_15012025_04_38_25_10370.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e9f4a88319107bc3a7d0e8d933014bce.jpg","text":"TemporaryFile(/tmp/multipartBody7607691744308583492asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966444152,"filename":"image_15012025_04_38_54_9433.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/99af24e2a3db06cadb287d4f37b52cef.jpg","text":"TemporaryFile(/tmp/multipartBody187201707408668809asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966444152,"filename":"image_15012025_04_39_05_10412.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e254c5ce4a99db8e8d4bdc0cd9f8f76b.jpg","text":"TemporaryFile(/tmp/multipartBody3645756238252992520asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966444152,"filename":"image_15012025_04_38_45_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/70fefe789267f59171f2b53467e1119d.jpg","text":"TemporaryFile(/tmp/multipartBody8284789612035061761asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966444152,"filename":"image_15012025_04_38_34_9355.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329198348","file1":"1329198336","file0":"1329198331","file4":"1329198369","file5":"1329198370","file3":"1329198366"},"map_files_photo_id_array":[{"photo_id":"1329198370","filename":"file5"},{"photo_id":"1329198348","filename":"file2"},{"photo_id":"1329198369","filename":"file4"},{"photo_id":"1329198336","filename":"file1"},{"photo_id":"1329198331","filename":"file0"},{"photo_id":"1329198366","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329198370":["hashtag1","hashtag2"]},{"1329198331":["hashtag1","hashtag2"]},{"1329198366":["hashtag1","hashtag2"]},{"1329198369":["hashtag1","hashtag2"]},{"1329198348":["hashtag1","hashtag2"]},{"1329198336":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329198370, 1329198331, 1329198366, 1329198369, 1329198348, 1329198336)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.02863526344299 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 15 --only_old 0
2025-01-15 19:40:32.338496
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/39/image_15012025_04_39_24_9368.jpg', '/home/pi/Desktop/images/15012025/04/39/image_15012025_04_39_35_10359.jpg', '/home/pi/Desktop/images/15012025/04/39/image_15012025_04_39_44_9402.jpg', '/home/pi/Desktop/images/15012025/04/39/image_15012025_04_39_55_10357.jpg', '/home/pi/Desktop/images/15012025/04/39/image_15012025_04_40_05_10410.jpg', '/home/pi/Desktop/images/15012025/04/40/image_15012025_04_40_14_9341.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/39/image_15012025_04_39_24_9368.jpg
/home/pi/Desktop/images/15012025/04/39/image_15012025_04_39_35_10359.jpg
/home/pi/Desktop/images/15012025/04/39/image_15012025_04_39_44_9402.jpg
/home/pi/Desktop/images/15012025/04/39/image_15012025_04_39_55_10357.jpg
/home/pi/Desktop/images/15012025/04/39/image_15012025_04_40_05_10410.jpg
/home/pi/Desktop/images/15012025/04/40/image_15012025_04_40_14_9341.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329198533","1329198503","1329198477","1329198534","1329198456","1329198530"],"photo_ids_order":["1329198456","1329198477","1329198503","1329198530","1329198533","1329198534"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6ba72b69925a2555dc41786f54e06b3a.jpg","text":"TemporaryFile(/tmp/multipartBody6685185124644099791asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966493400,"filename":"image_15012025_04_40_05_10410.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/de37d1cab6dfebd3c6c00c429cd5922f.jpg","text":"TemporaryFile(/tmp/multipartBody1871363052218841533asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966493400,"filename":"image_15012025_04_39_44_9402.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/88f90a756717afd014e93eaed9865c37.jpg","text":"TemporaryFile(/tmp/multipartBody522736640381800881asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966493400,"filename":"image_15012025_04_39_35_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/38c31a7b461c0bd711194eb31ca43bc6.jpg","text":"TemporaryFile(/tmp/multipartBody6435377874007177506asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966493400,"filename":"image_15012025_04_40_14_9341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1608677a9e23af3cdc089e23ba0acbdb.jpg","text":"TemporaryFile(/tmp/multipartBody6542541717549755938asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966493400,"filename":"image_15012025_04_39_24_9368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/58783ff9c7f52d62f1da347e8e52652e.jpg","text":"TemporaryFile(/tmp/multipartBody3342925207942572279asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966493400,"filename":"image_15012025_04_39_55_10357.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329198503","file1":"1329198477","file0":"1329198456","file4":"1329198533","file5":"1329198534","file3":"1329198530"},"map_files_photo_id_array":[{"photo_id":"1329198534","filename":"file5"},{"photo_id":"1329198503","filename":"file2"},{"photo_id":"1329198533","filename":"file4"},{"photo_id":"1329198477","filename":"file1"},{"photo_id":"1329198456","filename":"file0"},{"photo_id":"1329198530","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329198533":["hashtag1","hashtag2"]},{"1329198503":["hashtag1","hashtag2"]},{"1329198477":["hashtag1","hashtag2"]},{"1329198534":["hashtag1","hashtag2"]},{"1329198456":["hashtag1","hashtag2"]},{"1329198530":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329198533, 1329198503, 1329198477, 1329198534, 1329198456, 1329198530)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.20217037200928 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 15 --only_old 0
2025-01-15 19:41:32.534697
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/40/image_15012025_04_40_25_10348.jpg', '/home/pi/Desktop/images/15012025/04/40/image_15012025_04_40_35_10388.jpg', '/home/pi/Desktop/images/15012025/04/40/image_15012025_04_40_44_9347.jpg', '/home/pi/Desktop/images/15012025/04/40/image_15012025_04_40_55_10464.jpg', '/home/pi/Desktop/images/15012025/04/40/image_15012025_04_41_04_9404.jpg', '/home/pi/Desktop/images/15012025/04/41/image_15012025_04_41_15_10323.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/40/image_15012025_04_40_25_10348.jpg
/home/pi/Desktop/images/15012025/04/40/image_15012025_04_40_35_10388.jpg
/home/pi/Desktop/images/15012025/04/40/image_15012025_04_40_44_9347.jpg
/home/pi/Desktop/images/15012025/04/40/image_15012025_04_40_55_10464.jpg
/home/pi/Desktop/images/15012025/04/40/image_15012025_04_41_04_9404.jpg
/home/pi/Desktop/images/15012025/04/41/image_15012025_04_41_15_10323.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329198565","1329198558","1329198555","1329198549","1329198563","1329198566"],"photo_ids_order":["1329198549","1329198555","1329198558","1329198563","1329198565","1329198566"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5ad17b8d00476a24bc049cb875a22b3c.jpg","text":"TemporaryFile(/tmp/multipartBody9154544510601754316asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966553534,"filename":"image_15012025_04_41_04_9404.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/35b9803771689a6ad4dc7d2dfd9a3c7b.jpg","text":"TemporaryFile(/tmp/multipartBody6423242853176036793asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966553534,"filename":"image_15012025_04_40_44_9347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8b0164c0ab21e021d41f80e7d077c005.jpg","text":"TemporaryFile(/tmp/multipartBody5288494462249615154asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966553534,"filename":"image_15012025_04_40_35_10388.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b84522449aa190d52b3c4cd6858806af.jpg","text":"TemporaryFile(/tmp/multipartBody234009936259978365asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966553534,"filename":"image_15012025_04_40_25_10348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a5f784deca8ebfa0422ba5212e217d7b.jpg","text":"TemporaryFile(/tmp/multipartBody2791209836903738207asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966553534,"filename":"image_15012025_04_40_55_10464.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/69235512ef17eb56fd6616eb8a125264.jpg","text":"TemporaryFile(/tmp/multipartBody2256359776529628635asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966553534,"filename":"image_15012025_04_41_15_10323.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329198558","file1":"1329198555","file0":"1329198549","file4":"1329198565","file5":"1329198566","file3":"1329198563"},"map_files_photo_id_array":[{"photo_id":"1329198566","filename":"file5"},{"photo_id":"1329198558","filename":"file2"},{"photo_id":"1329198565","filename":"file4"},{"photo_id":"1329198555","filename":"file1"},{"photo_id":"1329198549","filename":"file0"},{"photo_id":"1329198563","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329198565":["hashtag1","hashtag2"]},{"1329198558":["hashtag1","hashtag2"]},{"1329198555":["hashtag1","hashtag2"]},{"1329198549":["hashtag1","hashtag2"]},{"1329198563":["hashtag1","hashtag2"]},{"1329198566":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329198565, 1329198558, 1329198555, 1329198549, 1329198563, 1329198566)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.33744955062866 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 15 --only_old 0
2025-01-15 19:42:32.844874
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/41/image_15012025_04_41_25_10420.jpg', '/home/pi/Desktop/images/15012025/04/41/image_15012025_04_41_34_9341.jpg', '/home/pi/Desktop/images/15012025/04/41/image_15012025_04_41_45_10337.jpg', '/home/pi/Desktop/images/15012025/04/41/image_15012025_04_41_55_10423.jpg', '/home/pi/Desktop/images/15012025/04/41/image_15012025_04_42_05_9415.jpg', '/home/pi/Desktop/images/15012025/04/42/image_15012025_04_42_15_10350.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/41/image_15012025_04_41_25_10420.jpg
/home/pi/Desktop/images/15012025/04/41/image_15012025_04_41_34_9341.jpg
/home/pi/Desktop/images/15012025/04/41/image_15012025_04_41_45_10337.jpg
/home/pi/Desktop/images/15012025/04/41/image_15012025_04_41_55_10423.jpg
/home/pi/Desktop/images/15012025/04/41/image_15012025_04_42_05_9415.jpg
/home/pi/Desktop/images/15012025/04/42/image_15012025_04_42_15_10350.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329198595","1329198582","1329198585","1329198609","1329198599","1329198590"],"photo_ids_order":["1329198582","1329198585","1329198590","1329198595","1329198599","1329198609"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9e8b3204a8deff185886b4e57f807e3c.jpg","text":"TemporaryFile(/tmp/multipartBody1349828052826986951asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966613859,"filename":"image_15012025_04_41_55_10423.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/547cddd721b610f25e934238edb369c6.jpg","text":"TemporaryFile(/tmp/multipartBody4180107594359362330asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966613859,"filename":"image_15012025_04_41_25_10420.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/60fb764ffd942ace1918cd94a33a2f49.jpg","text":"TemporaryFile(/tmp/multipartBody3395631140087472679asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966613859,"filename":"image_15012025_04_41_34_9341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/44672d19a9705a88e4a2a046d1cf4e62.jpg","text":"TemporaryFile(/tmp/multipartBody7633903406198947625asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966613859,"filename":"image_15012025_04_42_15_10350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b2a8c6bd67c82c6221553dcf69f6ec95.jpg","text":"TemporaryFile(/tmp/multipartBody3244332125649321842asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966613859,"filename":"image_15012025_04_42_05_9415.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f3614c77f6f66cdfc151fe8d4a225821.jpg","text":"TemporaryFile(/tmp/multipartBody1468819487187747885asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966613859,"filename":"image_15012025_04_41_45_10337.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329198590","file1":"1329198585","file0":"1329198582","file4":"1329198599","file5":"1329198609","file3":"1329198595"},"map_files_photo_id_array":[{"photo_id":"1329198609","filename":"file5"},{"photo_id":"1329198590","filename":"file2"},{"photo_id":"1329198599","filename":"file4"},{"photo_id":"1329198585","filename":"file1"},{"photo_id":"1329198582","filename":"file0"},{"photo_id":"1329198595","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329198595":["hashtag1","hashtag2"]},{"1329198582":["hashtag1","hashtag2"]},{"1329198585":["hashtag1","hashtag2"]},{"1329198609":["hashtag1","hashtag2"]},{"1329198599":["hashtag1","hashtag2"]},{"1329198590":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329198595, 1329198582, 1329198585, 1329198609, 1329198599, 1329198590)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.575068950653076 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 15 --only_old 0
2025-01-15 19:43:32.969604
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/42/image_15012025_04_42_24_9382.jpg', '/home/pi/Desktop/images/15012025/04/42/image_15012025_04_42_35_10352.jpg', '/home/pi/Desktop/images/15012025/04/42/image_15012025_04_42_45_10465.jpg', '/home/pi/Desktop/images/15012025/04/42/image_15012025_04_42_54_9336.jpg', '/home/pi/Desktop/images/15012025/04/42/image_15012025_04_43_05_10371.jpg', '/home/pi/Desktop/images/15012025/04/43/image_15012025_04_43_14_9415.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/42/image_15012025_04_42_24_9382.jpg
/home/pi/Desktop/images/15012025/04/42/image_15012025_04_42_35_10352.jpg
/home/pi/Desktop/images/15012025/04/42/image_15012025_04_42_45_10465.jpg
/home/pi/Desktop/images/15012025/04/42/image_15012025_04_42_54_9336.jpg
/home/pi/Desktop/images/15012025/04/42/image_15012025_04_43_05_10371.jpg
/home/pi/Desktop/images/15012025/04/43/image_15012025_04_43_14_9415.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6442849636077881 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
2025-01-15 19:43:42.947270
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/42/image_15012025_04_42_24_9382.jpg', '/home/pi/Desktop/images/15012025/04/42/image_15012025_04_42_35_10352.jpg', '/home/pi/Desktop/images/15012025/04/42/image_15012025_04_42_45_10465.jpg', '/home/pi/Desktop/images/15012025/04/42/image_15012025_04_42_54_9336.jpg', '/home/pi/Desktop/images/15012025/04/42/image_15012025_04_43_05_10371.jpg', '/home/pi/Desktop/images/15012025/04/43/image_15012025_04_43_14_9415.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/42/image_15012025_04_42_24_9382.jpg
/home/pi/Desktop/images/15012025/04/42/image_15012025_04_42_35_10352.jpg
/home/pi/Desktop/images/15012025/04/42/image_15012025_04_42_45_10465.jpg
/home/pi/Desktop/images/15012025/04/42/image_15012025_04_42_54_9336.jpg
/home/pi/Desktop/images/15012025/04/42/image_15012025_04_43_05_10371.jpg
/home/pi/Desktop/images/15012025/04/43/image_15012025_04_43_14_9415.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329198682","1329198676","1329198661","1329198693","1329198657","1329198654"],"photo_ids_order":["1329198654","1329198657","1329198661","1329198676","1329198682","1329198693"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a329f8e41427f37c03ecdf13f7bf5743.jpg","text":"TemporaryFile(/tmp/multipartBody2809035789976969616asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966683866,"filename":"image_15012025_04_43_05_10371.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4b0a193b975a7b1ddff02988b137a28e.jpg","text":"TemporaryFile(/tmp/multipartBody596281336991259459asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966683866,"filename":"image_15012025_04_42_54_9336.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ec0eeb7e784f7779f57645d288f7432c.jpg","text":"TemporaryFile(/tmp/multipartBody5662570282297097662asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966683866,"filename":"image_15012025_04_42_45_10465.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c64f39dd3b69d806c406ae183a07cbfe.jpg","text":"TemporaryFile(/tmp/multipartBody744669238954931686asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966683866,"filename":"image_15012025_04_43_14_9415.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1b8c19ed9d94ab091cf0e2c649407b94.jpg","text":"TemporaryFile(/tmp/multipartBody6999449646321664832asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966683866,"filename":"image_15012025_04_42_35_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b0265d64aa6164d9a96c2477ee978e6e.jpg","text":"TemporaryFile(/tmp/multipartBody4711109213486292287asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966683866,"filename":"image_15012025_04_42_24_9382.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329198661","file1":"1329198657","file0":"1329198654","file4":"1329198682","file5":"1329198693","file3":"1329198676"},"map_files_photo_id_array":[{"photo_id":"1329198693","filename":"file5"},{"photo_id":"1329198661","filename":"file2"},{"photo_id":"1329198682","filename":"file4"},{"photo_id":"1329198657","filename":"file1"},{"photo_id":"1329198654","filename":"file0"},{"photo_id":"1329198676","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329198682":["hashtag1","hashtag2"]},{"1329198676":["hashtag1","hashtag2"]},{"1329198661":["hashtag1","hashtag2"]},{"1329198693":["hashtag1","hashtag2"]},{"1329198657":["hashtag1","hashtag2"]},{"1329198654":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329198682, 1329198676, 1329198661, 1329198693, 1329198657, 1329198654)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.000401973724365 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 15 --only_old 0
2025-01-15 19:44:33.084593
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/43/image_15012025_04_43_25_10363.jpg', '/home/pi/Desktop/images/15012025/04/43/image_15012025_04_43_35_10407.jpg', '/home/pi/Desktop/images/15012025/04/43/image_15012025_04_43_44_9381.jpg', '/home/pi/Desktop/images/15012025/04/43/image_15012025_04_44_05_10463.jpg', '/home/pi/Desktop/images/15012025/04/44/image_15012025_04_44_15_9352.jpg', '/home/pi/Desktop/images/15012025/04/44/image_15012025_04_44_25_10354.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/43/image_15012025_04_43_25_10363.jpg
/home/pi/Desktop/images/15012025/04/43/image_15012025_04_43_35_10407.jpg
/home/pi/Desktop/images/15012025/04/43/image_15012025_04_43_44_9381.jpg
/home/pi/Desktop/images/15012025/04/43/image_15012025_04_44_05_10463.jpg
/home/pi/Desktop/images/15012025/04/44/image_15012025_04_44_15_9352.jpg
/home/pi/Desktop/images/15012025/04/44/image_15012025_04_44_25_10354.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329198742","1329198747","1329198732","1329198807","1329198735","1329198740"],"photo_ids_order":["1329198732","1329198735","1329198740","1329198742","1329198747","1329198807"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/14067015aea791f3755a366074671d18.jpg","text":"TemporaryFile(/tmp/multipartBody774843272600447987asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966734080,"filename":"image_15012025_04_44_05_10463.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f5f3d593cec16820858b030643ef54e7.jpg","text":"TemporaryFile(/tmp/multipartBody6114977331209153599asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966734080,"filename":"image_15012025_04_44_15_9352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c996c4d92b9dcbc913877b1de248abd6.jpg","text":"TemporaryFile(/tmp/multipartBody1935518230517231059asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966734080,"filename":"image_15012025_04_43_25_10363.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/998dff78b62cf1eb6abba39829362713.jpg","text":"TemporaryFile(/tmp/multipartBody4957685877114475998asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966734080,"filename":"image_15012025_04_44_25_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6d6bbff15eab3630760ce767fd9c52e9.jpg","text":"TemporaryFile(/tmp/multipartBody9132569159294524552asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966734080,"filename":"image_15012025_04_43_35_10407.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9368809d230ffa079550156cc67b7402.jpg","text":"TemporaryFile(/tmp/multipartBody1174472282751572395asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966734080,"filename":"image_15012025_04_43_44_9381.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329198740","file1":"1329198735","file0":"1329198732","file4":"1329198747","file5":"1329198807","file3":"1329198742"},"map_files_photo_id_array":[{"photo_id":"1329198807","filename":"file5"},{"photo_id":"1329198740","filename":"file2"},{"photo_id":"1329198747","filename":"file4"},{"photo_id":"1329198735","filename":"file1"},{"photo_id":"1329198732","filename":"file0"},{"photo_id":"1329198742","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329198742":["hashtag1","hashtag2"]},{"1329198747":["hashtag1","hashtag2"]},{"1329198732":["hashtag1","hashtag2"]},{"1329198807":["hashtag1","hashtag2"]},{"1329198735":["hashtag1","hashtag2"]},{"1329198740":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329198742, 1329198747, 1329198732, 1329198807, 1329198735, 1329198740)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.950164794921875 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 15 --only_old 0
2025-01-15 19:45:32.617864
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/44/image_15012025_04_44_34_9404.jpg', '/home/pi/Desktop/images/15012025/04/44/image_15012025_04_44_45_10340.jpg', '/home/pi/Desktop/images/15012025/04/44/image_15012025_04_44_55_10410.jpg', '/home/pi/Desktop/images/15012025/04/44/image_15012025_04_45_04_9324.jpg', '/home/pi/Desktop/images/15012025/04/45/image_15012025_04_45_15_10379.jpg', '/home/pi/Desktop/images/15012025/04/45/image_15012025_04_45_25_10361.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/44/image_15012025_04_44_34_9404.jpg
/home/pi/Desktop/images/15012025/04/44/image_15012025_04_44_45_10340.jpg
/home/pi/Desktop/images/15012025/04/44/image_15012025_04_44_55_10410.jpg
/home/pi/Desktop/images/15012025/04/44/image_15012025_04_45_04_9324.jpg
/home/pi/Desktop/images/15012025/04/45/image_15012025_04_45_15_10379.jpg
/home/pi/Desktop/images/15012025/04/45/image_15012025_04_45_25_10361.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329199042","1329199146","1329199134","1329199158","1329199097","1329199160"],"photo_ids_order":["1329199042","1329199097","1329199134","1329199146","1329199158","1329199160"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c5a7ad4504e9903d51e95ce62fbba5fb.jpg","text":"TemporaryFile(/tmp/multipartBody3269474272201415853asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966793638,"filename":"image_15012025_04_44_34_9404.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/228ac436ff2aa8741d90f5f604be3e0a.jpg","text":"TemporaryFile(/tmp/multipartBody4440755038444416127asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966793638,"filename":"image_15012025_04_45_04_9324.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c6b1d2768153244b0a15b37939238d57.jpg","text":"TemporaryFile(/tmp/multipartBody2715791273884990653asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966793638,"filename":"image_15012025_04_44_55_10410.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dedea155d5cb11badfebf90a8137d0c1.jpg","text":"TemporaryFile(/tmp/multipartBody2112222960347950015asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966793638,"filename":"image_15012025_04_45_15_10379.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/312f731b24bfa28794321468f689c418.jpg","text":"TemporaryFile(/tmp/multipartBody5414163171383877221asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966793638,"filename":"image_15012025_04_44_45_10340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d2e135f35e332a5e2bbc22141766778c.jpg","text":"TemporaryFile(/tmp/multipartBody5234593070933649221asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966793638,"filename":"image_15012025_04_45_25_10361.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329199134","file1":"1329199097","file0":"1329199042","file4":"1329199158","file5":"1329199160","file3":"1329199146"},"map_files_photo_id_array":[{"photo_id":"1329199160","filename":"file5"},{"photo_id":"1329199134","filename":"file2"},{"photo_id":"1329199158","filename":"file4"},{"photo_id":"1329199097","filename":"file1"},{"photo_id":"1329199042","filename":"file0"},{"photo_id":"1329199146","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329199042":["hashtag1","hashtag2"]},{"1329199146":["hashtag1","hashtag2"]},{"1329199134":["hashtag1","hashtag2"]},{"1329199158":["hashtag1","hashtag2"]},{"1329199097":["hashtag1","hashtag2"]},{"1329199160":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329199042, 1329199146, 1329199134, 1329199158, 1329199097, 1329199160)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 50.86186504364014 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 15 --only_old 0
2025-01-15 19:46:32.930247
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/45/image_15012025_04_45_34_9387.jpg', '/home/pi/Desktop/images/15012025/04/45/image_15012025_04_45_45_10342.jpg', '/home/pi/Desktop/images/15012025/04/45/image_15012025_04_45_54_9398.jpg', '/home/pi/Desktop/images/15012025/04/45/image_15012025_04_46_05_10427.jpg', '/home/pi/Desktop/images/15012025/04/46/image_15012025_04_46_15_10402.jpg', '/home/pi/Desktop/images/15012025/04/46/image_15012025_04_46_24_9396.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/45/image_15012025_04_45_34_9387.jpg
/home/pi/Desktop/images/15012025/04/45/image_15012025_04_45_45_10342.jpg
/home/pi/Desktop/images/15012025/04/45/image_15012025_04_45_54_9398.jpg
/home/pi/Desktop/images/15012025/04/45/image_15012025_04_46_05_10427.jpg
/home/pi/Desktop/images/15012025/04/46/image_15012025_04_46_15_10402.jpg
/home/pi/Desktop/images/15012025/04/46/image_15012025_04_46_24_9396.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6135001182556152 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
2025-01-15 19:46:42.866015
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/45/image_15012025_04_45_34_9387.jpg', '/home/pi/Desktop/images/15012025/04/45/image_15012025_04_45_45_10342.jpg', '/home/pi/Desktop/images/15012025/04/45/image_15012025_04_45_54_9398.jpg', '/home/pi/Desktop/images/15012025/04/45/image_15012025_04_46_05_10427.jpg', '/home/pi/Desktop/images/15012025/04/46/image_15012025_04_46_15_10402.jpg', '/home/pi/Desktop/images/15012025/04/46/image_15012025_04_46_24_9396.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/45/image_15012025_04_45_34_9387.jpg
/home/pi/Desktop/images/15012025/04/45/image_15012025_04_45_45_10342.jpg
/home/pi/Desktop/images/15012025/04/45/image_15012025_04_45_54_9398.jpg
/home/pi/Desktop/images/15012025/04/45/image_15012025_04_46_05_10427.jpg
/home/pi/Desktop/images/15012025/04/46/image_15012025_04_46_15_10402.jpg
/home/pi/Desktop/images/15012025/04/46/image_15012025_04_46_24_9396.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329199201","1329199185","1329199179","1329199194","1329199203","1329199199"],"photo_ids_order":["1329199179","1329199185","1329199194","1329199199","1329199201","1329199203"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/53185b0b750e346a10ad202458f0089a.jpg","text":"TemporaryFile(/tmp/multipartBody2333884968020544333asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966863786,"filename":"image_15012025_04_46_15_10402.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cea209d65902f0d01f29821431ccbdd7.jpg","text":"TemporaryFile(/tmp/multipartBody7366238356455057100asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966863786,"filename":"image_15012025_04_45_45_10342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2e412e6d82a6777bd194facaaa5dc7bf.jpg","text":"TemporaryFile(/tmp/multipartBody2836000598774293540asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966863786,"filename":"image_15012025_04_45_34_9387.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8478fe55f0e93a518396cfe34424ea4a.jpg","text":"TemporaryFile(/tmp/multipartBody2728476266174844648asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966863786,"filename":"image_15012025_04_45_54_9398.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a421cf785a372dfa2911e437412828b3.jpg","text":"TemporaryFile(/tmp/multipartBody8160097053901599602asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966863786,"filename":"image_15012025_04_46_24_9396.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3df6a2a854d178bd0d304e75349b6b1b.jpg","text":"TemporaryFile(/tmp/multipartBody2029906388975977806asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966863786,"filename":"image_15012025_04_46_05_10427.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329199194","file1":"1329199185","file0":"1329199179","file4":"1329199201","file5":"1329199203","file3":"1329199199"},"map_files_photo_id_array":[{"photo_id":"1329199203","filename":"file5"},{"photo_id":"1329199194","filename":"file2"},{"photo_id":"1329199201","filename":"file4"},{"photo_id":"1329199185","filename":"file1"},{"photo_id":"1329199179","filename":"file0"},{"photo_id":"1329199199","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329199201":["hashtag1","hashtag2"]},{"1329199185":["hashtag1","hashtag2"]},{"1329199179":["hashtag1","hashtag2"]},{"1329199194":["hashtag1","hashtag2"]},{"1329199203":["hashtag1","hashtag2"]},{"1329199199":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329199201, 1329199185, 1329199179, 1329199194, 1329199203, 1329199199)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.75935411453247 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 15 --only_old 0
2025-01-15 19:47:32.932544
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/46/image_15012025_04_46_35_10373.jpg', '/home/pi/Desktop/images/15012025/04/46/image_15012025_04_46_44_9348.jpg', '/home/pi/Desktop/images/15012025/04/46/image_15012025_04_46_55_10352.jpg', '/home/pi/Desktop/images/15012025/04/46/image_15012025_04_47_05_10461.jpg', '/home/pi/Desktop/images/15012025/04/47/image_15012025_04_47_14_9417.jpg', '/home/pi/Desktop/images/15012025/04/47/image_15012025_04_47_25_10349.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/46/image_15012025_04_46_35_10373.jpg
/home/pi/Desktop/images/15012025/04/46/image_15012025_04_46_44_9348.jpg
/home/pi/Desktop/images/15012025/04/46/image_15012025_04_46_55_10352.jpg
/home/pi/Desktop/images/15012025/04/46/image_15012025_04_47_05_10461.jpg
/home/pi/Desktop/images/15012025/04/47/image_15012025_04_47_14_9417.jpg
/home/pi/Desktop/images/15012025/04/47/image_15012025_04_47_25_10349.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329199236","1329199230","1329199232","1329199226","1329199220","1329199214"],"photo_ids_order":["1329199214","1329199220","1329199226","1329199230","1329199232","1329199236"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e3c429c0c9f20161a745e26a1a8c4d40.jpg","text":"TemporaryFile(/tmp/multipartBody7356188938196758038asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966913921,"filename":"image_15012025_04_47_25_10349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9466233d27a20d65565c4f18c469187b.jpg","text":"TemporaryFile(/tmp/multipartBody8846465304016166927asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966913921,"filename":"image_15012025_04_47_05_10461.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/476a92fdc35181823b0a4c57190280a4.jpg","text":"TemporaryFile(/tmp/multipartBody1321930498778008605asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966913921,"filename":"image_15012025_04_47_14_9417.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e29f78afa57683891d835c06a8a0b2c1.jpg","text":"TemporaryFile(/tmp/multipartBody7788152863062785704asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966913921,"filename":"image_15012025_04_46_55_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ffc4785000152e64ab26cc4ddf0ed418.jpg","text":"TemporaryFile(/tmp/multipartBody2717137816516014480asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966913921,"filename":"image_15012025_04_46_44_9348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3ca5c1ec36b2b912438f73685057457e.jpg","text":"TemporaryFile(/tmp/multipartBody2912887903524021856asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966913921,"filename":"image_15012025_04_46_35_10373.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329199226","file1":"1329199220","file0":"1329199214","file4":"1329199232","file5":"1329199236","file3":"1329199230"},"map_files_photo_id_array":[{"photo_id":"1329199236","filename":"file5"},{"photo_id":"1329199226","filename":"file2"},{"photo_id":"1329199232","filename":"file4"},{"photo_id":"1329199220","filename":"file1"},{"photo_id":"1329199214","filename":"file0"},{"photo_id":"1329199230","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329199236":["hashtag1","hashtag2"]},{"1329199230":["hashtag1","hashtag2"]},{"1329199232":["hashtag1","hashtag2"]},{"1329199226":["hashtag1","hashtag2"]},{"1329199220":["hashtag1","hashtag2"]},{"1329199214":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329199236, 1329199230, 1329199232, 1329199226, 1329199220, 1329199214)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.680832624435425 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 15 --only_old 0
2025-01-15 19:48:32.294726
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/47/image_15012025_04_47_34_9437.jpg', '/home/pi/Desktop/images/15012025/04/47/image_15012025_04_47_45_10417.jpg', '/home/pi/Desktop/images/15012025/04/47/image_15012025_04_48_04_9356.jpg', '/home/pi/Desktop/images/15012025/04/48/image_15012025_04_48_15_10360.jpg', '/home/pi/Desktop/images/15012025/04/48/image_15012025_04_48_25_10364.jpg', '/home/pi/Desktop/images/15012025/04/48/image_15012025_04_48_35_9405.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/47/image_15012025_04_47_34_9437.jpg
/home/pi/Desktop/images/15012025/04/47/image_15012025_04_47_45_10417.jpg
/home/pi/Desktop/images/15012025/04/47/image_15012025_04_48_04_9356.jpg
/home/pi/Desktop/images/15012025/04/48/image_15012025_04_48_15_10360.jpg
/home/pi/Desktop/images/15012025/04/48/image_15012025_04_48_25_10364.jpg
/home/pi/Desktop/images/15012025/04/48/image_15012025_04_48_35_9405.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329199246","1329199266","1329199251","1329199262","1329199256","1329199271"],"photo_ids_order":["1329199246","1329199251","1329199256","1329199262","1329199266","1329199271"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a4cbe474631dd604487da1b96368d825.jpg","text":"TemporaryFile(/tmp/multipartBody7227770650352453559asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966973332,"filename":"image_15012025_04_47_34_9437.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8ed0f3d125fca67aedbbbc5b6a699cb2.jpg","text":"TemporaryFile(/tmp/multipartBody165507699959034980asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966973332,"filename":"image_15012025_04_48_25_10364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d563878ed371f8f5d25fc1d37c53208b.jpg","text":"TemporaryFile(/tmp/multipartBody306535199304268164asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966973332,"filename":"image_15012025_04_47_45_10417.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9f8496d25a62d4d80fbaab357d92f6d6.jpg","text":"TemporaryFile(/tmp/multipartBody8532069741407411449asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966973332,"filename":"image_15012025_04_48_15_10360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5a851b3965512cc4fbfe2baae66f87ab.jpg","text":"TemporaryFile(/tmp/multipartBody8619538915510525901asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966973332,"filename":"image_15012025_04_48_04_9356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ec9e69dd43846b7a87bfcbf120465a22.jpg","text":"TemporaryFile(/tmp/multipartBody1924419649571694002asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736966973332,"filename":"image_15012025_04_48_35_9405.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329199256","file1":"1329199251","file0":"1329199246","file4":"1329199266","file5":"1329199271","file3":"1329199262"},"map_files_photo_id_array":[{"photo_id":"1329199271","filename":"file5"},{"photo_id":"1329199256","filename":"file2"},{"photo_id":"1329199266","filename":"file4"},{"photo_id":"1329199251","filename":"file1"},{"photo_id":"1329199246","filename":"file0"},{"photo_id":"1329199262","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329199246":["hashtag1","hashtag2"]},{"1329199266":["hashtag1","hashtag2"]},{"1329199251":["hashtag1","hashtag2"]},{"1329199262":["hashtag1","hashtag2"]},{"1329199256":["hashtag1","hashtag2"]},{"1329199271":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329199246, 1329199266, 1329199251, 1329199262, 1329199256, 1329199271)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.29867911338806 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 15 --only_old 0
2025-01-15 19:49:32.550191
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/48/image_15012025_04_48_54_9349.jpg', '/home/pi/Desktop/images/15012025/04/48/image_15012025_04_49_05_10403.jpg', '/home/pi/Desktop/images/15012025/04/49/image_15012025_04_49_15_10467.jpg', '/home/pi/Desktop/images/15012025/04/49/image_15012025_04_49_24_9376.jpg', '/home/pi/Desktop/images/15012025/04/49/image_15012025_04_49_35_10342.jpg', '/home/pi/Desktop/images/15012025/04/49/image_15012025_04_49_45_10341.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/48/image_15012025_04_48_54_9349.jpg
/home/pi/Desktop/images/15012025/04/48/image_15012025_04_49_05_10403.jpg
/home/pi/Desktop/images/15012025/04/49/image_15012025_04_49_15_10467.jpg
/home/pi/Desktop/images/15012025/04/49/image_15012025_04_49_24_9376.jpg
/home/pi/Desktop/images/15012025/04/49/image_15012025_04_49_35_10342.jpg
/home/pi/Desktop/images/15012025/04/49/image_15012025_04_49_45_10341.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6184098720550537 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
2025-01-15 19:49:42.420869
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/48/image_15012025_04_48_54_9349.jpg', '/home/pi/Desktop/images/15012025/04/48/image_15012025_04_49_05_10403.jpg', '/home/pi/Desktop/images/15012025/04/49/image_15012025_04_49_15_10467.jpg', '/home/pi/Desktop/images/15012025/04/49/image_15012025_04_49_24_9376.jpg', '/home/pi/Desktop/images/15012025/04/49/image_15012025_04_49_35_10342.jpg', '/home/pi/Desktop/images/15012025/04/49/image_15012025_04_49_45_10341.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/48/image_15012025_04_48_54_9349.jpg
/home/pi/Desktop/images/15012025/04/48/image_15012025_04_49_05_10403.jpg
/home/pi/Desktop/images/15012025/04/49/image_15012025_04_49_15_10467.jpg
/home/pi/Desktop/images/15012025/04/49/image_15012025_04_49_24_9376.jpg
/home/pi/Desktop/images/15012025/04/49/image_15012025_04_49_35_10342.jpg
/home/pi/Desktop/images/15012025/04/49/image_15012025_04_49_45_10341.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329199492","1329199465","1329199462","1329199456","1329199485","1329199472"],"photo_ids_order":["1329199456","1329199462","1329199465","1329199472","1329199485","1329199492"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7541b15bd07ae5842ab5d89a91a59f2e.jpg","text":"TemporaryFile(/tmp/multipartBody6264559026999034910asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967043349,"filename":"image_15012025_04_49_45_10341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ef38d7506bbf165ea29417af7725dd74.jpg","text":"TemporaryFile(/tmp/multipartBody5621071154612319512asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967043349,"filename":"image_15012025_04_49_15_10467.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fc6630fa7adcddb24cb19a019983f62f.jpg","text":"TemporaryFile(/tmp/multipartBody3015998260816996808asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967043349,"filename":"image_15012025_04_49_05_10403.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1c7885d49fe57ea346a4b20fe2be6d82.jpg","text":"TemporaryFile(/tmp/multipartBody2481237120505214847asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967043349,"filename":"image_15012025_04_48_54_9349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c916e4d21fe2c4b07692215b0e95280b.jpg","text":"TemporaryFile(/tmp/multipartBody318858691724864358asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967043349,"filename":"image_15012025_04_49_35_10342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/74a6526ce1506d2b93addf70ad8fce06.jpg","text":"TemporaryFile(/tmp/multipartBody195799919207423721asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967043349,"filename":"image_15012025_04_49_24_9376.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329199465","file1":"1329199462","file0":"1329199456","file4":"1329199485","file5":"1329199492","file3":"1329199472"},"map_files_photo_id_array":[{"photo_id":"1329199492","filename":"file5"},{"photo_id":"1329199465","filename":"file2"},{"photo_id":"1329199485","filename":"file4"},{"photo_id":"1329199462","filename":"file1"},{"photo_id":"1329199456","filename":"file0"},{"photo_id":"1329199472","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329199492":["hashtag1","hashtag2"]},{"1329199465":["hashtag1","hashtag2"]},{"1329199462":["hashtag1","hashtag2"]},{"1329199456":["hashtag1","hashtag2"]},{"1329199485":["hashtag1","hashtag2"]},{"1329199472":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329199492, 1329199465, 1329199462, 1329199456, 1329199485, 1329199472)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.2512571811676 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 15 --only_old 0
2025-01-15 19:50:32.673996
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/49/image_15012025_04_50_05_10342.jpg', '/home/pi/Desktop/images/15012025/04/50/image_15012025_04_50_14_9430.jpg', '/home/pi/Desktop/images/15012025/04/50/image_15012025_04_50_25_10390.jpg', '/home/pi/Desktop/images/15012025/04/50/image_15012025_04_50_35_10431.jpg', '/home/pi/Desktop/images/15012025/04/50/image_15012025_04_50_45_9399.jpg', '/home/pi/Desktop/images/15012025/04/50/image_15012025_04_50_55_10350.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/49/image_15012025_04_50_05_10342.jpg
/home/pi/Desktop/images/15012025/04/50/image_15012025_04_50_14_9430.jpg
/home/pi/Desktop/images/15012025/04/50/image_15012025_04_50_25_10390.jpg
/home/pi/Desktop/images/15012025/04/50/image_15012025_04_50_35_10431.jpg
/home/pi/Desktop/images/15012025/04/50/image_15012025_04_50_45_9399.jpg
/home/pi/Desktop/images/15012025/04/50/image_15012025_04_50_55_10350.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329199543","1329199519","1329199530","1329199515","1329199535","1329199526"],"photo_ids_order":["1329199515","1329199519","1329199526","1329199530","1329199535","1329199543"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fe6c9e478e923777b0a9fe0f18b6d7d2.jpg","text":"TemporaryFile(/tmp/multipartBody726025038585320956asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967093689,"filename":"image_15012025_04_50_55_10350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d0be2eb6b3b52b455c100f5ab4dd7a52.jpg","text":"TemporaryFile(/tmp/multipartBody9076217739466124016asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967093689,"filename":"image_15012025_04_50_14_9430.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a75c8b0ffba2753c38d927a49eee7e01.jpg","text":"TemporaryFile(/tmp/multipartBody762960979294258152asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967093689,"filename":"image_15012025_04_50_35_10431.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/92d857866feab8c88963a908c013264b.jpg","text":"TemporaryFile(/tmp/multipartBody6305452518345872832asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967093689,"filename":"image_15012025_04_50_05_10342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f3d7c056ca5747a6d8cee24e7783b51c.jpg","text":"TemporaryFile(/tmp/multipartBody5082510169007298713asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967093689,"filename":"image_15012025_04_50_45_9399.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/51b46e76b1f85ea59f71d1d9c5054189.jpg","text":"TemporaryFile(/tmp/multipartBody5278049271972916287asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967093689,"filename":"image_15012025_04_50_25_10390.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329199526","file1":"1329199519","file0":"1329199515","file4":"1329199535","file5":"1329199543","file3":"1329199530"},"map_files_photo_id_array":[{"photo_id":"1329199543","filename":"file5"},{"photo_id":"1329199526","filename":"file2"},{"photo_id":"1329199535","filename":"file4"},{"photo_id":"1329199519","filename":"file1"},{"photo_id":"1329199515","filename":"file0"},{"photo_id":"1329199530","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329199543":["hashtag1","hashtag2"]},{"1329199519":["hashtag1","hashtag2"]},{"1329199530":["hashtag1","hashtag2"]},{"1329199515":["hashtag1","hashtag2"]},{"1329199535":["hashtag1","hashtag2"]},{"1329199526":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329199543, 1329199519, 1329199530, 1329199515, 1329199535, 1329199526)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.5543475151062 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 15 --only_old 0
2025-01-15 19:51:32.963733
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/50/image_15012025_04_51_04_9337.jpg', '/home/pi/Desktop/images/15012025/04/51/image_15012025_04_51_15_10376.jpg', '/home/pi/Desktop/images/15012025/04/51/image_15012025_04_51_25_10453.jpg', '/home/pi/Desktop/images/15012025/04/51/image_15012025_04_51_34_9334.jpg', '/home/pi/Desktop/images/15012025/04/51/image_15012025_04_51_45_10323.jpg', '/home/pi/Desktop/images/15012025/04/51/image_15012025_04_51_55_10366.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/50/image_15012025_04_51_04_9337.jpg
/home/pi/Desktop/images/15012025/04/51/image_15012025_04_51_15_10376.jpg
/home/pi/Desktop/images/15012025/04/51/image_15012025_04_51_25_10453.jpg
/home/pi/Desktop/images/15012025/04/51/image_15012025_04_51_34_9334.jpg
/home/pi/Desktop/images/15012025/04/51/image_15012025_04_51_45_10323.jpg
/home/pi/Desktop/images/15012025/04/51/image_15012025_04_51_55_10366.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329199575","1329199584","1329199592","1329199595","1329199589","1329199562"],"photo_ids_order":["1329199562","1329199575","1329199584","1329199589","1329199592","1329199595"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7cfa24bf76d62aa84d13112bb2a853c6.jpg","text":"TemporaryFile(/tmp/multipartBody5497302223219725838asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967153971,"filename":"image_15012025_04_51_15_10376.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/582b3fb53e8634f5a46ab3952887e9f8.jpg","text":"TemporaryFile(/tmp/multipartBody291984646897410512asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967153971,"filename":"image_15012025_04_51_25_10453.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/afca42ee02384afc2d31d4e1ea77a487.jpg","text":"TemporaryFile(/tmp/multipartBody4616828487075694768asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967153971,"filename":"image_15012025_04_51_45_10323.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7cba697ecb440927df01ebb4345ec0fb.jpg","text":"TemporaryFile(/tmp/multipartBody8933485773250354838asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967153971,"filename":"image_15012025_04_51_55_10366.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5ad84b2d0e71da2f17f28d6904a948ab.jpg","text":"TemporaryFile(/tmp/multipartBody8661991467508091519asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967153971,"filename":"image_15012025_04_51_34_9334.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2d7e099d2b349b24d2851b7faf08aa62.jpg","text":"TemporaryFile(/tmp/multipartBody4119051230081956377asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967153971,"filename":"image_15012025_04_51_04_9337.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329199584","file1":"1329199575","file0":"1329199562","file4":"1329199592","file5":"1329199595","file3":"1329199589"},"map_files_photo_id_array":[{"photo_id":"1329199595","filename":"file5"},{"photo_id":"1329199584","filename":"file2"},{"photo_id":"1329199592","filename":"file4"},{"photo_id":"1329199575","filename":"file1"},{"photo_id":"1329199562","filename":"file0"},{"photo_id":"1329199589","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329199575":["hashtag1","hashtag2"]},{"1329199584":["hashtag1","hashtag2"]},{"1329199592":["hashtag1","hashtag2"]},{"1329199595":["hashtag1","hashtag2"]},{"1329199589":["hashtag1","hashtag2"]},{"1329199562":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329199575, 1329199584, 1329199592, 1329199595, 1329199589, 1329199562)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.34416460990906 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 15 --only_old 0
2025-01-15 19:52:32.194766
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/51/image_15012025_04_52_04_9357.jpg', '/home/pi/Desktop/images/15012025/04/52/image_15012025_04_52_15_10412.jpg', '/home/pi/Desktop/images/15012025/04/52/image_15012025_04_52_24_9431.jpg', '/home/pi/Desktop/images/15012025/04/52/image_15012025_04_52_35_10351.jpg', '/home/pi/Desktop/images/15012025/04/52/image_15012025_04_52_45_10411.jpg', '/home/pi/Desktop/images/15012025/04/52/image_15012025_04_52_55_9468.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/51/image_15012025_04_52_04_9357.jpg
/home/pi/Desktop/images/15012025/04/52/image_15012025_04_52_15_10412.jpg
/home/pi/Desktop/images/15012025/04/52/image_15012025_04_52_24_9431.jpg
/home/pi/Desktop/images/15012025/04/52/image_15012025_04_52_35_10351.jpg
/home/pi/Desktop/images/15012025/04/52/image_15012025_04_52_45_10411.jpg
/home/pi/Desktop/images/15012025/04/52/image_15012025_04_52_55_9468.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.613971471786499 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
2025-01-15 19:52:42.182243
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/51/image_15012025_04_52_04_9357.jpg', '/home/pi/Desktop/images/15012025/04/52/image_15012025_04_52_15_10412.jpg', '/home/pi/Desktop/images/15012025/04/52/image_15012025_04_52_24_9431.jpg', '/home/pi/Desktop/images/15012025/04/52/image_15012025_04_52_35_10351.jpg', '/home/pi/Desktop/images/15012025/04/52/image_15012025_04_52_45_10411.jpg', '/home/pi/Desktop/images/15012025/04/52/image_15012025_04_52_55_9468.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/51/image_15012025_04_52_04_9357.jpg
/home/pi/Desktop/images/15012025/04/52/image_15012025_04_52_15_10412.jpg
/home/pi/Desktop/images/15012025/04/52/image_15012025_04_52_24_9431.jpg
/home/pi/Desktop/images/15012025/04/52/image_15012025_04_52_35_10351.jpg
/home/pi/Desktop/images/15012025/04/52/image_15012025_04_52_45_10411.jpg
/home/pi/Desktop/images/15012025/04/52/image_15012025_04_52_55_9468.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329199666","1329199648","1329199668","1329199656","1329199652","1329199643"],"photo_ids_order":["1329199643","1329199648","1329199652","1329199656","1329199666","1329199668"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/29d0bad6a842ce25e81d1b1941c0089c.jpg","text":"TemporaryFile(/tmp/multipartBody1149251121390452727asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967223130,"filename":"image_15012025_04_52_45_10411.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dc2b275657ee0c87d272bc768a45141a.jpg","text":"TemporaryFile(/tmp/multipartBody7222904504796917918asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967223130,"filename":"image_15012025_04_52_15_10412.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/db95e7418c2f009eab27a90094301ec8.jpg","text":"TemporaryFile(/tmp/multipartBody2596428261960337716asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967223130,"filename":"image_15012025_04_52_55_9468.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/47c8ae1ce56646c07226a8cc5094aa79.jpg","text":"TemporaryFile(/tmp/multipartBody1371624842028170988asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967223130,"filename":"image_15012025_04_52_35_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5dd20f6389040fc075ff8a9c46530ee0.jpg","text":"TemporaryFile(/tmp/multipartBody9144130099042005503asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967223130,"filename":"image_15012025_04_52_24_9431.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/24822adf7fddc8aec8617f9e2873b432.jpg","text":"TemporaryFile(/tmp/multipartBody614529616168258381asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967223130,"filename":"image_15012025_04_52_04_9357.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329199652","file1":"1329199648","file0":"1329199643","file4":"1329199666","file5":"1329199668","file3":"1329199656"},"map_files_photo_id_array":[{"photo_id":"1329199668","filename":"file5"},{"photo_id":"1329199652","filename":"file2"},{"photo_id":"1329199666","filename":"file4"},{"photo_id":"1329199648","filename":"file1"},{"photo_id":"1329199643","filename":"file0"},{"photo_id":"1329199656","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329199666":["hashtag1","hashtag2"]},{"1329199648":["hashtag1","hashtag2"]},{"1329199668":["hashtag1","hashtag2"]},{"1329199656":["hashtag1","hashtag2"]},{"1329199652":["hashtag1","hashtag2"]},{"1329199643":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329199666, 1329199648, 1329199668, 1329199656, 1329199652, 1329199643)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.27000665664673 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 15 --only_old 0
2025-01-15 19:53:32.406622
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/52/image_15012025_04_53_05_10398.jpg', '/home/pi/Desktop/images/15012025/04/53/image_15012025_04_53_14_9323.jpg', '/home/pi/Desktop/images/15012025/04/53/image_15012025_04_53_25_10382.jpg', '/home/pi/Desktop/images/15012025/04/53/image_15012025_04_53_45_9432.jpg', '/home/pi/Desktop/images/15012025/04/53/image_15012025_04_53_55_10340.jpg', '/home/pi/Desktop/images/15012025/04/53/image_15012025_04_54_04_9466.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/52/image_15012025_04_53_05_10398.jpg
/home/pi/Desktop/images/15012025/04/53/image_15012025_04_53_14_9323.jpg
/home/pi/Desktop/images/15012025/04/53/image_15012025_04_53_25_10382.jpg
/home/pi/Desktop/images/15012025/04/53/image_15012025_04_53_45_9432.jpg
/home/pi/Desktop/images/15012025/04/53/image_15012025_04_53_55_10340.jpg
/home/pi/Desktop/images/15012025/04/53/image_15012025_04_54_04_9466.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329199783","1329199690","1329199737","1329199704","1329199790","1329199696"],"photo_ids_order":["1329199690","1329199696","1329199704","1329199737","1329199783","1329199790"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/061e6344a2042cac2e2db3c50bbac309.jpg","text":"TemporaryFile(/tmp/multipartBody9157099284490354149asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967273412,"filename":"image_15012025_04_53_55_10340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/880896adbc5f3844bad73de5f6623244.jpg","text":"TemporaryFile(/tmp/multipartBody5575570753076735935asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967273412,"filename":"image_15012025_04_53_05_10398.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/32f6b50e9315ce2b2d35328ce37cabc9.jpg","text":"TemporaryFile(/tmp/multipartBody5958904538690732725asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967273412,"filename":"image_15012025_04_53_45_9432.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/956f7d70a58914f77ace9b8e0fd0adb8.jpg","text":"TemporaryFile(/tmp/multipartBody3364335988908088498asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967273412,"filename":"image_15012025_04_53_25_10382.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/96224eec6919c9653d5024c7c0e3eeca.jpg","text":"TemporaryFile(/tmp/multipartBody529623708023208360asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967273412,"filename":"image_15012025_04_54_04_9466.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6797e207578661abc126ea5dd8e59f92.jpg","text":"TemporaryFile(/tmp/multipartBody8391537078234070238asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967273412,"filename":"image_15012025_04_53_14_9323.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329199704","file1":"1329199696","file0":"1329199690","file4":"1329199783","file5":"1329199790","file3":"1329199737"},"map_files_photo_id_array":[{"photo_id":"1329199790","filename":"file5"},{"photo_id":"1329199704","filename":"file2"},{"photo_id":"1329199783","filename":"file4"},{"photo_id":"1329199696","filename":"file1"},{"photo_id":"1329199690","filename":"file0"},{"photo_id":"1329199737","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329199783":["hashtag1","hashtag2"]},{"1329199690":["hashtag1","hashtag2"]},{"1329199737":["hashtag1","hashtag2"]},{"1329199704":["hashtag1","hashtag2"]},{"1329199790":["hashtag1","hashtag2"]},{"1329199696":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329199783, 1329199690, 1329199737, 1329199704, 1329199790, 1329199696)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.70089411735535 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 15 --only_old 0
2025-01-15 19:54:32.726185
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/54/image_15012025_04_54_15_10364.jpg', '/home/pi/Desktop/images/15012025/04/54/image_15012025_04_54_25_10442.jpg', '/home/pi/Desktop/images/15012025/04/54/image_15012025_04_54_34_9334.jpg', '/home/pi/Desktop/images/15012025/04/54/image_15012025_04_54_45_10344.jpg', '/home/pi/Desktop/images/15012025/04/55/image_15012025_04_55_15_10450.jpg', '/home/pi/Desktop/images/15012025/04/55/image_15012025_04_55_35_10353.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/54/image_15012025_04_54_15_10364.jpg
/home/pi/Desktop/images/15012025/04/54/image_15012025_04_54_25_10442.jpg
/home/pi/Desktop/images/15012025/04/54/image_15012025_04_54_34_9334.jpg
/home/pi/Desktop/images/15012025/04/54/image_15012025_04_54_45_10344.jpg
/home/pi/Desktop/images/15012025/04/55/image_15012025_04_55_15_10450.jpg
/home/pi/Desktop/images/15012025/04/55/image_15012025_04_55_35_10353.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329199878","1329199860","1329199848","1329199883","1329199885","1329199867"],"photo_ids_order":["1329199848","1329199860","1329199867","1329199878","1329199883","1329199885"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/68aae3e79e14db1efa909b9fb992438c.jpg","text":"TemporaryFile(/tmp/multipartBody171745265614959742asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967333774,"filename":"image_15012025_04_54_45_10344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2f2125705c147c330c89635ca6fbfabe.jpg","text":"TemporaryFile(/tmp/multipartBody2484608058155443726asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967333774,"filename":"image_15012025_04_54_25_10442.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e783fdbd400dfb26d69e0640fa99217d.jpg","text":"TemporaryFile(/tmp/multipartBody4648450681314473444asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967333774,"filename":"image_15012025_04_54_15_10364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ec4c6a45d016937f4e48e37591280a87.jpg","text":"TemporaryFile(/tmp/multipartBody1028915455897409089asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967333774,"filename":"image_15012025_04_55_15_10450.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/40048d2de02cbe77e22fd60cce5e6e26.jpg","text":"TemporaryFile(/tmp/multipartBody8546982010324360263asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967333774,"filename":"image_15012025_04_55_35_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bcd92342de44ed255349573650712f67.jpg","text":"TemporaryFile(/tmp/multipartBody3762752745656812780asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967333774,"filename":"image_15012025_04_54_34_9334.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329199867","file1":"1329199860","file0":"1329199848","file4":"1329199883","file5":"1329199885","file3":"1329199878"},"map_files_photo_id_array":[{"photo_id":"1329199885","filename":"file5"},{"photo_id":"1329199867","filename":"file2"},{"photo_id":"1329199883","filename":"file4"},{"photo_id":"1329199860","filename":"file1"},{"photo_id":"1329199848","filename":"file0"},{"photo_id":"1329199878","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329199878":["hashtag1","hashtag2"]},{"1329199860":["hashtag1","hashtag2"]},{"1329199848":["hashtag1","hashtag2"]},{"1329199883":["hashtag1","hashtag2"]},{"1329199885":["hashtag1","hashtag2"]},{"1329199867":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329199878, 1329199860, 1329199848, 1329199883, 1329199885, 1329199867)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.055662631988525 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 15 --only_old 0
2025-01-15 19:55:33.004989
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/55/image_15012025_04_55_44_9415.jpg', '/home/pi/Desktop/images/15012025/04/55/image_15012025_04_55_55_10467.jpg', '/home/pi/Desktop/images/15012025/04/55/image_15012025_04_56_05_10368.jpg', '/home/pi/Desktop/images/15012025/04/56/image_15012025_04_56_14_9351.jpg', '/home/pi/Desktop/images/15012025/04/56/image_15012025_04_56_25_10366.jpg', '/home/pi/Desktop/images/15012025/04/56/image_15012025_04_56_34_9415.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/55/image_15012025_04_55_44_9415.jpg
/home/pi/Desktop/images/15012025/04/55/image_15012025_04_55_55_10467.jpg
/home/pi/Desktop/images/15012025/04/55/image_15012025_04_56_05_10368.jpg
/home/pi/Desktop/images/15012025/04/56/image_15012025_04_56_14_9351.jpg
/home/pi/Desktop/images/15012025/04/56/image_15012025_04_56_25_10366.jpg
/home/pi/Desktop/images/15012025/04/56/image_15012025_04_56_34_9415.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329200088","1329199948","1329200085","1329199926","1329199990","1329199901"],"photo_ids_order":["1329199901","1329199926","1329199948","1329199990","1329200085","1329200088"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/edd9e0928c633338cb1ca5f4a776a86a.jpg","text":"TemporaryFile(/tmp/multipartBody406524016515626815asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967394044,"filename":"image_15012025_04_56_34_9415.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3a4cb5c0981a294d175d2b7be5104951.jpg","text":"TemporaryFile(/tmp/multipartBody7926400367895338899asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967394044,"filename":"image_15012025_04_56_05_10368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/69e2f49ea01a795d2a5c95e13dd81eb5.jpg","text":"TemporaryFile(/tmp/multipartBody3468872922966282229asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967394044,"filename":"image_15012025_04_56_25_10366.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9efb631e501f0f0c5070f95f107907f8.jpg","text":"TemporaryFile(/tmp/multipartBody6269333805644600274asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967394044,"filename":"image_15012025_04_55_55_10467.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/db84a418a4fb1563ce846fa1d514e64f.jpg","text":"TemporaryFile(/tmp/multipartBody2426044574418819850asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967394044,"filename":"image_15012025_04_56_14_9351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/adc8ffe8cbe1225281957d8ee86cd35e.jpg","text":"TemporaryFile(/tmp/multipartBody813405782378441460asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967394044,"filename":"image_15012025_04_55_44_9415.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329199948","file1":"1329199926","file0":"1329199901","file4":"1329200085","file5":"1329200088","file3":"1329199990"},"map_files_photo_id_array":[{"photo_id":"1329200088","filename":"file5"},{"photo_id":"1329199948","filename":"file2"},{"photo_id":"1329200085","filename":"file4"},{"photo_id":"1329199926","filename":"file1"},{"photo_id":"1329199901","filename":"file0"},{"photo_id":"1329199990","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329200088":["hashtag1","hashtag2"]},{"1329199948":["hashtag1","hashtag2"]},{"1329200085":["hashtag1","hashtag2"]},{"1329199926":["hashtag1","hashtag2"]},{"1329199990":["hashtag1","hashtag2"]},{"1329199901":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329200088, 1329199948, 1329200085, 1329199926, 1329199990, 1329199901)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.39633321762085 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 15 --only_old 0
2025-01-15 19:56:33.132366
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/56/image_15012025_04_56_45_10350.jpg', '/home/pi/Desktop/images/15012025/04/56/image_15012025_04_56_55_10463.jpg', '/home/pi/Desktop/images/15012025/04/56/image_15012025_04_57_04_9337.jpg', '/home/pi/Desktop/images/15012025/04/57/image_15012025_04_57_25_10440.jpg', '/home/pi/Desktop/images/15012025/04/57/image_15012025_04_57_34_9344.jpg', '/home/pi/Desktop/images/15012025/04/57/image_15012025_04_57_45_10337.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/56/image_15012025_04_56_45_10350.jpg
/home/pi/Desktop/images/15012025/04/56/image_15012025_04_56_55_10463.jpg
/home/pi/Desktop/images/15012025/04/56/image_15012025_04_57_04_9337.jpg
/home/pi/Desktop/images/15012025/04/57/image_15012025_04_57_25_10440.jpg
/home/pi/Desktop/images/15012025/04/57/image_15012025_04_57_34_9344.jpg
/home/pi/Desktop/images/15012025/04/57/image_15012025_04_57_45_10337.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6029527187347412 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
2025-01-15 19:56:43.143546
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/56/image_15012025_04_56_45_10350.jpg', '/home/pi/Desktop/images/15012025/04/56/image_15012025_04_56_55_10463.jpg', '/home/pi/Desktop/images/15012025/04/56/image_15012025_04_57_04_9337.jpg', '/home/pi/Desktop/images/15012025/04/57/image_15012025_04_57_25_10440.jpg', '/home/pi/Desktop/images/15012025/04/57/image_15012025_04_57_34_9344.jpg', '/home/pi/Desktop/images/15012025/04/57/image_15012025_04_57_45_10337.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/56/image_15012025_04_56_45_10350.jpg
/home/pi/Desktop/images/15012025/04/56/image_15012025_04_56_55_10463.jpg
/home/pi/Desktop/images/15012025/04/56/image_15012025_04_57_04_9337.jpg
/home/pi/Desktop/images/15012025/04/57/image_15012025_04_57_25_10440.jpg
/home/pi/Desktop/images/15012025/04/57/image_15012025_04_57_34_9344.jpg
/home/pi/Desktop/images/15012025/04/57/image_15012025_04_57_45_10337.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329200295","1329200307","1329200301","1329200299","1329200284","1329200305"],"photo_ids_order":["1329200284","1329200295","1329200299","1329200301","1329200305","1329200307"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d2dc900b1f2156a981962f2011dde97a.jpg","text":"TemporaryFile(/tmp/multipartBody2167457800878548487asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967464069,"filename":"image_15012025_04_56_55_10463.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fb95e30d5de364a9b07aba5c36299125.jpg","text":"TemporaryFile(/tmp/multipartBody8368866844460707601asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967464069,"filename":"image_15012025_04_57_45_10337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/08b62751dbe20b3a439d78ca80b170b7.jpg","text":"TemporaryFile(/tmp/multipartBody251479581321677387asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967464069,"filename":"image_15012025_04_57_25_10440.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4967653a46dd56babe330a7765b16585.jpg","text":"TemporaryFile(/tmp/multipartBody1831424230832543338asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967464069,"filename":"image_15012025_04_57_04_9337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2a15311f94985651772be912e24d2d20.jpg","text":"TemporaryFile(/tmp/multipartBody9100551018728964993asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967464069,"filename":"image_15012025_04_56_45_10350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/89bd787c10befce13457f06f5414be9a.jpg","text":"TemporaryFile(/tmp/multipartBody5982627550191061425asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967464069,"filename":"image_15012025_04_57_34_9344.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329200299","file1":"1329200295","file0":"1329200284","file4":"1329200305","file5":"1329200307","file3":"1329200301"},"map_files_photo_id_array":[{"photo_id":"1329200307","filename":"file5"},{"photo_id":"1329200299","filename":"file2"},{"photo_id":"1329200305","filename":"file4"},{"photo_id":"1329200295","filename":"file1"},{"photo_id":"1329200284","filename":"file0"},{"photo_id":"1329200301","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329200295":["hashtag1","hashtag2"]},{"1329200307":["hashtag1","hashtag2"]},{"1329200301":["hashtag1","hashtag2"]},{"1329200299":["hashtag1","hashtag2"]},{"1329200284":["hashtag1","hashtag2"]},{"1329200305":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329200295, 1329200307, 1329200301, 1329200299, 1329200284, 1329200305)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.621357440948486 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 15 --only_old 0
2025-01-15 19:57:32.329995
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/57/image_15012025_04_57_55_10382.jpg', '/home/pi/Desktop/images/15012025/04/57/image_15012025_04_58_05_9355.jpg', '/home/pi/Desktop/images/15012025/04/58/image_15012025_04_58_15_10377.jpg', '/home/pi/Desktop/images/15012025/04/58/image_15012025_04_58_24_9394.jpg', '/home/pi/Desktop/images/15012025/04/58/image_15012025_04_58_35_10367.jpg', '/home/pi/Desktop/images/15012025/04/58/image_15012025_04_58_45_10397.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/57/image_15012025_04_57_55_10382.jpg
/home/pi/Desktop/images/15012025/04/57/image_15012025_04_58_05_9355.jpg
/home/pi/Desktop/images/15012025/04/58/image_15012025_04_58_15_10377.jpg
/home/pi/Desktop/images/15012025/04/58/image_15012025_04_58_24_9394.jpg
/home/pi/Desktop/images/15012025/04/58/image_15012025_04_58_35_10367.jpg
/home/pi/Desktop/images/15012025/04/58/image_15012025_04_58_45_10397.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
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
2025-01-15 19:59:04.210726
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/57/image_15012025_04_57_55_10382.jpg', '/home/pi/Desktop/images/15012025/04/57/image_15012025_04_58_05_9355.jpg', '/home/pi/Desktop/images/15012025/04/58/image_15012025_04_58_15_10377.jpg', '/home/pi/Desktop/images/15012025/04/58/image_15012025_04_58_24_9394.jpg', '/home/pi/Desktop/images/15012025/04/58/image_15012025_04_58_35_10367.jpg', '/home/pi/Desktop/images/15012025/04/58/image_15012025_04_58_45_10397.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/57/image_15012025_04_57_55_10382.jpg
/home/pi/Desktop/images/15012025/04/57/image_15012025_04_58_05_9355.jpg
/home/pi/Desktop/images/15012025/04/58/image_15012025_04_58_15_10377.jpg
/home/pi/Desktop/images/15012025/04/58/image_15012025_04_58_24_9394.jpg
/home/pi/Desktop/images/15012025/04/58/image_15012025_04_58_35_10367.jpg
/home/pi/Desktop/images/15012025/04/58/image_15012025_04_58_45_10397.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329200401","1329200421","1329200439","1329200434","1329200428","1329200407"],"photo_ids_order":["1329200401","1329200407","1329200421","1329200428","1329200434","1329200439"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/149fe092443229d43249007a760ac384.jpg","text":"TemporaryFile(/tmp/multipartBody93648408872795112asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967607261,"filename":"image_15012025_04_57_55_10382.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3ada531ece571fa763447f091ccaef42.jpg","text":"TemporaryFile(/tmp/multipartBody212326817113064437asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967607261,"filename":"image_15012025_04_58_15_10377.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b4de04a810ad8a42fc2adfee908482a2.jpg","text":"TemporaryFile(/tmp/multipartBody763206191808639077asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967607261,"filename":"image_15012025_04_58_45_10397.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5b8e58f5489bd5d8e8ef86c5d4505cc7.jpg","text":"TemporaryFile(/tmp/multipartBody1157988577650059765asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967607261,"filename":"image_15012025_04_58_35_10367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/700dafb6edec1e50b4357825d4d8972f.jpg","text":"TemporaryFile(/tmp/multipartBody8646745629213301910asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967607261,"filename":"image_15012025_04_58_24_9394.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/38431044438e74a65b66074f2107f47a.jpg","text":"TemporaryFile(/tmp/multipartBody5344407299648567839asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967607261,"filename":"image_15012025_04_58_05_9355.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329200421","file1":"1329200407","file0":"1329200401","file4":"1329200434","file5":"1329200439","file3":"1329200428"},"map_files_photo_id_array":[{"photo_id":"1329200439","filename":"file5"},{"photo_id":"1329200421","filename":"file2"},{"photo_id":"1329200434","filename":"file4"},{"photo_id":"1329200407","filename":"file1"},{"photo_id":"1329200401","filename":"file0"},{"photo_id":"1329200428","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329200401":["hashtag1","hashtag2"]},{"1329200421":["hashtag1","hashtag2"]},{"1329200439":["hashtag1","hashtag2"]},{"1329200434":["hashtag1","hashtag2"]},{"1329200428":["hashtag1","hashtag2"]},{"1329200407":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329200401, 1329200421, 1329200439, 1329200434, 1329200428, 1329200407)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.139573097229004 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 15 --only_old 0
2025-01-15 19:59:53.006052
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/58/image_15012025_04_58_54_9353.jpg', '/home/pi/Desktop/images/15012025/04/58/image_15012025_04_59_05_10353.jpg', '/home/pi/Desktop/images/15012025/04/59/image_15012025_04_59_14_9406.jpg', '/home/pi/Desktop/images/15012025/04/59/image_15012025_04_59_25_10457.jpg', '/home/pi/Desktop/images/15012025/04/59/image_15012025_04_59_35_10467.jpg', '/home/pi/Desktop/images/15012025/04/59/image_15012025_04_59_44_9355.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/58/image_15012025_04_58_54_9353.jpg
/home/pi/Desktop/images/15012025/04/58/image_15012025_04_59_05_10353.jpg
/home/pi/Desktop/images/15012025/04/59/image_15012025_04_59_14_9406.jpg
/home/pi/Desktop/images/15012025/04/59/image_15012025_04_59_25_10457.jpg
/home/pi/Desktop/images/15012025/04/59/image_15012025_04_59_35_10467.jpg
/home/pi/Desktop/images/15012025/04/59/image_15012025_04_59_44_9355.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329200463","1329200456","1329200459","1329200467","1329200476","1329200470"],"photo_ids_order":["1329200456","1329200459","1329200463","1329200467","1329200470","1329200476"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cd5b745cf0b324ed0a0f00b6c548be9d.jpg","text":"TemporaryFile(/tmp/multipartBody1242814448787305755asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967653992,"filename":"image_15012025_04_59_14_9406.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9ae7fe5f6dd1d5fbfa03db39bfdeb3b3.jpg","text":"TemporaryFile(/tmp/multipartBody2726213429655802488asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967653992,"filename":"image_15012025_04_58_54_9353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8096888e077a3b46d774614d60f68112.jpg","text":"TemporaryFile(/tmp/multipartBody6633113186661226831asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967653992,"filename":"image_15012025_04_59_05_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/340d901627e6d8d790dc1bba4b444bd3.jpg","text":"TemporaryFile(/tmp/multipartBody8440956810435011042asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967653992,"filename":"image_15012025_04_59_25_10457.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/72a01a8f8e73bd05cb69674948dcbda5.jpg","text":"TemporaryFile(/tmp/multipartBody3454060801573493302asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967653992,"filename":"image_15012025_04_59_44_9355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4500f75d7a5270d37ad22476acdc42b8.jpg","text":"TemporaryFile(/tmp/multipartBody3296251931081490812asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967653992,"filename":"image_15012025_04_59_35_10467.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329200463","file1":"1329200459","file0":"1329200456","file4":"1329200470","file5":"1329200476","file3":"1329200467"},"map_files_photo_id_array":[{"photo_id":"1329200476","filename":"file5"},{"photo_id":"1329200463","filename":"file2"},{"photo_id":"1329200470","filename":"file4"},{"photo_id":"1329200459","filename":"file1"},{"photo_id":"1329200456","filename":"file0"},{"photo_id":"1329200467","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329200463":["hashtag1","hashtag2"]},{"1329200456":["hashtag1","hashtag2"]},{"1329200459":["hashtag1","hashtag2"]},{"1329200467":["hashtag1","hashtag2"]},{"1329200476":["hashtag1","hashtag2"]},{"1329200470":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329200463, 1329200456, 1329200459, 1329200467, 1329200476, 1329200470)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.86575222015381 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
2025-01-15 20:00:42.187211
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/04/59/image_15012025_04_59_55_10378.jpg', '/home/pi/Desktop/images/15012025/05/01/image_15012025_05_01_15_10069.jpg', '/home/pi/Desktop/images/15012025/05/01/image_15012025_05_01_25_10473.jpg', '/home/pi/Desktop/images/15012025/05/01/image_15012025_05_01_35_10381.jpg', '/home/pi/Desktop/images/15012025/05/01/image_15012025_05_02_05_9338.jpg', '/home/pi/Desktop/images/15012025/05/02/image_15012025_05_02_15_10361.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/04/59/image_15012025_04_59_55_10378.jpg
/home/pi/Desktop/images/15012025/05/01/image_15012025_05_01_15_10069.jpg
/home/pi/Desktop/images/15012025/05/01/image_15012025_05_01_25_10473.jpg
/home/pi/Desktop/images/15012025/05/01/image_15012025_05_01_35_10381.jpg
/home/pi/Desktop/images/15012025/05/01/image_15012025_05_02_05_9338.jpg
/home/pi/Desktop/images/15012025/05/02/image_15012025_05_02_15_10361.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329200500","1329200529","1329200508","1329200519","1329200521","1329200524"],"photo_ids_order":["1329200500","1329200508","1329200519","1329200521","1329200524","1329200529"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/36f6c140a9c8b353d2222f8f31006a16.jpg","text":"TemporaryFile(/tmp/multipartBody8117539279310889527asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967703188,"filename":"image_15012025_04_59_55_10378.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/aae6df72b0c5974dadfa4bdb6372c667.jpg","text":"TemporaryFile(/tmp/multipartBody2048923707894265585asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967703188,"filename":"image_15012025_05_02_15_10361.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/52bc112c91d00476af240ef8bceddb12.jpg","text":"TemporaryFile(/tmp/multipartBody6925388520899370723asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967703188,"filename":"image_15012025_05_01_15_10069.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/de68abe2fd5eee7980949199949f7f24.jpg","text":"TemporaryFile(/tmp/multipartBody7828166829624648143asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967703188,"filename":"image_15012025_05_01_25_10473.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d6c60bee000c695a1557c9e70ebac581.jpg","text":"TemporaryFile(/tmp/multipartBody1306203694743535422asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967703188,"filename":"image_15012025_05_01_35_10381.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4145701be491e20c798cbbe6c908e3ce.jpg","text":"TemporaryFile(/tmp/multipartBody4535111756773560540asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967703188,"filename":"image_15012025_05_02_05_9338.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329200519","file1":"1329200508","file0":"1329200500","file4":"1329200524","file5":"1329200529","file3":"1329200521"},"map_files_photo_id_array":[{"photo_id":"1329200529","filename":"file5"},{"photo_id":"1329200519","filename":"file2"},{"photo_id":"1329200524","filename":"file4"},{"photo_id":"1329200508","filename":"file1"},{"photo_id":"1329200500","filename":"file0"},{"photo_id":"1329200521","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329200500":["hashtag1","hashtag2"]},{"1329200529":["hashtag1","hashtag2"]},{"1329200508":["hashtag1","hashtag2"]},{"1329200519":["hashtag1","hashtag2"]},{"1329200521":["hashtag1","hashtag2"]},{"1329200524":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329200500, 1329200529, 1329200508, 1329200519, 1329200521, 1329200524)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.4195659160614 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 15 --only_old 0
2025-01-15 20:01:32.454428
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/02/image_15012025_05_02_35_9346.jpg', '/home/pi/Desktop/images/15012025/05/02/image_15012025_05_02_45_10404.jpg', '/home/pi/Desktop/images/15012025/05/02/image_15012025_05_02_55_9364.jpg', '/home/pi/Desktop/images/15012025/05/03/image_15012025_05_03_25_9359.jpg', '/home/pi/Desktop/images/15012025/05/03/image_15012025_05_03_35_10373.jpg', '/home/pi/Desktop/images/15012025/05/03/image_15012025_05_03_46_10355.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/02/image_15012025_05_02_35_9346.jpg
/home/pi/Desktop/images/15012025/05/02/image_15012025_05_02_45_10404.jpg
/home/pi/Desktop/images/15012025/05/02/image_15012025_05_02_55_9364.jpg
/home/pi/Desktop/images/15012025/05/03/image_15012025_05_03_25_9359.jpg
/home/pi/Desktop/images/15012025/05/03/image_15012025_05_03_35_10373.jpg
/home/pi/Desktop/images/15012025/05/03/image_15012025_05_03_46_10355.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329200598","1329200583","1329200570","1329200578","1329200603","1329200563"],"photo_ids_order":["1329200563","1329200570","1329200578","1329200583","1329200598","1329200603"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7e5d7e5a39fd14d6a0f845821dbb6113.jpg","text":"TemporaryFile(/tmp/multipartBody4060336604319754393asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967753481,"filename":"image_15012025_05_03_35_10373.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/427509f99e994b4131cb34e6c2c1f9e3.jpg","text":"TemporaryFile(/tmp/multipartBody834878104875888649asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967753481,"filename":"image_15012025_05_03_25_9359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5ee90f45580d5f7ade4e256f040b14dc.jpg","text":"TemporaryFile(/tmp/multipartBody6370520794678914438asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967753481,"filename":"image_15012025_05_02_45_10404.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8f5040c4b63c287ada02aff65c2f63d2.jpg","text":"TemporaryFile(/tmp/multipartBody8957825612323925650asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967753481,"filename":"image_15012025_05_02_55_9364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0979fea6be2ae25177e03e3f77d55a1c.jpg","text":"TemporaryFile(/tmp/multipartBody7346065811617252700asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967753481,"filename":"image_15012025_05_03_46_10355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0e28644e9e365092c2fd163dfb5ec058.jpg","text":"TemporaryFile(/tmp/multipartBody9180415261259251214asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967753481,"filename":"image_15012025_05_02_35_9346.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329200578","file1":"1329200570","file0":"1329200563","file4":"1329200598","file5":"1329200603","file3":"1329200583"},"map_files_photo_id_array":[{"photo_id":"1329200603","filename":"file5"},{"photo_id":"1329200578","filename":"file2"},{"photo_id":"1329200598","filename":"file4"},{"photo_id":"1329200570","filename":"file1"},{"photo_id":"1329200563","filename":"file0"},{"photo_id":"1329200583","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329200598":["hashtag1","hashtag2"]},{"1329200583":["hashtag1","hashtag2"]},{"1329200570":["hashtag1","hashtag2"]},{"1329200578":["hashtag1","hashtag2"]},{"1329200603":["hashtag1","hashtag2"]},{"1329200563":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329200598, 1329200583, 1329200570, 1329200578, 1329200603, 1329200563)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.13440799713135 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 15 --only_old 0
2025-01-15 20:02:32.853665
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/03/image_15012025_05_03_55_9366.jpg', '/home/pi/Desktop/images/15012025/05/04/image_15012025_05_04_15_9359.jpg', '/home/pi/Desktop/images/15012025/05/04/image_15012025_05_04_55_10441.jpg', '/home/pi/Desktop/images/15012025/05/04/image_15012025_05_05_05_9351.jpg', '/home/pi/Desktop/images/15012025/05/05/image_15012025_05_05_15_10380.jpg', '/home/pi/Desktop/images/15012025/05/05/image_15012025_05_05_25_10371.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/03/image_15012025_05_03_55_9366.jpg
/home/pi/Desktop/images/15012025/05/04/image_15012025_05_04_15_9359.jpg
/home/pi/Desktop/images/15012025/05/04/image_15012025_05_04_55_10441.jpg
/home/pi/Desktop/images/15012025/05/04/image_15012025_05_05_05_9351.jpg
/home/pi/Desktop/images/15012025/05/05/image_15012025_05_05_15_10380.jpg
/home/pi/Desktop/images/15012025/05/05/image_15012025_05_05_25_10371.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329200976","1329200946","1329201092","1329201055","1329201087","1329201066"],"photo_ids_order":["1329200946","1329200976","1329201055","1329201066","1329201087","1329201092"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/764a21284176485a71e280ee96ffda1f.jpg","text":"TemporaryFile(/tmp/multipartBody6985781058962331217asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967813865,"filename":"image_15012025_05_04_15_9359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e27f60952f85686736b7fb1a4c7f6432.jpg","text":"TemporaryFile(/tmp/multipartBody4352763597504367099asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967813865,"filename":"image_15012025_05_03_55_9366.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d33fd85723c125e26fc89dd8abc6b9f1.jpg","text":"TemporaryFile(/tmp/multipartBody1654109962760904614asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967813865,"filename":"image_15012025_05_05_25_10371.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/97e27c2e3299d792d38acd126c75367d.jpg","text":"TemporaryFile(/tmp/multipartBody7277700447360797280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967813865,"filename":"image_15012025_05_04_55_10441.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9273aad349a2e4a40c89caa756b87c1a.jpg","text":"TemporaryFile(/tmp/multipartBody2168243110482846073asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967813865,"filename":"image_15012025_05_05_15_10380.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cc4fe63a55e874e8a202136ead2b0eba.jpg","text":"TemporaryFile(/tmp/multipartBody4475196634745993303asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967813865,"filename":"image_15012025_05_05_05_9351.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329201055","file1":"1329200976","file0":"1329200946","file4":"1329201087","file5":"1329201092","file3":"1329201066"},"map_files_photo_id_array":[{"photo_id":"1329201092","filename":"file5"},{"photo_id":"1329201055","filename":"file2"},{"photo_id":"1329201087","filename":"file4"},{"photo_id":"1329200976","filename":"file1"},{"photo_id":"1329200946","filename":"file0"},{"photo_id":"1329201066","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329200976":["hashtag1","hashtag2"]},{"1329200946":["hashtag1","hashtag2"]},{"1329201092":["hashtag1","hashtag2"]},{"1329201055":["hashtag1","hashtag2"]},{"1329201087":["hashtag1","hashtag2"]},{"1329201066":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329200976, 1329200946, 1329201092, 1329201055, 1329201087, 1329201066)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.53995156288147 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 15 --only_old 0
2025-01-15 20:03:33.021028
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/05/image_15012025_05_05_35_9367.jpg', '/home/pi/Desktop/images/15012025/05/05/image_15012025_05_05_45_10414.jpg', '/home/pi/Desktop/images/15012025/05/05/image_15012025_05_05_55_10345.jpg', '/home/pi/Desktop/images/15012025/05/05/image_15012025_05_06_05_9380.jpg', '/home/pi/Desktop/images/15012025/05/06/image_15012025_05_06_15_10430.jpg', '/home/pi/Desktop/images/15012025/05/06/image_15012025_05_06_25_9358.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/05/image_15012025_05_05_35_9367.jpg
/home/pi/Desktop/images/15012025/05/05/image_15012025_05_05_45_10414.jpg
/home/pi/Desktop/images/15012025/05/05/image_15012025_05_05_55_10345.jpg
/home/pi/Desktop/images/15012025/05/05/image_15012025_05_06_05_9380.jpg
/home/pi/Desktop/images/15012025/05/06/image_15012025_05_06_15_10430.jpg
/home/pi/Desktop/images/15012025/05/06/image_15012025_05_06_25_9358.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329201201","1329201392","1329201395","1329201322","1329201381","1329201387"],"photo_ids_order":["1329201201","1329201322","1329201381","1329201387","1329201392","1329201395"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b2fa5bf2f7eca7c81d00efd976bf8774.jpg","text":"TemporaryFile(/tmp/multipartBody4914907595363058671asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967874007,"filename":"image_15012025_05_05_35_9367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e94b6bea56803135b3b6cc05035ed3a7.jpg","text":"TemporaryFile(/tmp/multipartBody10095614308565372asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967874007,"filename":"image_15012025_05_06_15_10430.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b390e7bbe317ba3caf91d6c5927ada62.jpg","text":"TemporaryFile(/tmp/multipartBody7737453083371828248asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967874007,"filename":"image_15012025_05_06_25_9358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1e8d6981b8872d1ee733f581655435b6.jpg","text":"TemporaryFile(/tmp/multipartBody1636073154649558412asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967874007,"filename":"image_15012025_05_05_45_10414.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fa5ab71ee8a0bd6c7a81f3ffb1d28381.jpg","text":"TemporaryFile(/tmp/multipartBody6972729327436478978asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967874007,"filename":"image_15012025_05_05_55_10345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8678c442ac8cb1ae77aaec0c13ea1e1e.jpg","text":"TemporaryFile(/tmp/multipartBody7704541766754871419asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967874007,"filename":"image_15012025_05_06_05_9380.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329201381","file1":"1329201322","file0":"1329201201","file4":"1329201392","file5":"1329201395","file3":"1329201387"},"map_files_photo_id_array":[{"photo_id":"1329201395","filename":"file5"},{"photo_id":"1329201381","filename":"file2"},{"photo_id":"1329201392","filename":"file4"},{"photo_id":"1329201322","filename":"file1"},{"photo_id":"1329201201","filename":"file0"},{"photo_id":"1329201387","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329201201":["hashtag1","hashtag2"]},{"1329201392":["hashtag1","hashtag2"]},{"1329201395":["hashtag1","hashtag2"]},{"1329201322":["hashtag1","hashtag2"]},{"1329201381":["hashtag1","hashtag2"]},{"1329201387":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329201201, 1329201392, 1329201395, 1329201322, 1329201381, 1329201387)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.5057327747345 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 15 --only_old 0
2025-01-15 20:04:32.403601
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/06/image_15012025_05_06_35_10409.jpg', '/home/pi/Desktop/images/15012025/05/06/image_15012025_05_06_55_9891.jpg', '/home/pi/Desktop/images/15012025/05/06/image_15012025_05_07_05_9618.jpg', '/home/pi/Desktop/images/15012025/05/07/image_15012025_05_07_15_10334.jpg', '/home/pi/Desktop/images/15012025/05/07/image_15012025_05_07_25_9353.jpg', '/home/pi/Desktop/images/15012025/05/07/image_15012025_05_07_35_10488.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/06/image_15012025_05_06_35_10409.jpg
/home/pi/Desktop/images/15012025/05/06/image_15012025_05_06_55_9891.jpg
/home/pi/Desktop/images/15012025/05/06/image_15012025_05_07_05_9618.jpg
/home/pi/Desktop/images/15012025/05/07/image_15012025_05_07_15_10334.jpg
/home/pi/Desktop/images/15012025/05/07/image_15012025_05_07_25_9353.jpg
/home/pi/Desktop/images/15012025/05/07/image_15012025_05_07_35_10488.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6265354156494141 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
2025-01-15 20:04:42.394746
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/06/image_15012025_05_06_35_10409.jpg', '/home/pi/Desktop/images/15012025/05/06/image_15012025_05_06_55_9891.jpg', '/home/pi/Desktop/images/15012025/05/06/image_15012025_05_07_05_9618.jpg', '/home/pi/Desktop/images/15012025/05/07/image_15012025_05_07_15_10334.jpg', '/home/pi/Desktop/images/15012025/05/07/image_15012025_05_07_25_9353.jpg', '/home/pi/Desktop/images/15012025/05/07/image_15012025_05_07_35_10488.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/06/image_15012025_05_06_35_10409.jpg
/home/pi/Desktop/images/15012025/05/06/image_15012025_05_06_55_9891.jpg
/home/pi/Desktop/images/15012025/05/06/image_15012025_05_07_05_9618.jpg
/home/pi/Desktop/images/15012025/05/07/image_15012025_05_07_15_10334.jpg
/home/pi/Desktop/images/15012025/05/07/image_15012025_05_07_25_9353.jpg
/home/pi/Desktop/images/15012025/05/07/image_15012025_05_07_35_10488.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329201432","1329201441","1329201614","1329201448","1329201465","1329201459"],"photo_ids_order":["1329201432","1329201441","1329201448","1329201459","1329201465","1329201614"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c2adda167223c6c0d0e70340a52606f3.jpg","text":"TemporaryFile(/tmp/multipartBody4469539189352312679asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967943313,"filename":"image_15012025_05_06_35_10409.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/51d15e83ba8261337f4645b1de55503d.jpg","text":"TemporaryFile(/tmp/multipartBody3014775380244401659asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967943313,"filename":"image_15012025_05_06_55_9891.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f82fc9d51c8a2662f65b8bab20ec3393.jpg","text":"TemporaryFile(/tmp/multipartBody3389491346796677412asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967943313,"filename":"image_15012025_05_07_35_10488.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b84597bf7feeee3a2b581ba6d68a5851.jpg","text":"TemporaryFile(/tmp/multipartBody4324674855515246751asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967943313,"filename":"image_15012025_05_07_05_9618.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/56f5606a46a8e66bd48978c5066b34d1.jpg","text":"TemporaryFile(/tmp/multipartBody793918622595679377asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967943313,"filename":"image_15012025_05_07_25_9353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2fed1a7bc5070fcbecdf33391d8f1192.jpg","text":"TemporaryFile(/tmp/multipartBody404466092713667168asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967943313,"filename":"image_15012025_05_07_15_10334.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329201448","file1":"1329201441","file0":"1329201432","file4":"1329201465","file5":"1329201614","file3":"1329201459"},"map_files_photo_id_array":[{"photo_id":"1329201614","filename":"file5"},{"photo_id":"1329201448","filename":"file2"},{"photo_id":"1329201465","filename":"file4"},{"photo_id":"1329201441","filename":"file1"},{"photo_id":"1329201432","filename":"file0"},{"photo_id":"1329201459","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329201432":["hashtag1","hashtag2"]},{"1329201441":["hashtag1","hashtag2"]},{"1329201614":["hashtag1","hashtag2"]},{"1329201448":["hashtag1","hashtag2"]},{"1329201465":["hashtag1","hashtag2"]},{"1329201459":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329201432, 1329201441, 1329201614, 1329201448, 1329201465, 1329201459)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.14354372024536 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 15 --only_old 0
2025-01-15 20:05:32.594989
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/07/image_15012025_05_07_55_9352.jpg', '/home/pi/Desktop/images/15012025/05/07/image_15012025_05_08_05_10422.jpg', '/home/pi/Desktop/images/15012025/05/08/image_15012025_05_08_15_9352.jpg', '/home/pi/Desktop/images/15012025/05/08/image_15012025_05_08_25_10416.jpg', '/home/pi/Desktop/images/15012025/05/08/image_15012025_05_08_35_10355.jpg', '/home/pi/Desktop/images/15012025/05/08/image_15012025_05_08_45_9346.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/07/image_15012025_05_07_55_9352.jpg
/home/pi/Desktop/images/15012025/05/07/image_15012025_05_08_05_10422.jpg
/home/pi/Desktop/images/15012025/05/08/image_15012025_05_08_15_9352.jpg
/home/pi/Desktop/images/15012025/05/08/image_15012025_05_08_25_10416.jpg
/home/pi/Desktop/images/15012025/05/08/image_15012025_05_08_35_10355.jpg
/home/pi/Desktop/images/15012025/05/08/image_15012025_05_08_45_9346.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329202466","1329202343","1329202313","1329202408","1329202284","1329202221"],"photo_ids_order":["1329202221","1329202284","1329202313","1329202343","1329202408","1329202466"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4d6f11b0f3ab10315aab096bbf460d77.jpg","text":"TemporaryFile(/tmp/multipartBody796985573903563848asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967993588,"filename":"image_15012025_05_08_45_9346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/eab926878e1add4046c983b1643825e4.jpg","text":"TemporaryFile(/tmp/multipartBody1012227470065752225asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967993588,"filename":"image_15012025_05_08_25_10416.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0d6e1fe5dc5bb63e74bc07a88dd62097.jpg","text":"TemporaryFile(/tmp/multipartBody6404757021860421804asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967993588,"filename":"image_15012025_05_08_15_9352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1330365d3b393838b94319d64df8e01c.jpg","text":"TemporaryFile(/tmp/multipartBody223528073787759191asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967993588,"filename":"image_15012025_05_08_35_10355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4499a25ca6b60b8ef2b55c4ec0992b90.jpg","text":"TemporaryFile(/tmp/multipartBody8270402307878025538asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967993588,"filename":"image_15012025_05_08_05_10422.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f18bc8ed9ee5d51187b0218247267063.jpg","text":"TemporaryFile(/tmp/multipartBody2658654873342019300asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736967993588,"filename":"image_15012025_05_07_55_9352.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329202313","file1":"1329202284","file0":"1329202221","file4":"1329202408","file5":"1329202466","file3":"1329202343"},"map_files_photo_id_array":[{"photo_id":"1329202466","filename":"file5"},{"photo_id":"1329202313","filename":"file2"},{"photo_id":"1329202408","filename":"file4"},{"photo_id":"1329202284","filename":"file1"},{"photo_id":"1329202221","filename":"file0"},{"photo_id":"1329202343","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329202466":["hashtag1","hashtag2"]},{"1329202343":["hashtag1","hashtag2"]},{"1329202313":["hashtag1","hashtag2"]},{"1329202408":["hashtag1","hashtag2"]},{"1329202284":["hashtag1","hashtag2"]},{"1329202221":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329202466, 1329202343, 1329202313, 1329202408, 1329202284, 1329202221)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 48.86885190010071 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 15 --only_old 0
2025-01-15 20:06:32.936542
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/09/image_15012025_05_09_15_9340.jpg', '/home/pi/Desktop/images/15012025/05/09/image_15012025_05_09_35_9378.jpg', '/home/pi/Desktop/images/15012025/05/09/image_15012025_05_09_45_10478.jpg', '/home/pi/Desktop/images/15012025/05/09/image_15012025_05_09_56_10367.jpg', '/home/pi/Desktop/images/15012025/05/09/image_15012025_05_10_05_9442.jpg', '/home/pi/Desktop/images/15012025/05/10/image_15012025_05_10_15_10354.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/09/image_15012025_05_09_15_9340.jpg
/home/pi/Desktop/images/15012025/05/09/image_15012025_05_09_35_9378.jpg
/home/pi/Desktop/images/15012025/05/09/image_15012025_05_09_45_10478.jpg
/home/pi/Desktop/images/15012025/05/09/image_15012025_05_09_56_10367.jpg
/home/pi/Desktop/images/15012025/05/09/image_15012025_05_10_05_9442.jpg
/home/pi/Desktop/images/15012025/05/10/image_15012025_05_10_15_10354.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329202870","1329202873","1329202876","1329202858","1329202612","1329202545"],"photo_ids_order":["1329202545","1329202612","1329202858","1329202870","1329202873","1329202876"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/102473edae27aaa355fd359d09a73c9c.jpg","text":"TemporaryFile(/tmp/multipartBody4737459173789877810asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968053941,"filename":"image_15012025_05_09_56_10367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/33010ede0c8b904798a448af2225f6df.jpg","text":"TemporaryFile(/tmp/multipartBody3765330022408950956asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968053941,"filename":"image_15012025_05_10_05_9442.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/971aaf180d0f683aa3af7a37a98446b4.jpg","text":"TemporaryFile(/tmp/multipartBody2530276388400501632asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968053941,"filename":"image_15012025_05_10_15_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d5331feadc8e9d9795c330abca7955c4.jpg","text":"TemporaryFile(/tmp/multipartBody740679559343666651asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968053941,"filename":"image_15012025_05_09_45_10478.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1eacda90dc6ac6e8e9f997a77cdfdc11.jpg","text":"TemporaryFile(/tmp/multipartBody483871594076492479asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968053941,"filename":"image_15012025_05_09_35_9378.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/514a7fab624b8e1ecb746bd43f5a67e9.jpg","text":"TemporaryFile(/tmp/multipartBody6783000937426358136asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968053941,"filename":"image_15012025_05_09_15_9340.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329202858","file1":"1329202612","file0":"1329202545","file4":"1329202873","file5":"1329202876","file3":"1329202870"},"map_files_photo_id_array":[{"photo_id":"1329202876","filename":"file5"},{"photo_id":"1329202858","filename":"file2"},{"photo_id":"1329202873","filename":"file4"},{"photo_id":"1329202612","filename":"file1"},{"photo_id":"1329202545","filename":"file0"},{"photo_id":"1329202870","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329202870":["hashtag1","hashtag2"]},{"1329202873":["hashtag1","hashtag2"]},{"1329202876":["hashtag1","hashtag2"]},{"1329202858":["hashtag1","hashtag2"]},{"1329202612":["hashtag1","hashtag2"]},{"1329202545":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329202870, 1329202873, 1329202876, 1329202858, 1329202612, 1329202545)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.722925424575806 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 15 --only_old 0
2025-01-15 20:07:33.091075
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/10/image_15012025_05_10_35_10495.jpg', '/home/pi/Desktop/images/15012025/05/10/image_15012025_05_10_46_10362.jpg', '/home/pi/Desktop/images/15012025/05/10/image_15012025_05_10_55_9355.jpg', '/home/pi/Desktop/images/15012025/05/10/image_15012025_05_11_05_10356.jpg', '/home/pi/Desktop/images/15012025/05/11/image_15012025_05_11_15_9346.jpg', '/home/pi/Desktop/images/15012025/05/11/image_15012025_05_11_35_10428.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/10/image_15012025_05_10_35_10495.jpg
/home/pi/Desktop/images/15012025/05/10/image_15012025_05_10_46_10362.jpg
/home/pi/Desktop/images/15012025/05/10/image_15012025_05_10_55_9355.jpg
/home/pi/Desktop/images/15012025/05/10/image_15012025_05_11_05_10356.jpg
/home/pi/Desktop/images/15012025/05/11/image_15012025_05_11_15_9346.jpg
/home/pi/Desktop/images/15012025/05/11/image_15012025_05_11_35_10428.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329203074","1329203049","1329202989","1329203052","1329203040","1329203066"],"photo_ids_order":["1329202989","1329203040","1329203049","1329203052","1329203066","1329203074"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2ec194b49d53c8c6949de97b33deefbe.jpg","text":"TemporaryFile(/tmp/multipartBody4237484881061205441asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968114091,"filename":"image_15012025_05_11_35_10428.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/85d4547eb28ce2d2d61b790e7464beac.jpg","text":"TemporaryFile(/tmp/multipartBody1437355789490056875asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968114091,"filename":"image_15012025_05_10_55_9355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/959c3d30ea50d035241b5e1e0767f00a.jpg","text":"TemporaryFile(/tmp/multipartBody8754452597212691760asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968114091,"filename":"image_15012025_05_10_35_10495.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5bc379d2a039755dc731b78822fb0824.jpg","text":"TemporaryFile(/tmp/multipartBody878390047811071712asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968114091,"filename":"image_15012025_05_11_05_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/adae7993078e09849180cd7514fbbf34.jpg","text":"TemporaryFile(/tmp/multipartBody2934425410070419963asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968114091,"filename":"image_15012025_05_10_46_10362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9a9f2245f0cf198737f6019eec31994f.jpg","text":"TemporaryFile(/tmp/multipartBody8551079728496576728asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968114091,"filename":"image_15012025_05_11_15_9346.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329203049","file1":"1329203040","file0":"1329202989","file4":"1329203066","file5":"1329203074","file3":"1329203052"},"map_files_photo_id_array":[{"photo_id":"1329203074","filename":"file5"},{"photo_id":"1329203049","filename":"file2"},{"photo_id":"1329203066","filename":"file4"},{"photo_id":"1329203040","filename":"file1"},{"photo_id":"1329202989","filename":"file0"},{"photo_id":"1329203052","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329203074":["hashtag1","hashtag2"]},{"1329203049":["hashtag1","hashtag2"]},{"1329202989":["hashtag1","hashtag2"]},{"1329203052":["hashtag1","hashtag2"]},{"1329203040":["hashtag1","hashtag2"]},{"1329203066":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329203074, 1329203049, 1329202989, 1329203052, 1329203040, 1329203066)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.649259090423584 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 15 --only_old 0
2025-01-15 20:08:32.289488
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/11/image_15012025_05_11_45_9332.jpg', '/home/pi/Desktop/images/15012025/05/11/image_15012025_05_11_55_10443.jpg', '/home/pi/Desktop/images/15012025/05/11/image_15012025_05_12_05_9353.jpg', '/home/pi/Desktop/images/15012025/05/12/image_15012025_05_12_15_10357.jpg', '/home/pi/Desktop/images/15012025/05/12/image_15012025_05_12_35_9346.jpg', '/home/pi/Desktop/images/15012025/05/12/image_15012025_05_12_45_10442.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/11/image_15012025_05_11_45_9332.jpg
/home/pi/Desktop/images/15012025/05/11/image_15012025_05_11_55_10443.jpg
/home/pi/Desktop/images/15012025/05/11/image_15012025_05_12_05_9353.jpg
/home/pi/Desktop/images/15012025/05/12/image_15012025_05_12_15_10357.jpg
/home/pi/Desktop/images/15012025/05/12/image_15012025_05_12_35_9346.jpg
/home/pi/Desktop/images/15012025/05/12/image_15012025_05_12_45_10442.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6261458396911621 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
2025-01-15 20:08:42.246085
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/11/image_15012025_05_11_45_9332.jpg', '/home/pi/Desktop/images/15012025/05/11/image_15012025_05_11_55_10443.jpg', '/home/pi/Desktop/images/15012025/05/11/image_15012025_05_12_05_9353.jpg', '/home/pi/Desktop/images/15012025/05/12/image_15012025_05_12_15_10357.jpg', '/home/pi/Desktop/images/15012025/05/12/image_15012025_05_12_35_9346.jpg', '/home/pi/Desktop/images/15012025/05/12/image_15012025_05_12_45_10442.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/11/image_15012025_05_11_45_9332.jpg
/home/pi/Desktop/images/15012025/05/11/image_15012025_05_11_55_10443.jpg
/home/pi/Desktop/images/15012025/05/11/image_15012025_05_12_05_9353.jpg
/home/pi/Desktop/images/15012025/05/12/image_15012025_05_12_15_10357.jpg
/home/pi/Desktop/images/15012025/05/12/image_15012025_05_12_35_9346.jpg
/home/pi/Desktop/images/15012025/05/12/image_15012025_05_12_45_10442.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329203141","1329203134","1329203154","1329203151","1329203115","1329203147"],"photo_ids_order":["1329203115","1329203134","1329203141","1329203147","1329203151","1329203154"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6918e94251ebe5e813ebce699d5dc351.jpg","text":"TemporaryFile(/tmp/multipartBody4482815354566591364asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968183196,"filename":"image_15012025_05_12_05_9353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f7dad14391009755636ca9a6560dd032.jpg","text":"TemporaryFile(/tmp/multipartBody8898283289038871693asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968183196,"filename":"image_15012025_05_11_55_10443.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/202c6dc91ceabb50b0d79b5bf034b3d4.jpg","text":"TemporaryFile(/tmp/multipartBody3429409244613217234asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968183196,"filename":"image_15012025_05_12_45_10442.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/039dd8caa05d7898f6aa3a855fd6d6a1.jpg","text":"TemporaryFile(/tmp/multipartBody7789283748648286629asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968183196,"filename":"image_15012025_05_12_35_9346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a90dda67a9f1ed8af8ba78aa8e202688.jpg","text":"TemporaryFile(/tmp/multipartBody2579206222148310566asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968183196,"filename":"image_15012025_05_11_45_9332.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0dddd6ac1bf0e9969627845ebeeb7396.jpg","text":"TemporaryFile(/tmp/multipartBody4175262898981678280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968183196,"filename":"image_15012025_05_12_15_10357.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329203141","file1":"1329203134","file0":"1329203115","file4":"1329203151","file5":"1329203154","file3":"1329203147"},"map_files_photo_id_array":[{"photo_id":"1329203154","filename":"file5"},{"photo_id":"1329203141","filename":"file2"},{"photo_id":"1329203151","filename":"file4"},{"photo_id":"1329203134","filename":"file1"},{"photo_id":"1329203115","filename":"file0"},{"photo_id":"1329203147","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329203141":["hashtag1","hashtag2"]},{"1329203134":["hashtag1","hashtag2"]},{"1329203154":["hashtag1","hashtag2"]},{"1329203151":["hashtag1","hashtag2"]},{"1329203115":["hashtag1","hashtag2"]},{"1329203147":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329203141, 1329203134, 1329203154, 1329203151, 1329203115, 1329203147)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.77878522872925 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 15 --only_old 0
2025-01-15 20:09:32.664934
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/12/image_15012025_05_12_55_10360.jpg', '/home/pi/Desktop/images/15012025/05/13/image_15012025_05_13_15_10393.jpg', '/home/pi/Desktop/images/15012025/05/13/image_15012025_05_13_25_9373.jpg', '/home/pi/Desktop/images/15012025/05/13/image_15012025_05_13_45_10346.jpg', '/home/pi/Desktop/images/15012025/05/13/image_15012025_05_13_55_9357.jpg', '/home/pi/Desktop/images/15012025/05/13/image_15012025_05_14_05_10457.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/12/image_15012025_05_12_55_10360.jpg
/home/pi/Desktop/images/15012025/05/13/image_15012025_05_13_15_10393.jpg
/home/pi/Desktop/images/15012025/05/13/image_15012025_05_13_25_9373.jpg
/home/pi/Desktop/images/15012025/05/13/image_15012025_05_13_45_10346.jpg
/home/pi/Desktop/images/15012025/05/13/image_15012025_05_13_55_9357.jpg
/home/pi/Desktop/images/15012025/05/13/image_15012025_05_14_05_10457.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329203188","1329203176","1329203184","1329203171","1329203180","1329203168"],"photo_ids_order":["1329203168","1329203171","1329203176","1329203180","1329203184","1329203188"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d391fc61458baee5e189fac1d78a0f2f.jpg","text":"TemporaryFile(/tmp/multipartBody5224886939098795683asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968233655,"filename":"image_15012025_05_14_05_10457.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/037f1b955e601b6da83272f8e4f94233.jpg","text":"TemporaryFile(/tmp/multipartBody5479018596967173543asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968233655,"filename":"image_15012025_05_13_25_9373.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d4596f04650741345db543eb0af88d44.jpg","text":"TemporaryFile(/tmp/multipartBody955641272193858841asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968233655,"filename":"image_15012025_05_13_55_9357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fd87ced9a8d1b9148f6eddd66aa8977f.jpg","text":"TemporaryFile(/tmp/multipartBody6056830104454984293asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968233655,"filename":"image_15012025_05_13_15_10393.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2e451c45962fd260f0ffad6d6be2f7ce.jpg","text":"TemporaryFile(/tmp/multipartBody4909690291901525463asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968233655,"filename":"image_15012025_05_13_45_10346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9237605d039d75ddfdab3d13a2c2360a.jpg","text":"TemporaryFile(/tmp/multipartBody2411520532869222275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968233655,"filename":"image_15012025_05_12_55_10360.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329203176","file1":"1329203171","file0":"1329203168","file4":"1329203184","file5":"1329203188","file3":"1329203180"},"map_files_photo_id_array":[{"photo_id":"1329203188","filename":"file5"},{"photo_id":"1329203176","filename":"file2"},{"photo_id":"1329203184","filename":"file4"},{"photo_id":"1329203171","filename":"file1"},{"photo_id":"1329203168","filename":"file0"},{"photo_id":"1329203180","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329203188":["hashtag1","hashtag2"]},{"1329203176":["hashtag1","hashtag2"]},{"1329203184":["hashtag1","hashtag2"]},{"1329203171":["hashtag1","hashtag2"]},{"1329203180":["hashtag1","hashtag2"]},{"1329203168":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329203188, 1329203176, 1329203184, 1329203171, 1329203180, 1329203168)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.97371530532837 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 15 --only_old 0
2025-01-15 20:10:32.902344
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/14/image_15012025_05_14_15_9357.jpg', '/home/pi/Desktop/images/15012025/05/14/image_15012025_05_14_25_10476.jpg', '/home/pi/Desktop/images/15012025/05/14/image_15012025_05_14_35_10350.jpg', '/home/pi/Desktop/images/15012025/05/14/image_15012025_05_14_45_9352.jpg', '/home/pi/Desktop/images/15012025/05/14/image_15012025_05_14_55_10445.jpg', '/home/pi/Desktop/images/15012025/05/14/image_15012025_05_15_05_9346.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/14/image_15012025_05_14_15_9357.jpg
/home/pi/Desktop/images/15012025/05/14/image_15012025_05_14_25_10476.jpg
/home/pi/Desktop/images/15012025/05/14/image_15012025_05_14_35_10350.jpg
/home/pi/Desktop/images/15012025/05/14/image_15012025_05_14_45_9352.jpg
/home/pi/Desktop/images/15012025/05/14/image_15012025_05_14_55_10445.jpg
/home/pi/Desktop/images/15012025/05/14/image_15012025_05_15_05_9346.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329203360","1329203332","1329203314","1329203209","1329203393","1329203390"],"photo_ids_order":["1329203209","1329203314","1329203332","1329203360","1329203390","1329203393"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/32f6d622b93f257e892967ac6eb429dc.jpg","text":"TemporaryFile(/tmp/multipartBody3262714360127414168asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968293888,"filename":"image_15012025_05_14_45_9352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/73ee8ce1af18eec84644312c09cfa428.jpg","text":"TemporaryFile(/tmp/multipartBody4052597271888558874asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968293888,"filename":"image_15012025_05_14_35_10350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/af891a714cacffaf0ebfcb123fb72347.jpg","text":"TemporaryFile(/tmp/multipartBody1254563315370773901asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968293888,"filename":"image_15012025_05_14_25_10476.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/45b41ce3cc0c6a5858f4abd8e80348a4.jpg","text":"TemporaryFile(/tmp/multipartBody6106289817033652749asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968293888,"filename":"image_15012025_05_14_15_9357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/25d599aa434532128e0bf869608402fe.jpg","text":"TemporaryFile(/tmp/multipartBody5124969971276511049asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968293888,"filename":"image_15012025_05_15_05_9346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c9dc556dc20c92238ce7148097a29c40.jpg","text":"TemporaryFile(/tmp/multipartBody9100797497708272354asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968293888,"filename":"image_15012025_05_14_55_10445.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329203332","file1":"1329203314","file0":"1329203209","file4":"1329203390","file5":"1329203393","file3":"1329203360"},"map_files_photo_id_array":[{"photo_id":"1329203393","filename":"file5"},{"photo_id":"1329203332","filename":"file2"},{"photo_id":"1329203390","filename":"file4"},{"photo_id":"1329203314","filename":"file1"},{"photo_id":"1329203209","filename":"file0"},{"photo_id":"1329203360","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329203360":["hashtag1","hashtag2"]},{"1329203332":["hashtag1","hashtag2"]},{"1329203314":["hashtag1","hashtag2"]},{"1329203209":["hashtag1","hashtag2"]},{"1329203393":["hashtag1","hashtag2"]},{"1329203390":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329203360, 1329203332, 1329203314, 1329203209, 1329203393, 1329203390)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.4615375995636 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 15 --only_old 0
2025-01-15 20:11:32.969622
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/15/image_15012025_05_15_15_10432.jpg', '/home/pi/Desktop/images/15012025/05/15/image_15012025_05_15_25_10431.jpg', '/home/pi/Desktop/images/15012025/05/15/image_15012025_05_15_45_10423.jpg', '/home/pi/Desktop/images/15012025/05/15/image_15012025_05_15_55_9335.jpg', '/home/pi/Desktop/images/15012025/05/15/image_15012025_05_16_05_10477.jpg', '/home/pi/Desktop/images/15012025/05/16/image_15012025_05_16_25_9353.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/15/image_15012025_05_15_15_10432.jpg
/home/pi/Desktop/images/15012025/05/15/image_15012025_05_15_25_10431.jpg
/home/pi/Desktop/images/15012025/05/15/image_15012025_05_15_45_10423.jpg
/home/pi/Desktop/images/15012025/05/15/image_15012025_05_15_55_9335.jpg
/home/pi/Desktop/images/15012025/05/15/image_15012025_05_16_05_10477.jpg
/home/pi/Desktop/images/15012025/05/16/image_15012025_05_16_25_9353.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329203476","1329203455","1329203500","1329203484","1329203460","1329203471"],"photo_ids_order":["1329203455","1329203460","1329203471","1329203476","1329203484","1329203500"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a4e38c3abf7cc9320e73692442079961.jpg","text":"TemporaryFile(/tmp/multipartBody4526990261866958514asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968353959,"filename":"image_15012025_05_15_55_9335.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8bc786845634534f577f0363a5bad501.jpg","text":"TemporaryFile(/tmp/multipartBody3907543411689405732asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968353959,"filename":"image_15012025_05_15_15_10432.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/715baea99213328e28dff0f2cf66227f.jpg","text":"TemporaryFile(/tmp/multipartBody2138517385266763900asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968353959,"filename":"image_15012025_05_16_25_9353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/87758cfaeb94dbb7dc0aa69c70acf4ac.jpg","text":"TemporaryFile(/tmp/multipartBody4529735122057443688asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968353959,"filename":"image_15012025_05_16_05_10477.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8448796ada5570c2f9d27e5fe2cb4561.jpg","text":"TemporaryFile(/tmp/multipartBody2931424813810312416asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968353959,"filename":"image_15012025_05_15_25_10431.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3f6b6a973d3f64ed64590b03bb1cd86d.jpg","text":"TemporaryFile(/tmp/multipartBody4058922742638785511asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968353959,"filename":"image_15012025_05_15_45_10423.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329203471","file1":"1329203460","file0":"1329203455","file4":"1329203484","file5":"1329203500","file3":"1329203476"},"map_files_photo_id_array":[{"photo_id":"1329203500","filename":"file5"},{"photo_id":"1329203471","filename":"file2"},{"photo_id":"1329203484","filename":"file4"},{"photo_id":"1329203460","filename":"file1"},{"photo_id":"1329203455","filename":"file0"},{"photo_id":"1329203476","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329203476":["hashtag1","hashtag2"]},{"1329203455":["hashtag1","hashtag2"]},{"1329203500":["hashtag1","hashtag2"]},{"1329203484":["hashtag1","hashtag2"]},{"1329203460":["hashtag1","hashtag2"]},{"1329203471":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329203476, 1329203455, 1329203500, 1329203484, 1329203460, 1329203471)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 56.43945550918579 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 15 --only_old 0
2025-01-15 20:12:33.095381
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/16/image_15012025_05_16_35_10359.jpg', '/home/pi/Desktop/images/15012025/05/16/image_15012025_05_17_05_10338.jpg', '/home/pi/Desktop/images/15012025/05/17/image_15012025_05_17_15_9350.jpg', '/home/pi/Desktop/images/15012025/05/17/image_15012025_05_17_25_10373.jpg', '/home/pi/Desktop/images/15012025/05/17/image_15012025_05_17_36_10379.jpg', '/home/pi/Desktop/images/15012025/05/17/image_15012025_05_17_45_9353.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/16/image_15012025_05_16_35_10359.jpg
/home/pi/Desktop/images/15012025/05/16/image_15012025_05_17_05_10338.jpg
/home/pi/Desktop/images/15012025/05/17/image_15012025_05_17_15_9350.jpg
/home/pi/Desktop/images/15012025/05/17/image_15012025_05_17_25_10373.jpg
/home/pi/Desktop/images/15012025/05/17/image_15012025_05_17_36_10379.jpg
/home/pi/Desktop/images/15012025/05/17/image_15012025_05_17_45_9353.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329203539","1329203512","1329203509","1329203544","1329203517","1329203522"],"photo_ids_order":["1329203509","1329203512","1329203517","1329203522","1329203539","1329203544"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b539d7ac60c4e5694320b352a6364e21.jpg","text":"TemporaryFile(/tmp/multipartBody6437794627974424217asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968414089,"filename":"image_15012025_05_17_36_10379.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cf776ff6490a4b918477b479aa76e6b5.jpg","text":"TemporaryFile(/tmp/multipartBody6876637498675903625asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968414089,"filename":"image_15012025_05_17_05_10338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4b38e2112a941b5988f35e504284d542.jpg","text":"TemporaryFile(/tmp/multipartBody2121868368822055822asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968414089,"filename":"image_15012025_05_16_35_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9a9e6d038509f5ee5f0366df161ad5bb.jpg","text":"TemporaryFile(/tmp/multipartBody146143894828726428asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968414089,"filename":"image_15012025_05_17_45_9353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2831f80bf525e807844d63f91b3623f4.jpg","text":"TemporaryFile(/tmp/multipartBody1060983203213533379asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968414089,"filename":"image_15012025_05_17_15_9350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/770051da2badd7178f303d85223ed38d.jpg","text":"TemporaryFile(/tmp/multipartBody4958250071470366341asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968414089,"filename":"image_15012025_05_17_25_10373.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329203517","file1":"1329203512","file0":"1329203509","file4":"1329203539","file5":"1329203544","file3":"1329203522"},"map_files_photo_id_array":[{"photo_id":"1329203544","filename":"file5"},{"photo_id":"1329203517","filename":"file2"},{"photo_id":"1329203539","filename":"file4"},{"photo_id":"1329203512","filename":"file1"},{"photo_id":"1329203509","filename":"file0"},{"photo_id":"1329203522","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329203539":["hashtag1","hashtag2"]},{"1329203512":["hashtag1","hashtag2"]},{"1329203509":["hashtag1","hashtag2"]},{"1329203544":["hashtag1","hashtag2"]},{"1329203517":["hashtag1","hashtag2"]},{"1329203522":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329203539, 1329203512, 1329203509, 1329203544, 1329203517, 1329203522)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.54974675178528 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 15 --only_old 0
2025-01-15 20:13:32.349978
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/17/image_15012025_05_17_55_10414.jpg', '/home/pi/Desktop/images/15012025/05/17/image_15012025_05_18_05_9386.jpg', '/home/pi/Desktop/images/15012025/05/18/image_15012025_05_18_15_10371.jpg', '/home/pi/Desktop/images/15012025/05/18/image_15012025_05_18_25_10368.jpg', '/home/pi/Desktop/images/15012025/05/18/image_15012025_05_18_35_9343.jpg', '/home/pi/Desktop/images/15012025/05/18/image_15012025_05_18_45_10358.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/17/image_15012025_05_17_55_10414.jpg
/home/pi/Desktop/images/15012025/05/17/image_15012025_05_18_05_9386.jpg
/home/pi/Desktop/images/15012025/05/18/image_15012025_05_18_15_10371.jpg
/home/pi/Desktop/images/15012025/05/18/image_15012025_05_18_25_10368.jpg
/home/pi/Desktop/images/15012025/05/18/image_15012025_05_18_35_9343.jpg
/home/pi/Desktop/images/15012025/05/18/image_15012025_05_18_45_10358.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329203584","1329203571","1329203591","1329203588","1329203597","1329203579"],"photo_ids_order":["1329203571","1329203579","1329203584","1329203588","1329203591","1329203597"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/774879f45980eb39620193097f1b1920.jpg","text":"TemporaryFile(/tmp/multipartBody8631200465532009248asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968473363,"filename":"image_15012025_05_18_15_10371.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f90b42aba3cbddc77f0c44e12ed206ab.jpg","text":"TemporaryFile(/tmp/multipartBody8473265292762958911asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968473363,"filename":"image_15012025_05_17_55_10414.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/be3d9beea98111076695cb3242bdb53a.jpg","text":"TemporaryFile(/tmp/multipartBody7319510414730997041asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968473363,"filename":"image_15012025_05_18_35_9343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d05220ee0897edb8f62ae818e0aed5f2.jpg","text":"TemporaryFile(/tmp/multipartBody2674399698599251448asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968473363,"filename":"image_15012025_05_18_25_10368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f7e1698ee60617867c9bd498417100e6.jpg","text":"TemporaryFile(/tmp/multipartBody7236373736095481695asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968473363,"filename":"image_15012025_05_18_45_10358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/46a0fdc03ad8c2c7348f117b640b74e9.jpg","text":"TemporaryFile(/tmp/multipartBody30820197637622675asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968473363,"filename":"image_15012025_05_18_05_9386.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329203584","file1":"1329203579","file0":"1329203571","file4":"1329203591","file5":"1329203597","file3":"1329203588"},"map_files_photo_id_array":[{"photo_id":"1329203597","filename":"file5"},{"photo_id":"1329203584","filename":"file2"},{"photo_id":"1329203591","filename":"file4"},{"photo_id":"1329203579","filename":"file1"},{"photo_id":"1329203571","filename":"file0"},{"photo_id":"1329203588","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329203584":["hashtag1","hashtag2"]},{"1329203571":["hashtag1","hashtag2"]},{"1329203591":["hashtag1","hashtag2"]},{"1329203588":["hashtag1","hashtag2"]},{"1329203597":["hashtag1","hashtag2"]},{"1329203579":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329203584, 1329203571, 1329203591, 1329203588, 1329203597, 1329203579)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.92445516586304 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 15 --only_old 0
2025-01-15 20:14:32.601105
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/18/image_15012025_05_18_55_10347.jpg', '/home/pi/Desktop/images/15012025/05/18/image_15012025_05_19_05_9362.jpg', '/home/pi/Desktop/images/15012025/05/19/image_15012025_05_19_15_10358.jpg', '/home/pi/Desktop/images/15012025/05/19/image_15012025_05_19_25_9367.jpg', '/home/pi/Desktop/images/15012025/05/19/image_15012025_05_19_35_10362.jpg', '/home/pi/Desktop/images/15012025/05/19/image_15012025_05_19_45_10361.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/18/image_15012025_05_18_55_10347.jpg
/home/pi/Desktop/images/15012025/05/18/image_15012025_05_19_05_9362.jpg
/home/pi/Desktop/images/15012025/05/19/image_15012025_05_19_15_10358.jpg
/home/pi/Desktop/images/15012025/05/19/image_15012025_05_19_25_9367.jpg
/home/pi/Desktop/images/15012025/05/19/image_15012025_05_19_35_10362.jpg
/home/pi/Desktop/images/15012025/05/19/image_15012025_05_19_45_10361.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329203630","1329203635","1329203620","1329203623","1329203637","1329203652"],"photo_ids_order":["1329203620","1329203623","1329203630","1329203635","1329203637","1329203652"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ceaef0de4e5eccfee6c07b944f2e9544.jpg","text":"TemporaryFile(/tmp/multipartBody3786738316648010602asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968533604,"filename":"image_15012025_05_19_15_10358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/56e7019e148d351d2d92e128a925f870.jpg","text":"TemporaryFile(/tmp/multipartBody5744173302684267299asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968533604,"filename":"image_15012025_05_19_25_9367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ed0a0d7663efcb501a66a8c436ce6d18.jpg","text":"TemporaryFile(/tmp/multipartBody8680688268269561328asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968533604,"filename":"image_15012025_05_18_55_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/926bce4570a35a1b85542cc935fbbf43.jpg","text":"TemporaryFile(/tmp/multipartBody3612713348458470408asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968533604,"filename":"image_15012025_05_19_05_9362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9933fc76c87ca468cb3d2b71b5e92b29.jpg","text":"TemporaryFile(/tmp/multipartBody156302996096180969asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968533604,"filename":"image_15012025_05_19_35_10362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/279c85dd8c9b5eb524c8053e2839ff63.jpg","text":"TemporaryFile(/tmp/multipartBody1443610036346546758asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968533604,"filename":"image_15012025_05_19_45_10361.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329203630","file1":"1329203623","file0":"1329203620","file4":"1329203637","file5":"1329203652","file3":"1329203635"},"map_files_photo_id_array":[{"photo_id":"1329203652","filename":"file5"},{"photo_id":"1329203630","filename":"file2"},{"photo_id":"1329203637","filename":"file4"},{"photo_id":"1329203623","filename":"file1"},{"photo_id":"1329203620","filename":"file0"},{"photo_id":"1329203635","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329203630":["hashtag1","hashtag2"]},{"1329203635":["hashtag1","hashtag2"]},{"1329203620":["hashtag1","hashtag2"]},{"1329203623":["hashtag1","hashtag2"]},{"1329203637":["hashtag1","hashtag2"]},{"1329203652":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329203630, 1329203635, 1329203620, 1329203623, 1329203637, 1329203652)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.10940647125244 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 15 --only_old 0
2025-01-15 20:15:32.819684
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/19/image_15012025_05_19_55_9370.jpg', '/home/pi/Desktop/images/15012025/05/19/image_15012025_05_20_05_10486.jpg', '/home/pi/Desktop/images/15012025/05/20/image_15012025_05_20_15_9460.jpg', '/home/pi/Desktop/images/15012025/05/20/image_15012025_05_20_25_10440.jpg', '/home/pi/Desktop/images/15012025/05/20/image_15012025_05_20_35_10099.jpg', '/home/pi/Desktop/images/15012025/05/20/image_15012025_05_20_45_10349.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/19/image_15012025_05_19_55_9370.jpg
/home/pi/Desktop/images/15012025/05/19/image_15012025_05_20_05_10486.jpg
/home/pi/Desktop/images/15012025/05/20/image_15012025_05_20_15_9460.jpg
/home/pi/Desktop/images/15012025/05/20/image_15012025_05_20_25_10440.jpg
/home/pi/Desktop/images/15012025/05/20/image_15012025_05_20_35_10099.jpg
/home/pi/Desktop/images/15012025/05/20/image_15012025_05_20_45_10349.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329203723","1329203711","1329203731","1329203725","1329203719","1329203727"],"photo_ids_order":["1329203711","1329203719","1329203723","1329203725","1329203727","1329203731"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3e72ff795ace33bbd65e85f359ea59df.jpg","text":"TemporaryFile(/tmp/multipartBody7342514508622446970asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968593831,"filename":"image_15012025_05_20_15_9460.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7c70a43985628b20a874ac187e63122c.jpg","text":"TemporaryFile(/tmp/multipartBody6581780903954629297asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968593831,"filename":"image_15012025_05_19_55_9370.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/feddf35015fefc6f19d185b8b9f914db.jpg","text":"TemporaryFile(/tmp/multipartBody4029270178777677048asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968593831,"filename":"image_15012025_05_20_45_10349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a0be9609524292a7fb9d6fe94861eae5.jpg","text":"TemporaryFile(/tmp/multipartBody3889612564319426844asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968593831,"filename":"image_15012025_05_20_25_10440.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c6bf74973c037dbab894f2c6e3a8fe21.jpg","text":"TemporaryFile(/tmp/multipartBody5636022708089212432asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968593831,"filename":"image_15012025_05_20_05_10486.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ebcf39b8095c704e1a5c7b1c985f73e0.jpg","text":"TemporaryFile(/tmp/multipartBody1992963472084476149asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968593831,"filename":"image_15012025_05_20_35_10099.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329203723","file1":"1329203719","file0":"1329203711","file4":"1329203727","file5":"1329203731","file3":"1329203725"},"map_files_photo_id_array":[{"photo_id":"1329203731","filename":"file5"},{"photo_id":"1329203723","filename":"file2"},{"photo_id":"1329203727","filename":"file4"},{"photo_id":"1329203719","filename":"file1"},{"photo_id":"1329203711","filename":"file0"},{"photo_id":"1329203725","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329203723":["hashtag1","hashtag2"]},{"1329203711":["hashtag1","hashtag2"]},{"1329203731":["hashtag1","hashtag2"]},{"1329203725":["hashtag1","hashtag2"]},{"1329203719":["hashtag1","hashtag2"]},{"1329203727":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329203723, 1329203711, 1329203731, 1329203725, 1329203719, 1329203727)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.44309997558594 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 15 --only_old 0
2025-01-15 20:16:32.969311
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/20/image_15012025_05_20_55_9340.jpg', '/home/pi/Desktop/images/15012025/05/20/image_15012025_05_21_05_10453.jpg', '/home/pi/Desktop/images/15012025/05/21/image_15012025_05_21_15_9346.jpg', '/home/pi/Desktop/images/15012025/05/21/image_15012025_05_21_25_10456.jpg', '/home/pi/Desktop/images/15012025/05/21/image_15012025_05_21_35_10346.jpg', '/home/pi/Desktop/images/15012025/05/21/image_15012025_05_22_05_9385.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/20/image_15012025_05_20_55_9340.jpg
/home/pi/Desktop/images/15012025/05/20/image_15012025_05_21_05_10453.jpg
/home/pi/Desktop/images/15012025/05/21/image_15012025_05_21_15_9346.jpg
/home/pi/Desktop/images/15012025/05/21/image_15012025_05_21_25_10456.jpg
/home/pi/Desktop/images/15012025/05/21/image_15012025_05_21_35_10346.jpg
/home/pi/Desktop/images/15012025/05/21/image_15012025_05_22_05_9385.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329204043","1329203974","1329204019","1329203967","1329203952","1329204047"],"photo_ids_order":["1329203952","1329203967","1329203974","1329204019","1329204043","1329204047"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/493f10ea35627e57de2a8b82231043e1.jpg","text":"TemporaryFile(/tmp/multipartBody9090597901797887337asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968653959,"filename":"image_15012025_05_21_35_10346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/80a2b99b9f2af02cb6f58c1b1657db8f.jpg","text":"TemporaryFile(/tmp/multipartBody188248972552040380asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968653959,"filename":"image_15012025_05_21_15_9346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/44fbd022edb131934abe387b7067b4e6.jpg","text":"TemporaryFile(/tmp/multipartBody2086954468947993671asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968653959,"filename":"image_15012025_05_21_25_10456.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6832a5e92238ed1ddd6dccd5a5309d9d.jpg","text":"TemporaryFile(/tmp/multipartBody4126815962002830238asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968653959,"filename":"image_15012025_05_21_05_10453.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0abfc40c6c5054d29d24972599fd6e12.jpg","text":"TemporaryFile(/tmp/multipartBody8563979910504089207asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968653959,"filename":"image_15012025_05_20_55_9340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f4594fbd409725eaf5915992b03bb9c9.jpg","text":"TemporaryFile(/tmp/multipartBody4707498366978985024asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968653959,"filename":"image_15012025_05_22_05_9385.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329203974","file1":"1329203967","file0":"1329203952","file4":"1329204043","file5":"1329204047","file3":"1329204019"},"map_files_photo_id_array":[{"photo_id":"1329204047","filename":"file5"},{"photo_id":"1329203974","filename":"file2"},{"photo_id":"1329204043","filename":"file4"},{"photo_id":"1329203967","filename":"file1"},{"photo_id":"1329203952","filename":"file0"},{"photo_id":"1329204019","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329204043":["hashtag1","hashtag2"]},{"1329203974":["hashtag1","hashtag2"]},{"1329204019":["hashtag1","hashtag2"]},{"1329203967":["hashtag1","hashtag2"]},{"1329203952":["hashtag1","hashtag2"]},{"1329204047":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329204043, 1329203974, 1329204019, 1329203967, 1329203952, 1329204047)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.18717908859253 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 15 --only_old 0
2025-01-15 20:17:33.138958
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/22/image_15012025_05_22_15_10344.jpg', '/home/pi/Desktop/images/15012025/05/22/image_15012025_05_22_25_10426.jpg', '/home/pi/Desktop/images/15012025/05/22/image_15012025_05_22_45_10424.jpg', '/home/pi/Desktop/images/15012025/05/22/image_15012025_05_23_05_9346.jpg', '/home/pi/Desktop/images/15012025/05/23/image_15012025_05_23_15_10373.jpg', '/home/pi/Desktop/images/15012025/05/23/image_15012025_05_23_25_9430.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/22/image_15012025_05_22_15_10344.jpg
/home/pi/Desktop/images/15012025/05/22/image_15012025_05_22_25_10426.jpg
/home/pi/Desktop/images/15012025/05/22/image_15012025_05_22_45_10424.jpg
/home/pi/Desktop/images/15012025/05/22/image_15012025_05_23_05_9346.jpg
/home/pi/Desktop/images/15012025/05/23/image_15012025_05_23_15_10373.jpg
/home/pi/Desktop/images/15012025/05/23/image_15012025_05_23_25_9430.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6009242534637451 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
2025-01-15 20:17:43.184261
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/22/image_15012025_05_22_15_10344.jpg', '/home/pi/Desktop/images/15012025/05/22/image_15012025_05_22_25_10426.jpg', '/home/pi/Desktop/images/15012025/05/22/image_15012025_05_22_45_10424.jpg', '/home/pi/Desktop/images/15012025/05/22/image_15012025_05_23_05_9346.jpg', '/home/pi/Desktop/images/15012025/05/23/image_15012025_05_23_15_10373.jpg', '/home/pi/Desktop/images/15012025/05/23/image_15012025_05_23_25_9430.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/22/image_15012025_05_22_15_10344.jpg
/home/pi/Desktop/images/15012025/05/22/image_15012025_05_22_25_10426.jpg
/home/pi/Desktop/images/15012025/05/22/image_15012025_05_22_45_10424.jpg
/home/pi/Desktop/images/15012025/05/22/image_15012025_05_23_05_9346.jpg
/home/pi/Desktop/images/15012025/05/23/image_15012025_05_23_15_10373.jpg
/home/pi/Desktop/images/15012025/05/23/image_15012025_05_23_25_9430.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329204238","1329204232","1329204246","1329204255","1329204242","1329204251"],"photo_ids_order":["1329204232","1329204238","1329204242","1329204246","1329204251","1329204255"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dfe4879e5d69c2cbeb67dfccf8b0654e.jpg","text":"TemporaryFile(/tmp/multipartBody8979494708791949313asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968724101,"filename":"image_15012025_05_22_25_10426.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/68a099598206812011b01969c777b0fd.jpg","text":"TemporaryFile(/tmp/multipartBody3196153766632648755asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968724101,"filename":"image_15012025_05_22_15_10344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/00759045613606c0cd2e3eaf455adfa1.jpg","text":"TemporaryFile(/tmp/multipartBody34040160783298615asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968724101,"filename":"image_15012025_05_23_05_9346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ca06e0e910c90aa41798109f39fd6db9.jpg","text":"TemporaryFile(/tmp/multipartBody7141477334264987884asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968724101,"filename":"image_15012025_05_23_25_9430.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/497aa1f85e8622fbe313dd9f4244b3ce.jpg","text":"TemporaryFile(/tmp/multipartBody817820345866879597asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968724101,"filename":"image_15012025_05_22_45_10424.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a37bc6e1c5fb21e84194b21a46f77e48.jpg","text":"TemporaryFile(/tmp/multipartBody2486521979983467795asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968724101,"filename":"image_15012025_05_23_15_10373.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329204242","file1":"1329204238","file0":"1329204232","file4":"1329204251","file5":"1329204255","file3":"1329204246"},"map_files_photo_id_array":[{"photo_id":"1329204255","filename":"file5"},{"photo_id":"1329204242","filename":"file2"},{"photo_id":"1329204251","filename":"file4"},{"photo_id":"1329204238","filename":"file1"},{"photo_id":"1329204232","filename":"file0"},{"photo_id":"1329204246","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329204238":["hashtag1","hashtag2"]},{"1329204232":["hashtag1","hashtag2"]},{"1329204246":["hashtag1","hashtag2"]},{"1329204255":["hashtag1","hashtag2"]},{"1329204242":["hashtag1","hashtag2"]},{"1329204251":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329204238, 1329204232, 1329204246, 1329204255, 1329204242, 1329204251)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.62736177444458 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 15 --only_old 0
2025-01-15 20:18:32.350410
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/23/image_15012025_05_23_35_10416.jpg', '/home/pi/Desktop/images/15012025/05/23/image_15012025_05_23_45_10406.jpg', '/home/pi/Desktop/images/15012025/05/23/image_15012025_05_23_55_9503.jpg', '/home/pi/Desktop/images/15012025/05/23/image_15012025_05_24_05_10347.jpg', '/home/pi/Desktop/images/15012025/05/24/image_15012025_05_24_15_9330.jpg', '/home/pi/Desktop/images/15012025/05/24/image_15012025_05_24_25_10502.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/23/image_15012025_05_23_35_10416.jpg
/home/pi/Desktop/images/15012025/05/23/image_15012025_05_23_45_10406.jpg
/home/pi/Desktop/images/15012025/05/23/image_15012025_05_23_55_9503.jpg
/home/pi/Desktop/images/15012025/05/23/image_15012025_05_24_05_10347.jpg
/home/pi/Desktop/images/15012025/05/24/image_15012025_05_24_15_9330.jpg
/home/pi/Desktop/images/15012025/05/24/image_15012025_05_24_25_10502.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329204282","1329204300","1329204290","1329204303","1329204269","1329204305"],"photo_ids_order":["1329204269","1329204282","1329204290","1329204300","1329204303","1329204305"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/020cb761536a0c7fa4e484b7232b6f8e.jpg","text":"TemporaryFile(/tmp/multipartBody3858370419498404640asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968773391,"filename":"image_15012025_05_23_45_10406.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/423b3418606adac2693406a0ad59707c.jpg","text":"TemporaryFile(/tmp/multipartBody2258416204747943374asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968773391,"filename":"image_15012025_05_24_05_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e6427c119d945130ff790464493b377d.jpg","text":"TemporaryFile(/tmp/multipartBody6165911398566442299asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968773391,"filename":"image_15012025_05_23_55_9503.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/15fb5d98c85a614981a534001493632d.jpg","text":"TemporaryFile(/tmp/multipartBody7726439628571735311asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968773391,"filename":"image_15012025_05_24_15_9330.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2796a171d33403c88e9108039e744639.jpg","text":"TemporaryFile(/tmp/multipartBody1727931833771973930asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968773391,"filename":"image_15012025_05_23_35_10416.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cba64201f5a4fb8e74dd1be539971f8a.jpg","text":"TemporaryFile(/tmp/multipartBody1283208873952469897asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968773391,"filename":"image_15012025_05_24_25_10502.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329204290","file1":"1329204282","file0":"1329204269","file4":"1329204303","file5":"1329204305","file3":"1329204300"},"map_files_photo_id_array":[{"photo_id":"1329204305","filename":"file5"},{"photo_id":"1329204290","filename":"file2"},{"photo_id":"1329204303","filename":"file4"},{"photo_id":"1329204282","filename":"file1"},{"photo_id":"1329204269","filename":"file0"},{"photo_id":"1329204300","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329204282":["hashtag1","hashtag2"]},{"1329204300":["hashtag1","hashtag2"]},{"1329204290":["hashtag1","hashtag2"]},{"1329204303":["hashtag1","hashtag2"]},{"1329204269":["hashtag1","hashtag2"]},{"1329204305":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329204282, 1329204300, 1329204290, 1329204303, 1329204269, 1329204305)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.68117380142212 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 15 --only_old 0
2025-01-15 20:19:32.626764
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/24/image_15012025_05_24_35_10353.jpg', '/home/pi/Desktop/images/15012025/05/24/image_15012025_05_24_45_9346.jpg', '/home/pi/Desktop/images/15012025/05/24/image_15012025_05_24_55_10407.jpg', '/home/pi/Desktop/images/15012025/05/24/image_15012025_05_25_05_9350.jpg', '/home/pi/Desktop/images/15012025/05/25/image_15012025_05_25_15_10436.jpg', '/home/pi/Desktop/images/15012025/05/25/image_15012025_05_25_35_9339.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/24/image_15012025_05_24_35_10353.jpg
/home/pi/Desktop/images/15012025/05/24/image_15012025_05_24_45_9346.jpg
/home/pi/Desktop/images/15012025/05/24/image_15012025_05_24_55_10407.jpg
/home/pi/Desktop/images/15012025/05/24/image_15012025_05_25_05_9350.jpg
/home/pi/Desktop/images/15012025/05/25/image_15012025_05_25_15_10436.jpg
/home/pi/Desktop/images/15012025/05/25/image_15012025_05_25_35_9339.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329204325","1329204351","1329204345","1329204330","1329204336","1329204341"],"photo_ids_order":["1329204325","1329204330","1329204336","1329204341","1329204345","1329204351"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/37b4361876be509c49401d0acd872cd3.jpg","text":"TemporaryFile(/tmp/multipartBody3985670690464240860asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968833604,"filename":"image_15012025_05_24_35_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/465e3612b9834506f768cf5bfb34a67e.jpg","text":"TemporaryFile(/tmp/multipartBody4094807980107171832asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968833604,"filename":"image_15012025_05_25_35_9339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/022a7882abb38fce0f39692a57ba7d84.jpg","text":"TemporaryFile(/tmp/multipartBody4024689088795241577asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968833604,"filename":"image_15012025_05_25_15_10436.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/223394a452a082d1c29781e637f1a806.jpg","text":"TemporaryFile(/tmp/multipartBody98063247162000650asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968833604,"filename":"image_15012025_05_24_45_9346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/67e59405484c81bdb3d37bf75802ea55.jpg","text":"TemporaryFile(/tmp/multipartBody3573636818519435918asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968833604,"filename":"image_15012025_05_24_55_10407.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4d7cb2928dd2688876504922c0c15e63.jpg","text":"TemporaryFile(/tmp/multipartBody1025468441081452701asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968833604,"filename":"image_15012025_05_25_05_9350.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329204336","file1":"1329204330","file0":"1329204325","file4":"1329204345","file5":"1329204351","file3":"1329204341"},"map_files_photo_id_array":[{"photo_id":"1329204351","filename":"file5"},{"photo_id":"1329204336","filename":"file2"},{"photo_id":"1329204345","filename":"file4"},{"photo_id":"1329204330","filename":"file1"},{"photo_id":"1329204325","filename":"file0"},{"photo_id":"1329204341","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329204325":["hashtag1","hashtag2"]},{"1329204351":["hashtag1","hashtag2"]},{"1329204345":["hashtag1","hashtag2"]},{"1329204330":["hashtag1","hashtag2"]},{"1329204336":["hashtag1","hashtag2"]},{"1329204341":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329204325, 1329204351, 1329204345, 1329204330, 1329204336, 1329204341)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.559048652648926 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 15 --only_old 0
2025-01-15 20:20:32.801469
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/25/image_15012025_05_25_45_10450.jpg', '/home/pi/Desktop/images/15012025/05/25/image_15012025_05_26_05_10475.jpg', '/home/pi/Desktop/images/15012025/05/26/image_15012025_05_26_15_10354.jpg', '/home/pi/Desktop/images/15012025/05/26/image_15012025_05_27_05_10357.jpg', '/home/pi/Desktop/images/15012025/05/27/image_15012025_05_27_15_9347.jpg', '/home/pi/Desktop/images/15012025/05/27/image_15012025_05_27_25_10424.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/25/image_15012025_05_25_45_10450.jpg
/home/pi/Desktop/images/15012025/05/25/image_15012025_05_26_05_10475.jpg
/home/pi/Desktop/images/15012025/05/26/image_15012025_05_26_15_10354.jpg
/home/pi/Desktop/images/15012025/05/26/image_15012025_05_27_05_10357.jpg
/home/pi/Desktop/images/15012025/05/27/image_15012025_05_27_15_9347.jpg
/home/pi/Desktop/images/15012025/05/27/image_15012025_05_27_25_10424.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329204526","1329204531","1329204488","1329204482","1329204461","1329204521"],"photo_ids_order":["1329204461","1329204482","1329204488","1329204521","1329204526","1329204531"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d759e6279fce3fbd35b71adfe4123d0f.jpg","text":"TemporaryFile(/tmp/multipartBody8601570796567754690asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968893812,"filename":"image_15012025_05_27_15_9347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1f3459551f44f64f247e2a31b4e8217d.jpg","text":"TemporaryFile(/tmp/multipartBody4427469061712224160asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968893812,"filename":"image_15012025_05_27_25_10424.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ee3ba374fc1717f23e8c32cdee63d5e3.jpg","text":"TemporaryFile(/tmp/multipartBody6585081058855986435asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968893812,"filename":"image_15012025_05_26_15_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bf2545ef8fa0b5ddfc793fa1c0f1d62f.jpg","text":"TemporaryFile(/tmp/multipartBody808341665202860805asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968893812,"filename":"image_15012025_05_26_05_10475.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/003e9c9e5f36bb9b0b767457a2c02aeb.jpg","text":"TemporaryFile(/tmp/multipartBody6488940718767762645asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968893812,"filename":"image_15012025_05_25_45_10450.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/da6ef6e5b134d169d513fed4b92eb38d.jpg","text":"TemporaryFile(/tmp/multipartBody8572962664497918876asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968893812,"filename":"image_15012025_05_27_05_10357.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329204488","file1":"1329204482","file0":"1329204461","file4":"1329204526","file5":"1329204531","file3":"1329204521"},"map_files_photo_id_array":[{"photo_id":"1329204531","filename":"file5"},{"photo_id":"1329204488","filename":"file2"},{"photo_id":"1329204526","filename":"file4"},{"photo_id":"1329204482","filename":"file1"},{"photo_id":"1329204461","filename":"file0"},{"photo_id":"1329204521","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329204526":["hashtag1","hashtag2"]},{"1329204531":["hashtag1","hashtag2"]},{"1329204488":["hashtag1","hashtag2"]},{"1329204482":["hashtag1","hashtag2"]},{"1329204461":["hashtag1","hashtag2"]},{"1329204521":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329204526, 1329204531, 1329204488, 1329204482, 1329204461, 1329204521)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.58307218551636 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 15 --only_old 0
2025-01-15 20:21:33.093274
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/27/image_15012025_05_27_35_10348.jpg', '/home/pi/Desktop/images/15012025/05/28/image_15012025_05_28_25_10364.jpg', '/home/pi/Desktop/images/15012025/05/28/image_15012025_05_28_35_9464.jpg', '/home/pi/Desktop/images/15012025/05/28/image_15012025_05_28_45_10363.jpg', '/home/pi/Desktop/images/15012025/05/28/image_15012025_05_28_55_9340.jpg', '/home/pi/Desktop/images/15012025/05/28/image_15012025_05_29_05_10397.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/27/image_15012025_05_27_35_10348.jpg
/home/pi/Desktop/images/15012025/05/28/image_15012025_05_28_25_10364.jpg
/home/pi/Desktop/images/15012025/05/28/image_15012025_05_28_35_9464.jpg
/home/pi/Desktop/images/15012025/05/28/image_15012025_05_28_45_10363.jpg
/home/pi/Desktop/images/15012025/05/28/image_15012025_05_28_55_9340.jpg
/home/pi/Desktop/images/15012025/05/28/image_15012025_05_29_05_10397.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6232357025146484 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
2025-01-15 20:21:43.142842
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/27/image_15012025_05_27_35_10348.jpg', '/home/pi/Desktop/images/15012025/05/28/image_15012025_05_28_25_10364.jpg', '/home/pi/Desktop/images/15012025/05/28/image_15012025_05_28_35_9464.jpg', '/home/pi/Desktop/images/15012025/05/28/image_15012025_05_28_45_10363.jpg', '/home/pi/Desktop/images/15012025/05/28/image_15012025_05_28_55_9340.jpg', '/home/pi/Desktop/images/15012025/05/28/image_15012025_05_29_05_10397.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/27/image_15012025_05_27_35_10348.jpg
/home/pi/Desktop/images/15012025/05/28/image_15012025_05_28_25_10364.jpg
/home/pi/Desktop/images/15012025/05/28/image_15012025_05_28_35_9464.jpg
/home/pi/Desktop/images/15012025/05/28/image_15012025_05_28_45_10363.jpg
/home/pi/Desktop/images/15012025/05/28/image_15012025_05_28_55_9340.jpg
/home/pi/Desktop/images/15012025/05/28/image_15012025_05_29_05_10397.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329204643","1329204637","1329204601","1329204582","1329204627","1329204574"],"photo_ids_order":["1329204574","1329204582","1329204601","1329204627","1329204637","1329204643"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f029b35ad110242cf03201c1a5fb6f6c.jpg","text":"TemporaryFile(/tmp/multipartBody6987339683194172896asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968964068,"filename":"image_15012025_05_29_05_10397.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3e91b94a881406f04019d426fe3d83c6.jpg","text":"TemporaryFile(/tmp/multipartBody8707424272223374102asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968964068,"filename":"image_15012025_05_28_55_9340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a4fb8b64a419336e3220cfe81b45c8fc.jpg","text":"TemporaryFile(/tmp/multipartBody448789036462714955asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968964068,"filename":"image_15012025_05_28_35_9464.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/667fb20a85acd38207d511682e4f91ca.jpg","text":"TemporaryFile(/tmp/multipartBody1081634468710239947asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968964068,"filename":"image_15012025_05_28_25_10364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/53b33d8a5be0bb4cc826ea4f8059bcef.jpg","text":"TemporaryFile(/tmp/multipartBody5678145767817093700asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968964068,"filename":"image_15012025_05_28_45_10363.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e41c54da4f6e5d7e3214cc36f92b70d9.jpg","text":"TemporaryFile(/tmp/multipartBody1084333418117386306asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736968964068,"filename":"image_15012025_05_27_35_10348.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329204601","file1":"1329204582","file0":"1329204574","file4":"1329204637","file5":"1329204643","file3":"1329204627"},"map_files_photo_id_array":[{"photo_id":"1329204643","filename":"file5"},{"photo_id":"1329204601","filename":"file2"},{"photo_id":"1329204637","filename":"file4"},{"photo_id":"1329204582","filename":"file1"},{"photo_id":"1329204574","filename":"file0"},{"photo_id":"1329204627","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329204643":["hashtag1","hashtag2"]},{"1329204637":["hashtag1","hashtag2"]},{"1329204601":["hashtag1","hashtag2"]},{"1329204582":["hashtag1","hashtag2"]},{"1329204627":["hashtag1","hashtag2"]},{"1329204574":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329204643, 1329204637, 1329204601, 1329204582, 1329204627, 1329204574)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.61360001564026 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 15 --only_old 0
2025-01-15 20:22:32.282586
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/29/image_15012025_05_29_16_10457.jpg', '/home/pi/Desktop/images/15012025/05/29/image_15012025_05_29_25_9513.jpg', '/home/pi/Desktop/images/15012025/05/29/image_15012025_05_29_35_10351.jpg', '/home/pi/Desktop/images/15012025/05/29/image_15012025_05_29_45_9342.jpg', '/home/pi/Desktop/images/15012025/05/29/image_15012025_05_29_55_10433.jpg', '/home/pi/Desktop/images/15012025/05/29/image_15012025_05_30_05_9389.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/29/image_15012025_05_29_16_10457.jpg
/home/pi/Desktop/images/15012025/05/29/image_15012025_05_29_25_9513.jpg
/home/pi/Desktop/images/15012025/05/29/image_15012025_05_29_35_10351.jpg
/home/pi/Desktop/images/15012025/05/29/image_15012025_05_29_45_9342.jpg
/home/pi/Desktop/images/15012025/05/29/image_15012025_05_29_55_10433.jpg
/home/pi/Desktop/images/15012025/05/29/image_15012025_05_30_05_9389.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329204661","1329204670","1329204658","1329204732","1329204665","1329204673"],"photo_ids_order":["1329204658","1329204661","1329204665","1329204670","1329204673","1329204732"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/36d6d80c0b32580e1bb910030e126811.jpg","text":"TemporaryFile(/tmp/multipartBody6075742135409716473asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969013326,"filename":"image_15012025_05_29_25_9513.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1b7bb82c2a5df1ed5f1a71f1073d5921.jpg","text":"TemporaryFile(/tmp/multipartBody6871638153973761055asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969013326,"filename":"image_15012025_05_29_45_9342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bb2084283f1b992d3e415cff5380f4d0.jpg","text":"TemporaryFile(/tmp/multipartBody9192494102319555428asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969013326,"filename":"image_15012025_05_29_16_10457.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b7b567368f42cd1c3735ebe38b962668.jpg","text":"TemporaryFile(/tmp/multipartBody4357835373257907292asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969013326,"filename":"image_15012025_05_30_05_9389.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fd7f24c260129dce7af648ed2aa1a9e2.jpg","text":"TemporaryFile(/tmp/multipartBody129180976131560290asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969013326,"filename":"image_15012025_05_29_35_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/21aad8cbf0fd87041e18c57feb6c3177.jpg","text":"TemporaryFile(/tmp/multipartBody6372721832438989625asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969013326,"filename":"image_15012025_05_29_55_10433.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329204665","file1":"1329204661","file0":"1329204658","file4":"1329204673","file5":"1329204732","file3":"1329204670"},"map_files_photo_id_array":[{"photo_id":"1329204732","filename":"file5"},{"photo_id":"1329204665","filename":"file2"},{"photo_id":"1329204673","filename":"file4"},{"photo_id":"1329204661","filename":"file1"},{"photo_id":"1329204658","filename":"file0"},{"photo_id":"1329204670","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329204661":["hashtag1","hashtag2"]},{"1329204670":["hashtag1","hashtag2"]},{"1329204658":["hashtag1","hashtag2"]},{"1329204732":["hashtag1","hashtag2"]},{"1329204665":["hashtag1","hashtag2"]},{"1329204673":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329204661, 1329204670, 1329204658, 1329204732, 1329204665, 1329204673)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.309916496276855 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 15 --only_old 0
2025-01-15 20:23:32.526169
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/30/image_15012025_05_30_15_10367.jpg', '/home/pi/Desktop/images/15012025/05/30/image_15012025_05_30_25_10431.jpg', '/home/pi/Desktop/images/15012025/05/30/image_15012025_05_30_35_9355.jpg', '/home/pi/Desktop/images/15012025/05/30/image_15012025_05_30_45_10338.jpg', '/home/pi/Desktop/images/15012025/05/30/image_15012025_05_30_55_10357.jpg', '/home/pi/Desktop/images/15012025/05/30/image_15012025_05_31_05_9354.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/30/image_15012025_05_30_15_10367.jpg
/home/pi/Desktop/images/15012025/05/30/image_15012025_05_30_25_10431.jpg
/home/pi/Desktop/images/15012025/05/30/image_15012025_05_30_35_9355.jpg
/home/pi/Desktop/images/15012025/05/30/image_15012025_05_30_45_10338.jpg
/home/pi/Desktop/images/15012025/05/30/image_15012025_05_30_55_10357.jpg
/home/pi/Desktop/images/15012025/05/30/image_15012025_05_31_05_9354.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329204775","1329204754","1329204771","1329204759","1329204764","1329204773"],"photo_ids_order":["1329204754","1329204759","1329204764","1329204771","1329204773","1329204775"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a06dbc3d03d2b1f1e6314f4092d84a66.jpg","text":"TemporaryFile(/tmp/multipartBody6665141603644929695asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969073528,"filename":"image_15012025_05_31_05_9354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cb4d63703280a80d91e8691c725c23ee.jpg","text":"TemporaryFile(/tmp/multipartBody3134537452563281742asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969073528,"filename":"image_15012025_05_30_15_10367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d1984b1afff82f81a8c3d2b46e2eb2cb.jpg","text":"TemporaryFile(/tmp/multipartBody2649736666865828078asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969073528,"filename":"image_15012025_05_30_45_10338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/542eaf68cab7326861f620fb088d1bc2.jpg","text":"TemporaryFile(/tmp/multipartBody4288285303354060392asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969073528,"filename":"image_15012025_05_30_25_10431.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fd2b0783adf5eace1ec313c2fde524da.jpg","text":"TemporaryFile(/tmp/multipartBody9136654502759637542asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969073528,"filename":"image_15012025_05_30_35_9355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e1aae76b175dc5a77e9a2c71d3b6ec5f.jpg","text":"TemporaryFile(/tmp/multipartBody9218543406754251025asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969073528,"filename":"image_15012025_05_30_55_10357.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329204764","file1":"1329204759","file0":"1329204754","file4":"1329204773","file5":"1329204775","file3":"1329204771"},"map_files_photo_id_array":[{"photo_id":"1329204775","filename":"file5"},{"photo_id":"1329204764","filename":"file2"},{"photo_id":"1329204773","filename":"file4"},{"photo_id":"1329204759","filename":"file1"},{"photo_id":"1329204754","filename":"file0"},{"photo_id":"1329204771","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329204775":["hashtag1","hashtag2"]},{"1329204754":["hashtag1","hashtag2"]},{"1329204771":["hashtag1","hashtag2"]},{"1329204759":["hashtag1","hashtag2"]},{"1329204764":["hashtag1","hashtag2"]},{"1329204773":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329204775, 1329204754, 1329204771, 1329204759, 1329204764, 1329204773)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.00504231452942 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 15 --only_old 0
2025-01-15 20:24:32.718901
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/31/image_15012025_05_31_15_10359.jpg', '/home/pi/Desktop/images/15012025/05/31/image_15012025_05_31_25_9457.jpg', '/home/pi/Desktop/images/15012025/05/31/image_15012025_05_31_35_10446.jpg', '/home/pi/Desktop/images/15012025/05/31/image_15012025_05_31_45_10343.jpg', '/home/pi/Desktop/images/15012025/05/31/image_15012025_05_31_55_9343.jpg', '/home/pi/Desktop/images/15012025/05/31/image_15012025_05_32_05_10442.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/31/image_15012025_05_31_15_10359.jpg
/home/pi/Desktop/images/15012025/05/31/image_15012025_05_31_25_9457.jpg
/home/pi/Desktop/images/15012025/05/31/image_15012025_05_31_35_10446.jpg
/home/pi/Desktop/images/15012025/05/31/image_15012025_05_31_45_10343.jpg
/home/pi/Desktop/images/15012025/05/31/image_15012025_05_31_55_9343.jpg
/home/pi/Desktop/images/15012025/05/31/image_15012025_05_32_05_10442.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329204853","1329204841","1329204835","1329204848","1329204827","1329204812"],"photo_ids_order":["1329204812","1329204827","1329204835","1329204841","1329204848","1329204853"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9e8202374c84fb8295f9be1bba434568.jpg","text":"TemporaryFile(/tmp/multipartBody6016401812789035208asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969133716,"filename":"image_15012025_05_32_05_10442.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/780454690b44dd982b9cc6a969682399.jpg","text":"TemporaryFile(/tmp/multipartBody5418691257174538342asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969133716,"filename":"image_15012025_05_31_45_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e9bf106363860df0d979390c035d30d6.jpg","text":"TemporaryFile(/tmp/multipartBody3548304902913444293asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969133716,"filename":"image_15012025_05_31_35_10446.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b98f0feb667aa0833a7c92c0288fe272.jpg","text":"TemporaryFile(/tmp/multipartBody2948724830029392039asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969133716,"filename":"image_15012025_05_31_55_9343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fcb3c9cb4740760a862d10d12184df2b.jpg","text":"TemporaryFile(/tmp/multipartBody3357299026580233558asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969133716,"filename":"image_15012025_05_31_25_9457.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ee8274fec116d79f1bc7eb3c47d380f8.jpg","text":"TemporaryFile(/tmp/multipartBody6796882876027037252asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969133716,"filename":"image_15012025_05_31_15_10359.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329204835","file1":"1329204827","file0":"1329204812","file4":"1329204848","file5":"1329204853","file3":"1329204841"},"map_files_photo_id_array":[{"photo_id":"1329204853","filename":"file5"},{"photo_id":"1329204835","filename":"file2"},{"photo_id":"1329204848","filename":"file4"},{"photo_id":"1329204827","filename":"file1"},{"photo_id":"1329204812","filename":"file0"},{"photo_id":"1329204841","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329204853":["hashtag1","hashtag2"]},{"1329204841":["hashtag1","hashtag2"]},{"1329204835":["hashtag1","hashtag2"]},{"1329204848":["hashtag1","hashtag2"]},{"1329204827":["hashtag1","hashtag2"]},{"1329204812":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329204853, 1329204841, 1329204835, 1329204848, 1329204827, 1329204812)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.288695096969604 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 15 --only_old 0
2025-01-15 20:25:32.940530
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/32/image_15012025_05_32_55_10477.jpg', '/home/pi/Desktop/images/15012025/05/32/image_15012025_05_33_05_10352.jpg', '/home/pi/Desktop/images/15012025/05/33/image_15012025_05_33_15_9368.jpg', '/home/pi/Desktop/images/15012025/05/33/image_15012025_05_33_25_10368.jpg', '/home/pi/Desktop/images/15012025/05/33/image_15012025_05_33_35_10348.jpg', '/home/pi/Desktop/images/15012025/05/33/image_15012025_05_33_45_9344.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/32/image_15012025_05_32_55_10477.jpg
/home/pi/Desktop/images/15012025/05/32/image_15012025_05_33_05_10352.jpg
/home/pi/Desktop/images/15012025/05/33/image_15012025_05_33_15_9368.jpg
/home/pi/Desktop/images/15012025/05/33/image_15012025_05_33_25_10368.jpg
/home/pi/Desktop/images/15012025/05/33/image_15012025_05_33_35_10348.jpg
/home/pi/Desktop/images/15012025/05/33/image_15012025_05_33_45_9344.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329204916","1329204897","1329204891","1329204885","1329204908","1329204917"],"photo_ids_order":["1329204885","1329204891","1329204897","1329204908","1329204916","1329204917"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bcbc6afdbaae98118293c6d3492b7034.jpg","text":"TemporaryFile(/tmp/multipartBody7434448448270883486asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969193928,"filename":"image_15012025_05_33_35_10348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/af8fb6446465f068d217b4da9f9185d9.jpg","text":"TemporaryFile(/tmp/multipartBody6467624152886288610asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969193928,"filename":"image_15012025_05_33_15_9368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/39da7e1be8d8442eb8415951745609d7.jpg","text":"TemporaryFile(/tmp/multipartBody5471700796630793007asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969193928,"filename":"image_15012025_05_33_05_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9a0f221aa06c1c67de43241833b765eb.jpg","text":"TemporaryFile(/tmp/multipartBody8646095676883174923asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969193928,"filename":"image_15012025_05_32_55_10477.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9914f50b455ce201684ab6ced49d43cb.jpg","text":"TemporaryFile(/tmp/multipartBody7504445081938952636asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969193928,"filename":"image_15012025_05_33_25_10368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f0637cd7b670267d9924af810e3d8ef5.jpg","text":"TemporaryFile(/tmp/multipartBody2686090798049358861asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969193928,"filename":"image_15012025_05_33_45_9344.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329204897","file1":"1329204891","file0":"1329204885","file4":"1329204916","file5":"1329204917","file3":"1329204908"},"map_files_photo_id_array":[{"photo_id":"1329204917","filename":"file5"},{"photo_id":"1329204897","filename":"file2"},{"photo_id":"1329204916","filename":"file4"},{"photo_id":"1329204891","filename":"file1"},{"photo_id":"1329204885","filename":"file0"},{"photo_id":"1329204908","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329204916":["hashtag1","hashtag2"]},{"1329204897":["hashtag1","hashtag2"]},{"1329204891":["hashtag1","hashtag2"]},{"1329204885":["hashtag1","hashtag2"]},{"1329204908":["hashtag1","hashtag2"]},{"1329204917":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329204916, 1329204897, 1329204891, 1329204885, 1329204908, 1329204917)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.05287957191467 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 15 --only_old 0
2025-01-15 20:26:33.139883
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/33/image_15012025_05_33_55_10367.jpg', '/home/pi/Desktop/images/15012025/05/34/image_15012025_05_34_15_10421.jpg', '/home/pi/Desktop/images/15012025/05/34/image_15012025_05_34_25_10358.jpg', '/home/pi/Desktop/images/15012025/05/34/image_15012025_05_34_35_9361.jpg', '/home/pi/Desktop/images/15012025/05/34/image_15012025_05_34_45_10429.jpg', '/home/pi/Desktop/images/15012025/05/34/image_15012025_05_34_55_10347.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/33/image_15012025_05_33_55_10367.jpg
/home/pi/Desktop/images/15012025/05/34/image_15012025_05_34_15_10421.jpg
/home/pi/Desktop/images/15012025/05/34/image_15012025_05_34_25_10358.jpg
/home/pi/Desktop/images/15012025/05/34/image_15012025_05_34_35_9361.jpg
/home/pi/Desktop/images/15012025/05/34/image_15012025_05_34_45_10429.jpg
/home/pi/Desktop/images/15012025/05/34/image_15012025_05_34_55_10347.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329204961","1329204946","1329204981","1329204951","1329204954","1329204942"],"photo_ids_order":["1329204942","1329204946","1329204951","1329204954","1329204961","1329204981"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/758c82d5a34ae5726366a9657b01ef9b.jpg","text":"TemporaryFile(/tmp/multipartBody4143857079099258111asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969254147,"filename":"image_15012025_05_34_45_10429.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fa3b7b069a4c418a4499c4d554c7aa7d.jpg","text":"TemporaryFile(/tmp/multipartBody3861988175464302791asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969254147,"filename":"image_15012025_05_34_15_10421.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/046b370edcb62fad06a7b79855f59b4e.jpg","text":"TemporaryFile(/tmp/multipartBody3348442310797586790asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969254147,"filename":"image_15012025_05_34_55_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5f302843a6860d3326dd3e9762fa1bd5.jpg","text":"TemporaryFile(/tmp/multipartBody6846091617791504439asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969254147,"filename":"image_15012025_05_34_25_10358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7102cafe2933cbc8c7e6523595c1229b.jpg","text":"TemporaryFile(/tmp/multipartBody2610570131614538473asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969254147,"filename":"image_15012025_05_34_35_9361.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e8f7412f9860bb286e0e45235dccca4e.jpg","text":"TemporaryFile(/tmp/multipartBody8816360789123353683asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969254147,"filename":"image_15012025_05_33_55_10367.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329204951","file1":"1329204946","file0":"1329204942","file4":"1329204961","file5":"1329204981","file3":"1329204954"},"map_files_photo_id_array":[{"photo_id":"1329204981","filename":"file5"},{"photo_id":"1329204951","filename":"file2"},{"photo_id":"1329204961","filename":"file4"},{"photo_id":"1329204946","filename":"file1"},{"photo_id":"1329204942","filename":"file0"},{"photo_id":"1329204954","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329204961":["hashtag1","hashtag2"]},{"1329204946":["hashtag1","hashtag2"]},{"1329204981":["hashtag1","hashtag2"]},{"1329204951":["hashtag1","hashtag2"]},{"1329204954":["hashtag1","hashtag2"]},{"1329204942":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329204961, 1329204946, 1329204981, 1329204951, 1329204954, 1329204942)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.139049768447876 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 15 --only_old 0
2025-01-15 20:27:32.298415
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/34/image_15012025_05_35_05_9342.jpg', '/home/pi/Desktop/images/15012025/05/35/image_15012025_05_35_15_10368.jpg', '/home/pi/Desktop/images/15012025/05/35/image_15012025_05_35_25_9429.jpg', '/home/pi/Desktop/images/15012025/05/35/image_15012025_05_35_35_10397.jpg', '/home/pi/Desktop/images/15012025/05/35/image_15012025_05_35_45_10348.jpg', '/home/pi/Desktop/images/15012025/05/35/image_15012025_05_35_55_9339.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/34/image_15012025_05_35_05_9342.jpg
/home/pi/Desktop/images/15012025/05/35/image_15012025_05_35_15_10368.jpg
/home/pi/Desktop/images/15012025/05/35/image_15012025_05_35_25_9429.jpg
/home/pi/Desktop/images/15012025/05/35/image_15012025_05_35_35_10397.jpg
/home/pi/Desktop/images/15012025/05/35/image_15012025_05_35_45_10348.jpg
/home/pi/Desktop/images/15012025/05/35/image_15012025_05_35_55_9339.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329205365","1329206129","1329205742","1329205652","1329205508","1329205948"],"photo_ids_order":["1329205365","1329205508","1329205652","1329205742","1329205948","1329206129"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a6326f64c1301850629b6943a7c1d670.jpg","text":"TemporaryFile(/tmp/multipartBody675590978537896596asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969313293,"filename":"image_15012025_05_35_05_9342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7ef6edf9f65d3485b2ab69f11be33a7d.jpg","text":"TemporaryFile(/tmp/multipartBody1144461785762992859asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969313293,"filename":"image_15012025_05_35_55_9339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3e25218bd358d9679b4f8ede30dd90bc.jpg","text":"TemporaryFile(/tmp/multipartBody5188768722260284192asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969313293,"filename":"image_15012025_05_35_35_10397.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e284ec653bb1422ed13b097cfdcc98e6.jpg","text":"TemporaryFile(/tmp/multipartBody8182425642622004564asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969313293,"filename":"image_15012025_05_35_25_9429.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8b640693e755bd895af417b187d4f614.jpg","text":"TemporaryFile(/tmp/multipartBody7236462179337399362asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969313293,"filename":"image_15012025_05_35_15_10368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/43cb6875716e7d1d26a444a7d58b27ac.jpg","text":"TemporaryFile(/tmp/multipartBody6989525153581519969asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969313293,"filename":"image_15012025_05_35_45_10348.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329205652","file1":"1329205508","file0":"1329205365","file4":"1329205948","file5":"1329206129","file3":"1329205742"},"map_files_photo_id_array":[{"photo_id":"1329206129","filename":"file5"},{"photo_id":"1329205652","filename":"file2"},{"photo_id":"1329205948","filename":"file4"},{"photo_id":"1329205508","filename":"file1"},{"photo_id":"1329205365","filename":"file0"},{"photo_id":"1329205742","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329205365":["hashtag1","hashtag2"]},{"1329206129":["hashtag1","hashtag2"]},{"1329205742":["hashtag1","hashtag2"]},{"1329205652":["hashtag1","hashtag2"]},{"1329205508":["hashtag1","hashtag2"]},{"1329205948":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329205365, 1329206129, 1329205742, 1329205652, 1329205508, 1329205948)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.24217247962952 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 15 --only_old 0
2025-01-15 20:28:32.622660
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/35/image_15012025_05_36_05_10465.jpg', '/home/pi/Desktop/images/15012025/05/36/image_15012025_05_36_16_10362.jpg', '/home/pi/Desktop/images/15012025/05/36/image_15012025_05_36_25_9352.jpg', '/home/pi/Desktop/images/15012025/05/36/image_15012025_05_36_35_10364.jpg', '/home/pi/Desktop/images/15012025/05/36/image_15012025_05_36_45_9345.jpg', '/home/pi/Desktop/images/15012025/05/36/image_15012025_05_36_55_10409.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/35/image_15012025_05_36_05_10465.jpg
/home/pi/Desktop/images/15012025/05/36/image_15012025_05_36_16_10362.jpg
/home/pi/Desktop/images/15012025/05/36/image_15012025_05_36_25_9352.jpg
/home/pi/Desktop/images/15012025/05/36/image_15012025_05_36_35_10364.jpg
/home/pi/Desktop/images/15012025/05/36/image_15012025_05_36_45_9345.jpg
/home/pi/Desktop/images/15012025/05/36/image_15012025_05_36_55_10409.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329206223","1329206211","1329206231","1329206201","1329206218","1329206215"],"photo_ids_order":["1329206201","1329206211","1329206215","1329206218","1329206223","1329206231"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4dd927bb13f7a2127a8e1e2b96d8c6ed.jpg","text":"TemporaryFile(/tmp/multipartBody526974241665022998asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969373743,"filename":"image_15012025_05_36_45_9345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6565b9770d63df363c2581af071e37a9.jpg","text":"TemporaryFile(/tmp/multipartBody2379259529208971985asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969373743,"filename":"image_15012025_05_36_16_10362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/65df4bcaaf9b338d539e8a382d73f1bb.jpg","text":"TemporaryFile(/tmp/multipartBody4848751094750426534asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969373743,"filename":"image_15012025_05_36_55_10409.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ea3683e671bbd44dc01d61c6f55cb609.jpg","text":"TemporaryFile(/tmp/multipartBody2720252136995512153asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969373743,"filename":"image_15012025_05_36_05_10465.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7bf719e8fcbe9f83ad0f30e57c38510f.jpg","text":"TemporaryFile(/tmp/multipartBody6650037278233511720asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969373743,"filename":"image_15012025_05_36_35_10364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/91aacccb1cb4546e878f44d5e2bcdef3.jpg","text":"TemporaryFile(/tmp/multipartBody7537940157024899345asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969373743,"filename":"image_15012025_05_36_25_9352.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329206215","file1":"1329206211","file0":"1329206201","file4":"1329206223","file5":"1329206231","file3":"1329206218"},"map_files_photo_id_array":[{"photo_id":"1329206231","filename":"file5"},{"photo_id":"1329206215","filename":"file2"},{"photo_id":"1329206223","filename":"file4"},{"photo_id":"1329206211","filename":"file1"},{"photo_id":"1329206201","filename":"file0"},{"photo_id":"1329206218","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329206223":["hashtag1","hashtag2"]},{"1329206211":["hashtag1","hashtag2"]},{"1329206231":["hashtag1","hashtag2"]},{"1329206201":["hashtag1","hashtag2"]},{"1329206218":["hashtag1","hashtag2"]},{"1329206215":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329206223, 1329206211, 1329206231, 1329206201, 1329206218, 1329206215)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.60004234313965 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 15 --only_old 0
2025-01-15 20:29:32.957745
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/36/image_15012025_05_37_05_10394.jpg', '/home/pi/Desktop/images/15012025/05/37/image_15012025_05_37_35_9342.jpg', '/home/pi/Desktop/images/15012025/05/37/image_15012025_05_37_45_10395.jpg', '/home/pi/Desktop/images/15012025/05/37/image_15012025_05_37_55_10366.jpg', '/home/pi/Desktop/images/15012025/05/37/image_15012025_05_38_05_9349.jpg', '/home/pi/Desktop/images/15012025/05/38/image_15012025_05_38_15_10451.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/36/image_15012025_05_37_05_10394.jpg
/home/pi/Desktop/images/15012025/05/37/image_15012025_05_37_35_9342.jpg
/home/pi/Desktop/images/15012025/05/37/image_15012025_05_37_45_10395.jpg
/home/pi/Desktop/images/15012025/05/37/image_15012025_05_37_55_10366.jpg
/home/pi/Desktop/images/15012025/05/37/image_15012025_05_38_05_9349.jpg
/home/pi/Desktop/images/15012025/05/38/image_15012025_05_38_15_10451.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329206625","1329206619","1329206613","1329206684","1329206689","1329206513"],"photo_ids_order":["1329206513","1329206613","1329206619","1329206625","1329206684","1329206689"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8569b044c5a90b48eef158a8fa1012ed.jpg","text":"TemporaryFile(/tmp/multipartBody7509206484065466253asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969433959,"filename":"image_15012025_05_37_55_10366.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9a026d30b177f7824c68fbe4ec4b9368.jpg","text":"TemporaryFile(/tmp/multipartBody879912379178306642asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969433959,"filename":"image_15012025_05_37_45_10395.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/895f3ce46c215b8543ffb24ae462d1fa.jpg","text":"TemporaryFile(/tmp/multipartBody3490147344656665872asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969433959,"filename":"image_15012025_05_37_35_9342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6bd80796bc7665f31276282d1c429d10.jpg","text":"TemporaryFile(/tmp/multipartBody1176614274371468248asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969433959,"filename":"image_15012025_05_38_05_9349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/539966bf68452f4e93088acf502bb980.jpg","text":"TemporaryFile(/tmp/multipartBody4346028512361022080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969433959,"filename":"image_15012025_05_38_15_10451.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/714d4e1556fa289f4216378f395b6689.jpg","text":"TemporaryFile(/tmp/multipartBody7041459704391454581asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969433959,"filename":"image_15012025_05_37_05_10394.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329206619","file1":"1329206613","file0":"1329206513","file4":"1329206684","file5":"1329206689","file3":"1329206625"},"map_files_photo_id_array":[{"photo_id":"1329206689","filename":"file5"},{"photo_id":"1329206619","filename":"file2"},{"photo_id":"1329206684","filename":"file4"},{"photo_id":"1329206613","filename":"file1"},{"photo_id":"1329206513","filename":"file0"},{"photo_id":"1329206625","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329206625":["hashtag1","hashtag2"]},{"1329206619":["hashtag1","hashtag2"]},{"1329206613":["hashtag1","hashtag2"]},{"1329206684":["hashtag1","hashtag2"]},{"1329206689":["hashtag1","hashtag2"]},{"1329206513":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329206625, 1329206619, 1329206613, 1329206684, 1329206689, 1329206513)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 48.735626220703125 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 15 --only_old 0
2025-01-15 20:30:33.009587
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/38/image_15012025_05_38_26_10367.jpg', '/home/pi/Desktop/images/15012025/05/38/image_15012025_05_38_35_9344.jpg', '/home/pi/Desktop/images/15012025/05/38/image_15012025_05_38_55_9322.jpg', '/home/pi/Desktop/images/15012025/05/38/image_15012025_05_39_05_10484.jpg', '/home/pi/Desktop/images/15012025/05/39/image_15012025_05_39_15_10352.jpg', '/home/pi/Desktop/images/15012025/05/39/image_15012025_05_39_25_9337.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/38/image_15012025_05_38_26_10367.jpg
/home/pi/Desktop/images/15012025/05/38/image_15012025_05_38_35_9344.jpg
/home/pi/Desktop/images/15012025/05/38/image_15012025_05_38_55_9322.jpg
/home/pi/Desktop/images/15012025/05/38/image_15012025_05_39_05_10484.jpg
/home/pi/Desktop/images/15012025/05/39/image_15012025_05_39_15_10352.jpg
/home/pi/Desktop/images/15012025/05/39/image_15012025_05_39_25_9337.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.5931217670440674 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
2025-01-15 20:30:43.011782
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/38/image_15012025_05_38_26_10367.jpg', '/home/pi/Desktop/images/15012025/05/38/image_15012025_05_38_35_9344.jpg', '/home/pi/Desktop/images/15012025/05/38/image_15012025_05_38_55_9322.jpg', '/home/pi/Desktop/images/15012025/05/38/image_15012025_05_39_05_10484.jpg', '/home/pi/Desktop/images/15012025/05/39/image_15012025_05_39_15_10352.jpg', '/home/pi/Desktop/images/15012025/05/39/image_15012025_05_39_25_9337.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/38/image_15012025_05_38_26_10367.jpg
/home/pi/Desktop/images/15012025/05/38/image_15012025_05_38_35_9344.jpg
/home/pi/Desktop/images/15012025/05/38/image_15012025_05_38_55_9322.jpg
/home/pi/Desktop/images/15012025/05/38/image_15012025_05_39_05_10484.jpg
/home/pi/Desktop/images/15012025/05/39/image_15012025_05_39_15_10352.jpg
/home/pi/Desktop/images/15012025/05/39/image_15012025_05_39_25_9337.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329206976","1329206972","1329206966","1329206969","1329206954","1329206933"],"photo_ids_order":["1329206933","1329206954","1329206966","1329206969","1329206972","1329206976"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e41591c244a038c52a592629860fa915.jpg","text":"TemporaryFile(/tmp/multipartBody7591722812154839709asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969503916,"filename":"image_15012025_05_39_25_9337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d9e580a4e3bf360b9659860ac2100189.jpg","text":"TemporaryFile(/tmp/multipartBody3378215756774166939asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969503916,"filename":"image_15012025_05_39_15_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e43648a6bbb0900de411997967db29ec.jpg","text":"TemporaryFile(/tmp/multipartBody3829337932109708459asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969503916,"filename":"image_15012025_05_38_55_9322.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1900676f3eb2416fe38d5477c5993970.jpg","text":"TemporaryFile(/tmp/multipartBody6893159149174917660asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969503916,"filename":"image_15012025_05_39_05_10484.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a70fb70127c7bbd2cab52901503d986d.jpg","text":"TemporaryFile(/tmp/multipartBody8435069760584459146asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969503916,"filename":"image_15012025_05_38_35_9344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e810154de43ecb2e582783e03759e6ee.jpg","text":"TemporaryFile(/tmp/multipartBody2032657783382102781asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969503916,"filename":"image_15012025_05_38_26_10367.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329206966","file1":"1329206954","file0":"1329206933","file4":"1329206972","file5":"1329206976","file3":"1329206969"},"map_files_photo_id_array":[{"photo_id":"1329206976","filename":"file5"},{"photo_id":"1329206966","filename":"file2"},{"photo_id":"1329206972","filename":"file4"},{"photo_id":"1329206954","filename":"file1"},{"photo_id":"1329206933","filename":"file0"},{"photo_id":"1329206969","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329206976":["hashtag1","hashtag2"]},{"1329206972":["hashtag1","hashtag2"]},{"1329206966":["hashtag1","hashtag2"]},{"1329206969":["hashtag1","hashtag2"]},{"1329206954":["hashtag1","hashtag2"]},{"1329206933":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329206976, 1329206972, 1329206966, 1329206969, 1329206954, 1329206933)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.26667308807373 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 15 --only_old 0
2025-01-15 20:31:32.259114
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/39/image_15012025_05_39_35_10397.jpg', '/home/pi/Desktop/images/15012025/05/39/image_15012025_05_39_55_10346.jpg', '/home/pi/Desktop/images/15012025/05/39/image_15012025_05_40_05_10351.jpg', '/home/pi/Desktop/images/15012025/05/40/image_15012025_05_40_15_9329.jpg', '/home/pi/Desktop/images/15012025/05/40/image_15012025_05_40_25_10486.jpg', '/home/pi/Desktop/images/15012025/05/40/image_15012025_05_40_35_10335.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/39/image_15012025_05_39_35_10397.jpg
/home/pi/Desktop/images/15012025/05/39/image_15012025_05_39_55_10346.jpg
/home/pi/Desktop/images/15012025/05/39/image_15012025_05_40_05_10351.jpg
/home/pi/Desktop/images/15012025/05/40/image_15012025_05_40_15_9329.jpg
/home/pi/Desktop/images/15012025/05/40/image_15012025_05_40_25_10486.jpg
/home/pi/Desktop/images/15012025/05/40/image_15012025_05_40_35_10335.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329207021","1329206988","1329207012","1329207020","1329207017","1329206997"],"photo_ids_order":["1329206988","1329206997","1329207012","1329207017","1329207020","1329207021"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0df1c2fbc00e9d21749d9e80e5b94cb3.jpg","text":"TemporaryFile(/tmp/multipartBody3869785956624272649asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969553287,"filename":"image_15012025_05_40_35_10335.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/50ed5f2e8ff1eca07d034fa4fee35f00.jpg","text":"TemporaryFile(/tmp/multipartBody190665789646821775asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969553287,"filename":"image_15012025_05_39_35_10397.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/125e5a5766be271c2420b87887eb8b59.jpg","text":"TemporaryFile(/tmp/multipartBody967635352652938783asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969553287,"filename":"image_15012025_05_40_05_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6de549a1c45f93077f3f74f691b903c3.jpg","text":"TemporaryFile(/tmp/multipartBody320372699545273094asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969553287,"filename":"image_15012025_05_40_25_10486.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2cd986b8616fd1922f7feaa36bc1002d.jpg","text":"TemporaryFile(/tmp/multipartBody2167166129089501479asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969553287,"filename":"image_15012025_05_40_15_9329.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0b3cec8479b4b670af7ba80747eeb361.jpg","text":"TemporaryFile(/tmp/multipartBody4793637668526978581asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969553287,"filename":"image_15012025_05_39_55_10346.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329207012","file1":"1329206997","file0":"1329206988","file4":"1329207020","file5":"1329207021","file3":"1329207017"},"map_files_photo_id_array":[{"photo_id":"1329207021","filename":"file5"},{"photo_id":"1329207012","filename":"file2"},{"photo_id":"1329207020","filename":"file4"},{"photo_id":"1329206997","filename":"file1"},{"photo_id":"1329206988","filename":"file0"},{"photo_id":"1329207017","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329207021":["hashtag1","hashtag2"]},{"1329206988":["hashtag1","hashtag2"]},{"1329207012":["hashtag1","hashtag2"]},{"1329207020":["hashtag1","hashtag2"]},{"1329207017":["hashtag1","hashtag2"]},{"1329206997":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329207021, 1329206988, 1329207012, 1329207020, 1329207017, 1329206997)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.87430024147034 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 15 --only_old 0
2025-01-15 20:32:32.640979
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/40/image_15012025_05_40_45_9332.jpg', '/home/pi/Desktop/images/15012025/05/40/image_15012025_05_40_55_10362.jpg', '/home/pi/Desktop/images/15012025/05/40/image_15012025_05_41_05_10352.jpg', '/home/pi/Desktop/images/15012025/05/41/image_15012025_05_41_15_9353.jpg', '/home/pi/Desktop/images/15012025/05/41/image_15012025_05_41_25_10379.jpg', '/home/pi/Desktop/images/15012025/05/41/image_15012025_05_41_35_9378.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/40/image_15012025_05_40_45_9332.jpg
/home/pi/Desktop/images/15012025/05/40/image_15012025_05_40_55_10362.jpg
/home/pi/Desktop/images/15012025/05/40/image_15012025_05_41_05_10352.jpg
/home/pi/Desktop/images/15012025/05/41/image_15012025_05_41_15_9353.jpg
/home/pi/Desktop/images/15012025/05/41/image_15012025_05_41_25_10379.jpg
/home/pi/Desktop/images/15012025/05/41/image_15012025_05_41_35_9378.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329207050","1329207032","1329207041","1329207037","1329207045","1329207048"],"photo_ids_order":["1329207032","1329207037","1329207041","1329207045","1329207048","1329207050"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c4ead53088de66b5cf456ebfc33a3b32.jpg","text":"TemporaryFile(/tmp/multipartBody9114124202428763721asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969613640,"filename":"image_15012025_05_41_35_9378.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/012434aa1f7fcfd48d063bcc56d2aa56.jpg","text":"TemporaryFile(/tmp/multipartBody6750822000773997761asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969613640,"filename":"image_15012025_05_40_45_9332.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e127663eba7cad10748dec2d2a55b872.jpg","text":"TemporaryFile(/tmp/multipartBody1280678782004156457asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969613640,"filename":"image_15012025_05_41_05_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c4f32c71cd88af5461c6d4407c751d05.jpg","text":"TemporaryFile(/tmp/multipartBody3449739121400591956asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969613640,"filename":"image_15012025_05_40_55_10362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7a6c099948dc736b4caa673d55917b76.jpg","text":"TemporaryFile(/tmp/multipartBody2277134974610332476asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969613640,"filename":"image_15012025_05_41_15_9353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/70a1b4caa7f6c41e557e5ca83a91bbb0.jpg","text":"TemporaryFile(/tmp/multipartBody6999636339499710544asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969613640,"filename":"image_15012025_05_41_25_10379.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329207041","file1":"1329207037","file0":"1329207032","file4":"1329207048","file5":"1329207050","file3":"1329207045"},"map_files_photo_id_array":[{"photo_id":"1329207050","filename":"file5"},{"photo_id":"1329207041","filename":"file2"},{"photo_id":"1329207048","filename":"file4"},{"photo_id":"1329207037","filename":"file1"},{"photo_id":"1329207032","filename":"file0"},{"photo_id":"1329207045","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329207050":["hashtag1","hashtag2"]},{"1329207032":["hashtag1","hashtag2"]},{"1329207041":["hashtag1","hashtag2"]},{"1329207037":["hashtag1","hashtag2"]},{"1329207045":["hashtag1","hashtag2"]},{"1329207048":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329207050, 1329207032, 1329207041, 1329207037, 1329207045, 1329207048)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.84836935997009 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 15 --only_old 0
2025-01-15 20:33:32.754800
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/41/image_15012025_05_41_45_10522.jpg', '/home/pi/Desktop/images/15012025/05/41/image_15012025_05_41_55_10347.jpg', '/home/pi/Desktop/images/15012025/05/41/image_15012025_05_42_05_9347.jpg', '/home/pi/Desktop/images/15012025/05/42/image_15012025_05_42_15_10395.jpg', '/home/pi/Desktop/images/15012025/05/42/image_15012025_05_42_26_10355.jpg', '/home/pi/Desktop/images/15012025/05/42/image_15012025_05_42_35_9355.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/41/image_15012025_05_41_45_10522.jpg
/home/pi/Desktop/images/15012025/05/41/image_15012025_05_41_55_10347.jpg
/home/pi/Desktop/images/15012025/05/41/image_15012025_05_42_05_9347.jpg
/home/pi/Desktop/images/15012025/05/42/image_15012025_05_42_15_10395.jpg
/home/pi/Desktop/images/15012025/05/42/image_15012025_05_42_26_10355.jpg
/home/pi/Desktop/images/15012025/05/42/image_15012025_05_42_35_9355.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.5932044982910156 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
2025-01-15 20:33:42.810168
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/41/image_15012025_05_41_45_10522.jpg', '/home/pi/Desktop/images/15012025/05/41/image_15012025_05_41_55_10347.jpg', '/home/pi/Desktop/images/15012025/05/41/image_15012025_05_42_05_9347.jpg', '/home/pi/Desktop/images/15012025/05/42/image_15012025_05_42_15_10395.jpg', '/home/pi/Desktop/images/15012025/05/42/image_15012025_05_42_26_10355.jpg', '/home/pi/Desktop/images/15012025/05/42/image_15012025_05_42_35_9355.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/41/image_15012025_05_41_45_10522.jpg
/home/pi/Desktop/images/15012025/05/41/image_15012025_05_41_55_10347.jpg
/home/pi/Desktop/images/15012025/05/41/image_15012025_05_42_05_9347.jpg
/home/pi/Desktop/images/15012025/05/42/image_15012025_05_42_15_10395.jpg
/home/pi/Desktop/images/15012025/05/42/image_15012025_05_42_26_10355.jpg
/home/pi/Desktop/images/15012025/05/42/image_15012025_05_42_35_9355.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329207117","1329207254","1329207278","1329207283","1329207142","1329207147"],"photo_ids_order":["1329207117","1329207142","1329207147","1329207254","1329207278","1329207283"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ce06cace736265d0727e24b877ce97c1.jpg","text":"TemporaryFile(/tmp/multipartBody3332530155618810885asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969683797,"filename":"image_15012025_05_41_45_10522.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/66b115fe698f15b9089686cb9d50358c.jpg","text":"TemporaryFile(/tmp/multipartBody6154355837417080427asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969683797,"filename":"image_15012025_05_42_15_10395.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0d1c1bb3ef6e1a1c937d3054b37838f9.jpg","text":"TemporaryFile(/tmp/multipartBody2615050088553065178asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969683797,"filename":"image_15012025_05_42_26_10355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/df0c418aba712a134bc0150ee6298925.jpg","text":"TemporaryFile(/tmp/multipartBody1643073064410617593asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969683797,"filename":"image_15012025_05_42_35_9355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ab767e3dc6fed272881fed929237aa97.jpg","text":"TemporaryFile(/tmp/multipartBody4134038614561946916asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969683797,"filename":"image_15012025_05_41_55_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/92296e351eeda84e46724671d88cdb11.jpg","text":"TemporaryFile(/tmp/multipartBody3777611751654685206asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969683797,"filename":"image_15012025_05_42_05_9347.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329207147","file1":"1329207142","file0":"1329207117","file4":"1329207278","file5":"1329207283","file3":"1329207254"},"map_files_photo_id_array":[{"photo_id":"1329207283","filename":"file5"},{"photo_id":"1329207147","filename":"file2"},{"photo_id":"1329207278","filename":"file4"},{"photo_id":"1329207142","filename":"file1"},{"photo_id":"1329207117","filename":"file0"},{"photo_id":"1329207254","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329207117":["hashtag1","hashtag2"]},{"1329207254":["hashtag1","hashtag2"]},{"1329207278":["hashtag1","hashtag2"]},{"1329207283":["hashtag1","hashtag2"]},{"1329207142":["hashtag1","hashtag2"]},{"1329207147":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329207117, 1329207254, 1329207278, 1329207283, 1329207142, 1329207147)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.498311281204224 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 15 --only_old 0
2025-01-15 20:34:32.918677
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/42/image_15012025_05_43_05_10449.jpg', '/home/pi/Desktop/images/15012025/05/43/image_15012025_05_43_16_10348.jpg', '/home/pi/Desktop/images/15012025/05/43/image_15012025_05_43_25_9342.jpg', '/home/pi/Desktop/images/15012025/05/43/image_15012025_05_43_35_10424.jpg', '/home/pi/Desktop/images/15012025/05/43/image_15012025_05_43_45_9344.jpg', '/home/pi/Desktop/images/15012025/05/43/image_15012025_05_43_55_10437.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/42/image_15012025_05_43_05_10449.jpg
/home/pi/Desktop/images/15012025/05/43/image_15012025_05_43_16_10348.jpg
/home/pi/Desktop/images/15012025/05/43/image_15012025_05_43_25_9342.jpg
/home/pi/Desktop/images/15012025/05/43/image_15012025_05_43_35_10424.jpg
/home/pi/Desktop/images/15012025/05/43/image_15012025_05_43_45_9344.jpg
/home/pi/Desktop/images/15012025/05/43/image_15012025_05_43_55_10437.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329207312","1329207309","1329207299","1329207320","1329207305","1329207294"],"photo_ids_order":["1329207294","1329207299","1329207305","1329207309","1329207312","1329207320"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9b7b79826fa086bd1cbc55629c927994.jpg","text":"TemporaryFile(/tmp/multipartBody4703535681491126237asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969733913,"filename":"image_15012025_05_43_45_9344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/26fb18d731c2659f5f66eaaaa9092035.jpg","text":"TemporaryFile(/tmp/multipartBody830343052728331945asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969733913,"filename":"image_15012025_05_43_35_10424.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/16beef2b83d57088aba1a97b73c36f73.jpg","text":"TemporaryFile(/tmp/multipartBody5389283538662142217asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969733913,"filename":"image_15012025_05_43_16_10348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ded191e47640a9984e1056df3187cfb4.jpg","text":"TemporaryFile(/tmp/multipartBody8249046453373939033asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969733913,"filename":"image_15012025_05_43_55_10437.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2eae5a0f162ec4d02cfdc2f4a8752ee5.jpg","text":"TemporaryFile(/tmp/multipartBody7361241020491977469asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969733913,"filename":"image_15012025_05_43_25_9342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0ed7ef2479063adf88dfac956ca3f2ce.jpg","text":"TemporaryFile(/tmp/multipartBody8078839557149773754asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969733913,"filename":"image_15012025_05_43_05_10449.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329207305","file1":"1329207299","file0":"1329207294","file4":"1329207312","file5":"1329207320","file3":"1329207309"},"map_files_photo_id_array":[{"photo_id":"1329207320","filename":"file5"},{"photo_id":"1329207305","filename":"file2"},{"photo_id":"1329207312","filename":"file4"},{"photo_id":"1329207299","filename":"file1"},{"photo_id":"1329207294","filename":"file0"},{"photo_id":"1329207309","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329207312":["hashtag1","hashtag2"]},{"1329207309":["hashtag1","hashtag2"]},{"1329207299":["hashtag1","hashtag2"]},{"1329207320":["hashtag1","hashtag2"]},{"1329207305":["hashtag1","hashtag2"]},{"1329207294":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329207312, 1329207309, 1329207299, 1329207320, 1329207305, 1329207294)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.787113428115845 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 15 --only_old 0
2025-01-15 20:35:32.216114
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/43/image_15012025_05_44_05_10373.jpg', '/home/pi/Desktop/images/15012025/05/44/image_15012025_05_44_15_9357.jpg', '/home/pi/Desktop/images/15012025/05/44/image_15012025_05_44_25_10470.jpg', '/home/pi/Desktop/images/15012025/05/44/image_15012025_05_44_35_9341.jpg', '/home/pi/Desktop/images/15012025/05/44/image_15012025_05_44_45_10388.jpg', '/home/pi/Desktop/images/15012025/05/44/image_15012025_05_44_55_10367.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/43/image_15012025_05_44_05_10373.jpg
/home/pi/Desktop/images/15012025/05/44/image_15012025_05_44_15_9357.jpg
/home/pi/Desktop/images/15012025/05/44/image_15012025_05_44_25_10470.jpg
/home/pi/Desktop/images/15012025/05/44/image_15012025_05_44_35_9341.jpg
/home/pi/Desktop/images/15012025/05/44/image_15012025_05_44_45_10388.jpg
/home/pi/Desktop/images/15012025/05/44/image_15012025_05_44_55_10367.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329207341","1329207335","1329207344","1329207338","1329207346","1329207345"],"photo_ids_order":["1329207335","1329207338","1329207341","1329207344","1329207345","1329207346"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0c4dd30c00a13db1196cc04ef03cc738.jpg","text":"TemporaryFile(/tmp/multipartBody5933164471511753844asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969793257,"filename":"image_15012025_05_44_25_10470.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/55c3a6b27d3391e77da740f488d97448.jpg","text":"TemporaryFile(/tmp/multipartBody3816154005598182379asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969793257,"filename":"image_15012025_05_44_05_10373.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5da67e0df039dc20ce52b645bfacc2a5.jpg","text":"TemporaryFile(/tmp/multipartBody9124664068318500360asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969793257,"filename":"image_15012025_05_44_35_9341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b6c7830d7bfc2728470454d2f11430d4.jpg","text":"TemporaryFile(/tmp/multipartBody8866813028347918342asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969793257,"filename":"image_15012025_05_44_15_9357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/553e2a48e12f92851fdf733c0a0ef15b.jpg","text":"TemporaryFile(/tmp/multipartBody7260898349933675654asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969793257,"filename":"image_15012025_05_44_55_10367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4f5e548ff3a12f00c6158276c037a16d.jpg","text":"TemporaryFile(/tmp/multipartBody6211754499853401543asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969793257,"filename":"image_15012025_05_44_45_10388.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329207341","file1":"1329207338","file0":"1329207335","file4":"1329207345","file5":"1329207346","file3":"1329207344"},"map_files_photo_id_array":[{"photo_id":"1329207346","filename":"file5"},{"photo_id":"1329207341","filename":"file2"},{"photo_id":"1329207345","filename":"file4"},{"photo_id":"1329207338","filename":"file1"},{"photo_id":"1329207335","filename":"file0"},{"photo_id":"1329207344","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329207341":["hashtag1","hashtag2"]},{"1329207335":["hashtag1","hashtag2"]},{"1329207344":["hashtag1","hashtag2"]},{"1329207338":["hashtag1","hashtag2"]},{"1329207346":["hashtag1","hashtag2"]},{"1329207345":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329207341, 1329207335, 1329207344, 1329207338, 1329207346, 1329207345)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.401535749435425 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 15 --only_old 0
2025-01-15 20:36:32.655647
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/44/image_15012025_05_45_05_9347.jpg', '/home/pi/Desktop/images/15012025/05/45/image_15012025_05_45_15_10377.jpg', '/home/pi/Desktop/images/15012025/05/45/image_15012025_05_45_25_10362.jpg', '/home/pi/Desktop/images/15012025/05/45/image_15012025_05_45_35_9351.jpg', '/home/pi/Desktop/images/15012025/05/45/image_15012025_05_45_45_10351.jpg', '/home/pi/Desktop/images/15012025/05/45/image_15012025_05_45_55_10345.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/44/image_15012025_05_45_05_9347.jpg
/home/pi/Desktop/images/15012025/05/45/image_15012025_05_45_15_10377.jpg
/home/pi/Desktop/images/15012025/05/45/image_15012025_05_45_25_10362.jpg
/home/pi/Desktop/images/15012025/05/45/image_15012025_05_45_35_9351.jpg
/home/pi/Desktop/images/15012025/05/45/image_15012025_05_45_45_10351.jpg
/home/pi/Desktop/images/15012025/05/45/image_15012025_05_45_55_10345.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6332664489746094 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
2025-01-15 20:36:42.586921
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/44/image_15012025_05_45_05_9347.jpg', '/home/pi/Desktop/images/15012025/05/45/image_15012025_05_45_15_10377.jpg', '/home/pi/Desktop/images/15012025/05/45/image_15012025_05_45_25_10362.jpg', '/home/pi/Desktop/images/15012025/05/45/image_15012025_05_45_35_9351.jpg', '/home/pi/Desktop/images/15012025/05/45/image_15012025_05_45_45_10351.jpg', '/home/pi/Desktop/images/15012025/05/45/image_15012025_05_45_55_10345.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/44/image_15012025_05_45_05_9347.jpg
/home/pi/Desktop/images/15012025/05/45/image_15012025_05_45_15_10377.jpg
/home/pi/Desktop/images/15012025/05/45/image_15012025_05_45_25_10362.jpg
/home/pi/Desktop/images/15012025/05/45/image_15012025_05_45_35_9351.jpg
/home/pi/Desktop/images/15012025/05/45/image_15012025_05_45_45_10351.jpg
/home/pi/Desktop/images/15012025/05/45/image_15012025_05_45_55_10345.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329207374","1329207542","1329207397","1329207385","1329207442","1329207390"],"photo_ids_order":["1329207374","1329207385","1329207390","1329207397","1329207442","1329207542"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/08fc7828bc6e63847662f098ffa75c64.jpg","text":"TemporaryFile(/tmp/multipartBody2265906459358597494asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969863503,"filename":"image_15012025_05_45_05_9347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f83eb37ca35f05f9cc39dc988674de9f.jpg","text":"TemporaryFile(/tmp/multipartBody4848485330584972453asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969863503,"filename":"image_15012025_05_45_55_10345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e7e8ccdf9b904d953134bde654f6769e.jpg","text":"TemporaryFile(/tmp/multipartBody7007279778005372175asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969863503,"filename":"image_15012025_05_45_35_9351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/df97ee328086c3bec10a21b986ece844.jpg","text":"TemporaryFile(/tmp/multipartBody2908919137601268386asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969863503,"filename":"image_15012025_05_45_15_10377.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/428de40409fe5cb0d79b8266c711d9a1.jpg","text":"TemporaryFile(/tmp/multipartBody1637725262026955108asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969863503,"filename":"image_15012025_05_45_45_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8ff940028844613effb1389cbc240723.jpg","text":"TemporaryFile(/tmp/multipartBody7086300469388264159asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969863503,"filename":"image_15012025_05_45_25_10362.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329207390","file1":"1329207385","file0":"1329207374","file4":"1329207442","file5":"1329207542","file3":"1329207397"},"map_files_photo_id_array":[{"photo_id":"1329207542","filename":"file5"},{"photo_id":"1329207390","filename":"file2"},{"photo_id":"1329207442","filename":"file4"},{"photo_id":"1329207385","filename":"file1"},{"photo_id":"1329207374","filename":"file0"},{"photo_id":"1329207397","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329207374":["hashtag1","hashtag2"]},{"1329207542":["hashtag1","hashtag2"]},{"1329207397":["hashtag1","hashtag2"]},{"1329207385":["hashtag1","hashtag2"]},{"1329207442":["hashtag1","hashtag2"]},{"1329207390":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329207374, 1329207542, 1329207397, 1329207385, 1329207442, 1329207390)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.73512554168701 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 15 --only_old 0
2025-01-15 20:37:32.867809
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/45/image_15012025_05_46_05_9349.jpg', '/home/pi/Desktop/images/15012025/05/46/image_15012025_05_46_15_10344.jpg', '/home/pi/Desktop/images/15012025/05/46/image_15012025_05_46_25_9367.jpg', '/home/pi/Desktop/images/15012025/05/46/image_15012025_05_46_35_10440.jpg', '/home/pi/Desktop/images/15012025/05/46/image_15012025_05_46_45_10338.jpg', '/home/pi/Desktop/images/15012025/05/46/image_15012025_05_46_55_9344.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/45/image_15012025_05_46_05_9349.jpg
/home/pi/Desktop/images/15012025/05/46/image_15012025_05_46_15_10344.jpg
/home/pi/Desktop/images/15012025/05/46/image_15012025_05_46_25_9367.jpg
/home/pi/Desktop/images/15012025/05/46/image_15012025_05_46_35_10440.jpg
/home/pi/Desktop/images/15012025/05/46/image_15012025_05_46_45_10338.jpg
/home/pi/Desktop/images/15012025/05/46/image_15012025_05_46_55_9344.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329208189","1329208135","1329207958","1329208401","1329208586","1329208793"],"photo_ids_order":["1329207958","1329208135","1329208189","1329208401","1329208586","1329208793"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/440c4d43339575205a15af7d859252bc.jpg","text":"TemporaryFile(/tmp/multipartBody6677692461121120864asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969913862,"filename":"image_15012025_05_46_25_9367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/429b6f310209fc0eda73ff367101af84.jpg","text":"TemporaryFile(/tmp/multipartBody8083202023575480301asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969913862,"filename":"image_15012025_05_46_15_10344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a4751b2be5eac1edc8a8783da7e1cd78.jpg","text":"TemporaryFile(/tmp/multipartBody6350536044451234819asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969913862,"filename":"image_15012025_05_46_05_9349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ea18af6a6ae4ae9fecbcbc08a3521808.jpg","text":"TemporaryFile(/tmp/multipartBody7327008659805592331asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969913862,"filename":"image_15012025_05_46_35_10440.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cf6f133377862dd57fc110c9dd5c3899.jpg","text":"TemporaryFile(/tmp/multipartBody6978720315135233397asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969913862,"filename":"image_15012025_05_46_45_10338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/09580ede09e826000ee1085fb3ed66cd.jpg","text":"TemporaryFile(/tmp/multipartBody1980213260438152666asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969913862,"filename":"image_15012025_05_46_55_9344.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329208189","file1":"1329208135","file0":"1329207958","file4":"1329208586","file5":"1329208793","file3":"1329208401"},"map_files_photo_id_array":[{"photo_id":"1329208793","filename":"file5"},{"photo_id":"1329208189","filename":"file2"},{"photo_id":"1329208586","filename":"file4"},{"photo_id":"1329208135","filename":"file1"},{"photo_id":"1329207958","filename":"file0"},{"photo_id":"1329208401","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329208189":["hashtag1","hashtag2"]},{"1329208135":["hashtag1","hashtag2"]},{"1329207958":["hashtag1","hashtag2"]},{"1329208401":["hashtag1","hashtag2"]},{"1329208586":["hashtag1","hashtag2"]},{"1329208793":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329208189, 1329208135, 1329207958, 1329208401, 1329208586, 1329208793)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.38114404678345 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 15 --only_old 0
2025-01-15 20:38:32.991557
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/46/image_15012025_05_47_05_10363.jpg', '/home/pi/Desktop/images/15012025/05/47/image_15012025_05_47_15_10332.jpg', '/home/pi/Desktop/images/15012025/05/47/image_15012025_05_47_25_9353.jpg', '/home/pi/Desktop/images/15012025/05/47/image_15012025_05_47_35_10411.jpg', '/home/pi/Desktop/images/15012025/05/47/image_15012025_05_47_45_10354.jpg', '/home/pi/Desktop/images/15012025/05/47/image_15012025_05_47_55_9345.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/46/image_15012025_05_47_05_10363.jpg
/home/pi/Desktop/images/15012025/05/47/image_15012025_05_47_15_10332.jpg
/home/pi/Desktop/images/15012025/05/47/image_15012025_05_47_25_9353.jpg
/home/pi/Desktop/images/15012025/05/47/image_15012025_05_47_35_10411.jpg
/home/pi/Desktop/images/15012025/05/47/image_15012025_05_47_45_10354.jpg
/home/pi/Desktop/images/15012025/05/47/image_15012025_05_47_55_9345.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329209161","1329209155","1329209170","1329209137","1329209233","1329209231"],"photo_ids_order":["1329209137","1329209155","1329209161","1329209170","1329209231","1329209233"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6709df078ffb0d27d36d47085066c5bf.jpg","text":"TemporaryFile(/tmp/multipartBody1579270487248295252asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969974015,"filename":"image_15012025_05_47_25_9353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/52677ec70f2f1fc8b942c0c6bea4ab15.jpg","text":"TemporaryFile(/tmp/multipartBody8295723157140775945asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969974015,"filename":"image_15012025_05_47_15_10332.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6473487d330158e23bc340142b146aae.jpg","text":"TemporaryFile(/tmp/multipartBody4682688152033217470asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969974015,"filename":"image_15012025_05_47_35_10411.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/66f540ace7ebd6b970573cd004d2d62c.jpg","text":"TemporaryFile(/tmp/multipartBody6259720411157894871asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969974015,"filename":"image_15012025_05_47_05_10363.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b4df72a75a672897af85ec870b9b7f5e.jpg","text":"TemporaryFile(/tmp/multipartBody1705041829668495121asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969974015,"filename":"image_15012025_05_47_55_9345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/90f16c850f5ed722c994dc9c1a33c285.jpg","text":"TemporaryFile(/tmp/multipartBody7593420364862627078asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736969974015,"filename":"image_15012025_05_47_45_10354.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329209161","file1":"1329209155","file0":"1329209137","file4":"1329209231","file5":"1329209233","file3":"1329209170"},"map_files_photo_id_array":[{"photo_id":"1329209233","filename":"file5"},{"photo_id":"1329209161","filename":"file2"},{"photo_id":"1329209231","filename":"file4"},{"photo_id":"1329209155","filename":"file1"},{"photo_id":"1329209137","filename":"file0"},{"photo_id":"1329209170","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329209161":["hashtag1","hashtag2"]},{"1329209155":["hashtag1","hashtag2"]},{"1329209170":["hashtag1","hashtag2"]},{"1329209137":["hashtag1","hashtag2"]},{"1329209233":["hashtag1","hashtag2"]},{"1329209231":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329209161, 1329209155, 1329209170, 1329209137, 1329209233, 1329209231)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.91308116912842 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 15 --only_old 0
2025-01-15 20:39:32.192309
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/47/image_15012025_05_48_05_10446.jpg', '/home/pi/Desktop/images/15012025/05/48/image_15012025_05_48_35_10395.jpg', '/home/pi/Desktop/images/15012025/05/48/image_15012025_05_48_55_10443.jpg', '/home/pi/Desktop/images/15012025/05/48/image_15012025_05_49_05_9461.jpg', '/home/pi/Desktop/images/15012025/05/49/image_15012025_05_49_15_10001.jpg', '/home/pi/Desktop/images/15012025/05/49/image_15012025_05_49_35_9336.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/47/image_15012025_05_48_05_10446.jpg
/home/pi/Desktop/images/15012025/05/48/image_15012025_05_48_35_10395.jpg
/home/pi/Desktop/images/15012025/05/48/image_15012025_05_48_55_10443.jpg
/home/pi/Desktop/images/15012025/05/48/image_15012025_05_49_05_9461.jpg
/home/pi/Desktop/images/15012025/05/49/image_15012025_05_49_15_10001.jpg
/home/pi/Desktop/images/15012025/05/49/image_15012025_05_49_35_9336.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329209809","1329209722","1329209781","1329209820","1329209553","1329209756"],"photo_ids_order":["1329209553","1329209722","1329209756","1329209781","1329209809","1329209820"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/984df8893e22af3087efefbb70d2a87e.jpg","text":"TemporaryFile(/tmp/multipartBody4415693169312088457asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970033193,"filename":"image_15012025_05_49_15_10001.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/212c337ed8b86ce27540875ed380373b.jpg","text":"TemporaryFile(/tmp/multipartBody3313693109311051050asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970033193,"filename":"image_15012025_05_48_35_10395.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/50bd797eafb33c696dd93fdf264c0154.jpg","text":"TemporaryFile(/tmp/multipartBody723945212569221228asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970033193,"filename":"image_15012025_05_49_05_9461.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/95b08c54c5810b3e27de38ebe513ad80.jpg","text":"TemporaryFile(/tmp/multipartBody1287652458137669asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970033193,"filename":"image_15012025_05_49_35_9336.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d7a573fbd2ddb46519232044859c135e.jpg","text":"TemporaryFile(/tmp/multipartBody7269028861256378695asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970033193,"filename":"image_15012025_05_48_05_10446.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c6431301c0e4494b73a3507c9776b8e6.jpg","text":"TemporaryFile(/tmp/multipartBody3977261235769691588asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970033193,"filename":"image_15012025_05_48_55_10443.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329209756","file1":"1329209722","file0":"1329209553","file4":"1329209809","file5":"1329209820","file3":"1329209781"},"map_files_photo_id_array":[{"photo_id":"1329209820","filename":"file5"},{"photo_id":"1329209756","filename":"file2"},{"photo_id":"1329209809","filename":"file4"},{"photo_id":"1329209722","filename":"file1"},{"photo_id":"1329209553","filename":"file0"},{"photo_id":"1329209781","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329209809":["hashtag1","hashtag2"]},{"1329209722":["hashtag1","hashtag2"]},{"1329209781":["hashtag1","hashtag2"]},{"1329209820":["hashtag1","hashtag2"]},{"1329209553":["hashtag1","hashtag2"]},{"1329209756":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329209809, 1329209722, 1329209781, 1329209820, 1329209553, 1329209756)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.55658435821533 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 15 --only_old 0
2025-01-15 20:40:32.486165
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/49/image_15012025_05_49_45_10411.jpg', '/home/pi/Desktop/images/15012025/05/49/image_15012025_05_49_56_10351.jpg', '/home/pi/Desktop/images/15012025/05/49/image_15012025_05_50_05_9354.jpg', '/home/pi/Desktop/images/15012025/05/50/image_15012025_05_50_15_10437.jpg', '/home/pi/Desktop/images/15012025/05/50/image_15012025_05_50_25_9363.jpg', '/home/pi/Desktop/images/15012025/05/50/image_15012025_05_51_05_10435.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/49/image_15012025_05_49_45_10411.jpg
/home/pi/Desktop/images/15012025/05/49/image_15012025_05_49_56_10351.jpg
/home/pi/Desktop/images/15012025/05/49/image_15012025_05_50_05_9354.jpg
/home/pi/Desktop/images/15012025/05/50/image_15012025_05_50_15_10437.jpg
/home/pi/Desktop/images/15012025/05/50/image_15012025_05_50_25_9363.jpg
/home/pi/Desktop/images/15012025/05/50/image_15012025_05_51_05_10435.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329209899","1329209896","1329209894","1329209888","1329209891","1329209885"],"photo_ids_order":["1329209885","1329209888","1329209891","1329209894","1329209896","1329209899"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/54e14195b25fbd8b5ea9884469b2968b.jpg","text":"TemporaryFile(/tmp/multipartBody5658329886467818072asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970093504,"filename":"image_15012025_05_51_05_10435.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/92369f260c6c879d6d31f6b05b4bb29d.jpg","text":"TemporaryFile(/tmp/multipartBody2301719607165713298asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970093504,"filename":"image_15012025_05_50_25_9363.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/be3f55f084dec7c809021e4bae017632.jpg","text":"TemporaryFile(/tmp/multipartBody4584730302492768567asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970093504,"filename":"image_15012025_05_50_15_10437.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e45f659776489e9b5fab62213d30aa5c.jpg","text":"TemporaryFile(/tmp/multipartBody229423375488034060asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970093504,"filename":"image_15012025_05_49_56_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/828892678c1bae6f9704198485257cf5.jpg","text":"TemporaryFile(/tmp/multipartBody3380298958259157240asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970093504,"filename":"image_15012025_05_50_05_9354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d2a65a75062974366b103896f67b273a.jpg","text":"TemporaryFile(/tmp/multipartBody7740082425918838805asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970093504,"filename":"image_15012025_05_49_45_10411.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329209891","file1":"1329209888","file0":"1329209885","file4":"1329209896","file5":"1329209899","file3":"1329209894"},"map_files_photo_id_array":[{"photo_id":"1329209899","filename":"file5"},{"photo_id":"1329209891","filename":"file2"},{"photo_id":"1329209896","filename":"file4"},{"photo_id":"1329209888","filename":"file1"},{"photo_id":"1329209885","filename":"file0"},{"photo_id":"1329209894","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329209899":["hashtag1","hashtag2"]},{"1329209896":["hashtag1","hashtag2"]},{"1329209894":["hashtag1","hashtag2"]},{"1329209888":["hashtag1","hashtag2"]},{"1329209891":["hashtag1","hashtag2"]},{"1329209885":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329209899, 1329209896, 1329209894, 1329209888, 1329209891, 1329209885)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.09427189826965 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 15 --only_old 0
2025-01-15 20:41:32.756805
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/51/image_15012025_05_51_16_10343.jpg', '/home/pi/Desktop/images/15012025/05/51/image_15012025_05_51_35_10372.jpg', '/home/pi/Desktop/images/15012025/05/51/image_15012025_05_52_05_10356.jpg', '/home/pi/Desktop/images/15012025/05/52/image_15012025_05_52_15_9354.jpg', '/home/pi/Desktop/images/15012025/05/52/image_15012025_05_52_35_10337.jpg', '/home/pi/Desktop/images/15012025/05/52/image_15012025_05_52_45_9346.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/51/image_15012025_05_51_16_10343.jpg
/home/pi/Desktop/images/15012025/05/51/image_15012025_05_51_35_10372.jpg
/home/pi/Desktop/images/15012025/05/51/image_15012025_05_52_05_10356.jpg
/home/pi/Desktop/images/15012025/05/52/image_15012025_05_52_15_9354.jpg
/home/pi/Desktop/images/15012025/05/52/image_15012025_05_52_35_10337.jpg
/home/pi/Desktop/images/15012025/05/52/image_15012025_05_52_45_9346.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329209936","1329209923","1329209926","1329209920","1329209946","1329209928"],"photo_ids_order":["1329209920","1329209923","1329209926","1329209928","1329209936","1329209946"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/11ce07b2831b5a67558f0136228ce6a6.jpg","text":"TemporaryFile(/tmp/multipartBody1697507033082435369asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970153779,"filename":"image_15012025_05_52_35_10337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bf887563a1562c552979f7dcd3e266a8.jpg","text":"TemporaryFile(/tmp/multipartBody4915875678796803686asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970153779,"filename":"image_15012025_05_51_35_10372.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/796a504ddfc4562e8d3b070aef559512.jpg","text":"TemporaryFile(/tmp/multipartBody9071744218510580925asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970153779,"filename":"image_15012025_05_52_05_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/89903235c0c66c308bb54c09070646a1.jpg","text":"TemporaryFile(/tmp/multipartBody8322921782265951745asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970153779,"filename":"image_15012025_05_51_16_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/44dee5c83a6d8d752c5298abd0bb42e2.jpg","text":"TemporaryFile(/tmp/multipartBody1248747224540501414asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970153779,"filename":"image_15012025_05_52_45_9346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1d0775907f7bf154fe8040c5a1c44070.jpg","text":"TemporaryFile(/tmp/multipartBody6068046658871746561asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970153779,"filename":"image_15012025_05_52_15_9354.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329209926","file1":"1329209923","file0":"1329209920","file4":"1329209936","file5":"1329209946","file3":"1329209928"},"map_files_photo_id_array":[{"photo_id":"1329209946","filename":"file5"},{"photo_id":"1329209926","filename":"file2"},{"photo_id":"1329209936","filename":"file4"},{"photo_id":"1329209923","filename":"file1"},{"photo_id":"1329209920","filename":"file0"},{"photo_id":"1329209928","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329209936":["hashtag1","hashtag2"]},{"1329209923":["hashtag1","hashtag2"]},{"1329209926":["hashtag1","hashtag2"]},{"1329209920":["hashtag1","hashtag2"]},{"1329209946":["hashtag1","hashtag2"]},{"1329209928":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329209936, 1329209923, 1329209926, 1329209920, 1329209946, 1329209928)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.230366706848145 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 15 --only_old 0
2025-01-15 20:42:32.893971
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/52/image_15012025_05_52_55_10411.jpg', '/home/pi/Desktop/images/15012025/05/52/image_15012025_05_53_05_9348.jpg', '/home/pi/Desktop/images/15012025/05/53/image_15012025_05_53_15_10419.jpg', '/home/pi/Desktop/images/15012025/05/53/image_15012025_05_53_25_10384.jpg', '/home/pi/Desktop/images/15012025/05/53/image_15012025_05_53_35_9358.jpg', '/home/pi/Desktop/images/15012025/05/53/image_15012025_05_53_45_10358.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/52/image_15012025_05_52_55_10411.jpg
/home/pi/Desktop/images/15012025/05/52/image_15012025_05_53_05_9348.jpg
/home/pi/Desktop/images/15012025/05/53/image_15012025_05_53_15_10419.jpg
/home/pi/Desktop/images/15012025/05/53/image_15012025_05_53_25_10384.jpg
/home/pi/Desktop/images/15012025/05/53/image_15012025_05_53_35_9358.jpg
/home/pi/Desktop/images/15012025/05/53/image_15012025_05_53_45_10358.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.603837251663208 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
2025-01-15 20:42:42.857059
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/52/image_15012025_05_52_55_10411.jpg', '/home/pi/Desktop/images/15012025/05/52/image_15012025_05_53_05_9348.jpg', '/home/pi/Desktop/images/15012025/05/53/image_15012025_05_53_15_10419.jpg', '/home/pi/Desktop/images/15012025/05/53/image_15012025_05_53_25_10384.jpg', '/home/pi/Desktop/images/15012025/05/53/image_15012025_05_53_35_9358.jpg', '/home/pi/Desktop/images/15012025/05/53/image_15012025_05_53_45_10358.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/52/image_15012025_05_52_55_10411.jpg
/home/pi/Desktop/images/15012025/05/52/image_15012025_05_53_05_9348.jpg
/home/pi/Desktop/images/15012025/05/53/image_15012025_05_53_15_10419.jpg
/home/pi/Desktop/images/15012025/05/53/image_15012025_05_53_25_10384.jpg
/home/pi/Desktop/images/15012025/05/53/image_15012025_05_53_35_9358.jpg
/home/pi/Desktop/images/15012025/05/53/image_15012025_05_53_45_10358.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329209995","1329210023","1329210002","1329210016","1329210001","1329209987"],"photo_ids_order":["1329209987","1329209995","1329210001","1329210002","1329210016","1329210023"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/30bb12919851c9706b9b082557c029f2.jpg","text":"TemporaryFile(/tmp/multipartBody3783673173948597735asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970223775,"filename":"image_15012025_05_53_05_9348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d42b2be9f8a46f28ce4609f73b12bda0.jpg","text":"TemporaryFile(/tmp/multipartBody3541929964710329995asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970223775,"filename":"image_15012025_05_53_45_10358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f118171c2ffe8ef5a9a3cf1fe861cebd.jpg","text":"TemporaryFile(/tmp/multipartBody6300138426550764172asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970223775,"filename":"image_15012025_05_53_25_10384.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/659e2a4d49c480adb836fd691b1931f2.jpg","text":"TemporaryFile(/tmp/multipartBody2259714147821300843asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970223775,"filename":"image_15012025_05_53_35_9358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0d771f3dba607506ed41d32fdc7a96ea.jpg","text":"TemporaryFile(/tmp/multipartBody5431675491270633515asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970223775,"filename":"image_15012025_05_53_15_10419.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b393df412ad23aa3ec60a87ef433fd02.jpg","text":"TemporaryFile(/tmp/multipartBody5500584154453443432asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970223775,"filename":"image_15012025_05_52_55_10411.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329210001","file1":"1329209995","file0":"1329209987","file4":"1329210016","file5":"1329210023","file3":"1329210002"},"map_files_photo_id_array":[{"photo_id":"1329210023","filename":"file5"},{"photo_id":"1329210001","filename":"file2"},{"photo_id":"1329210016","filename":"file4"},{"photo_id":"1329209995","filename":"file1"},{"photo_id":"1329209987","filename":"file0"},{"photo_id":"1329210002","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329209995":["hashtag1","hashtag2"]},{"1329210023":["hashtag1","hashtag2"]},{"1329210002":["hashtag1","hashtag2"]},{"1329210016":["hashtag1","hashtag2"]},{"1329210001":["hashtag1","hashtag2"]},{"1329209987":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329209995, 1329210023, 1329210002, 1329210016, 1329210001, 1329209987)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.29815649986267 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 15 --only_old 0
2025-01-15 20:43:33.161391
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/53/image_15012025_05_53_55_10337.jpg', '/home/pi/Desktop/images/15012025/05/54/image_15012025_05_54_15_10369.jpg', '/home/pi/Desktop/images/15012025/05/54/image_15012025_05_54_26_10367.jpg', '/home/pi/Desktop/images/15012025/05/54/image_15012025_05_54_35_9347.jpg', '/home/pi/Desktop/images/15012025/05/54/image_15012025_05_54_45_10377.jpg', '/home/pi/Desktop/images/15012025/05/54/image_15012025_05_54_55_9345.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/53/image_15012025_05_53_55_10337.jpg
/home/pi/Desktop/images/15012025/05/54/image_15012025_05_54_15_10369.jpg
/home/pi/Desktop/images/15012025/05/54/image_15012025_05_54_26_10367.jpg
/home/pi/Desktop/images/15012025/05/54/image_15012025_05_54_35_9347.jpg
/home/pi/Desktop/images/15012025/05/54/image_15012025_05_54_45_10377.jpg
/home/pi/Desktop/images/15012025/05/54/image_15012025_05_54_55_9345.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329210038","1329210200","1329210088","1329210202","1329210205","1329210036"],"photo_ids_order":["1329210036","1329210038","1329210088","1329210200","1329210202","1329210205"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b65c0a1564694d65affd74a9c68a9cfc.jpg","text":"TemporaryFile(/tmp/multipartBody3666601535321059016asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970274233,"filename":"image_15012025_05_54_15_10369.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e437db7ae5eabab4dc19ed43bc931563.jpg","text":"TemporaryFile(/tmp/multipartBody4763324729292008868asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970274233,"filename":"image_15012025_05_54_35_9347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0b4e7b0a7a8e0351e80677c4f48e8de9.jpg","text":"TemporaryFile(/tmp/multipartBody6973855860793220439asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970274233,"filename":"image_15012025_05_54_26_10367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bcee45953542b312c65fb1d85d1fad7b.jpg","text":"TemporaryFile(/tmp/multipartBody5739864588899317620asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970274233,"filename":"image_15012025_05_54_45_10377.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3b5cf221382094955ee1b1dfd0b74fd9.jpg","text":"TemporaryFile(/tmp/multipartBody6613174906527968181asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970274233,"filename":"image_15012025_05_54_55_9345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f483901a566d1a19d162bd81fffba595.jpg","text":"TemporaryFile(/tmp/multipartBody542874111635606361asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970274233,"filename":"image_15012025_05_53_55_10337.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329210088","file1":"1329210038","file0":"1329210036","file4":"1329210202","file5":"1329210205","file3":"1329210200"},"map_files_photo_id_array":[{"photo_id":"1329210205","filename":"file5"},{"photo_id":"1329210088","filename":"file2"},{"photo_id":"1329210202","filename":"file4"},{"photo_id":"1329210038","filename":"file1"},{"photo_id":"1329210036","filename":"file0"},{"photo_id":"1329210200","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329210038":["hashtag1","hashtag2"]},{"1329210200":["hashtag1","hashtag2"]},{"1329210088":["hashtag1","hashtag2"]},{"1329210202":["hashtag1","hashtag2"]},{"1329210205":["hashtag1","hashtag2"]},{"1329210036":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329210038, 1329210200, 1329210088, 1329210202, 1329210205, 1329210036)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.73152995109558 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 15 --only_old 0
2025-01-15 20:44:32.232496
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/54/image_15012025_05_55_05_10437.jpg', '/home/pi/Desktop/images/15012025/05/55/image_15012025_05_55_15_10356.jpg', '/home/pi/Desktop/images/15012025/05/55/image_15012025_05_55_25_9368.jpg', '/home/pi/Desktop/images/15012025/05/55/image_15012025_05_55_35_10361.jpg', '/home/pi/Desktop/images/15012025/05/55/image_15012025_05_55_45_10342.jpg', '/home/pi/Desktop/images/15012025/05/55/image_15012025_05_55_55_9338.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/54/image_15012025_05_55_05_10437.jpg
/home/pi/Desktop/images/15012025/05/55/image_15012025_05_55_15_10356.jpg
/home/pi/Desktop/images/15012025/05/55/image_15012025_05_55_25_9368.jpg
/home/pi/Desktop/images/15012025/05/55/image_15012025_05_55_35_10361.jpg
/home/pi/Desktop/images/15012025/05/55/image_15012025_05_55_45_10342.jpg
/home/pi/Desktop/images/15012025/05/55/image_15012025_05_55_55_9338.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329210242","1329210250","1329210247","1329210229","1329210252","1329210237"],"photo_ids_order":["1329210229","1329210237","1329210242","1329210247","1329210250","1329210252"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/172e0bc5d4d3647ab9143c082cb3dfec.jpg","text":"TemporaryFile(/tmp/multipartBody8714177200534285647asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970333245,"filename":"image_15012025_05_55_25_9368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/893ace92ee916fc9b9063fbc882ec8a5.jpg","text":"TemporaryFile(/tmp/multipartBody8913424993063917749asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970333245,"filename":"image_15012025_05_55_45_10342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5ffebccf4e38d24c26bd3caa1c5c7c1b.jpg","text":"TemporaryFile(/tmp/multipartBody5417372420494972366asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970333245,"filename":"image_15012025_05_55_35_10361.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6e54d1843bb244a65e041781ac380487.jpg","text":"TemporaryFile(/tmp/multipartBody5757706049692442157asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970333245,"filename":"image_15012025_05_55_05_10437.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/571a4a664706f8e6e7adcd8569d4cf15.jpg","text":"TemporaryFile(/tmp/multipartBody2212931781437368185asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970333245,"filename":"image_15012025_05_55_55_9338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5b0a956e73ff1c25ff728759b7ce9cfe.jpg","text":"TemporaryFile(/tmp/multipartBody5878730566824868649asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970333245,"filename":"image_15012025_05_55_15_10356.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329210242","file1":"1329210237","file0":"1329210229","file4":"1329210250","file5":"1329210252","file3":"1329210247"},"map_files_photo_id_array":[{"photo_id":"1329210252","filename":"file5"},{"photo_id":"1329210242","filename":"file2"},{"photo_id":"1329210250","filename":"file4"},{"photo_id":"1329210237","filename":"file1"},{"photo_id":"1329210229","filename":"file0"},{"photo_id":"1329210247","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329210242":["hashtag1","hashtag2"]},{"1329210250":["hashtag1","hashtag2"]},{"1329210247":["hashtag1","hashtag2"]},{"1329210229":["hashtag1","hashtag2"]},{"1329210252":["hashtag1","hashtag2"]},{"1329210237":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329210242, 1329210250, 1329210247, 1329210229, 1329210252, 1329210237)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.99177646636963 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 15 --only_old 0
2025-01-15 20:45:32.369549
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/55/image_15012025_05_56_05_10343.jpg', '/home/pi/Desktop/images/15012025/05/56/image_15012025_05_56_15_10341.jpg', '/home/pi/Desktop/images/15012025/05/56/image_15012025_05_56_25_9344.jpg', '/home/pi/Desktop/images/15012025/05/56/image_15012025_05_56_35_10360.jpg', '/home/pi/Desktop/images/15012025/05/56/image_15012025_05_56_46_10356.jpg', '/home/pi/Desktop/images/15012025/05/56/image_15012025_05_56_55_9333.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/55/image_15012025_05_56_05_10343.jpg
/home/pi/Desktop/images/15012025/05/56/image_15012025_05_56_15_10341.jpg
/home/pi/Desktop/images/15012025/05/56/image_15012025_05_56_25_9344.jpg
/home/pi/Desktop/images/15012025/05/56/image_15012025_05_56_35_10360.jpg
/home/pi/Desktop/images/15012025/05/56/image_15012025_05_56_46_10356.jpg
/home/pi/Desktop/images/15012025/05/56/image_15012025_05_56_55_9333.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329210458","1329210410","1329210413","1329210280","1329210351","1329210273"],"photo_ids_order":["1329210273","1329210280","1329210351","1329210410","1329210413","1329210458"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/451a7a754da977df89686264fc26a089.jpg","text":"TemporaryFile(/tmp/multipartBody5783254448984597372asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970393378,"filename":"image_15012025_05_56_55_9333.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/faf8dec814f1f5eba6543be40a630867.jpg","text":"TemporaryFile(/tmp/multipartBody3508861173829245498asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970393378,"filename":"image_15012025_05_56_35_10360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e6c52d2c9d9cffade897292ca2aaf223.jpg","text":"TemporaryFile(/tmp/multipartBody4818174451791609060asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970393378,"filename":"image_15012025_05_56_46_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f64efa979183833871d4aaed3703d466.jpg","text":"TemporaryFile(/tmp/multipartBody6486345919885513905asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970393378,"filename":"image_15012025_05_56_15_10341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/66fa70d205bceea8ffe58ce809f9df3f.jpg","text":"TemporaryFile(/tmp/multipartBody5017231719676328614asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970393378,"filename":"image_15012025_05_56_25_9344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8a97733e3eb4c806b82700e2217cd435.jpg","text":"TemporaryFile(/tmp/multipartBody2310017855214660204asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970393378,"filename":"image_15012025_05_56_05_10343.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329210351","file1":"1329210280","file0":"1329210273","file4":"1329210413","file5":"1329210458","file3":"1329210410"},"map_files_photo_id_array":[{"photo_id":"1329210458","filename":"file5"},{"photo_id":"1329210351","filename":"file2"},{"photo_id":"1329210413","filename":"file4"},{"photo_id":"1329210280","filename":"file1"},{"photo_id":"1329210273","filename":"file0"},{"photo_id":"1329210410","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329210458":["hashtag1","hashtag2"]},{"1329210410":["hashtag1","hashtag2"]},{"1329210413":["hashtag1","hashtag2"]},{"1329210280":["hashtag1","hashtag2"]},{"1329210351":["hashtag1","hashtag2"]},{"1329210273":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329210458, 1329210410, 1329210413, 1329210280, 1329210351, 1329210273)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.12343144416809 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 15 --only_old 0
2025-01-15 20:46:32.690429
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/56/image_15012025_05_57_05_10407.jpg', '/home/pi/Desktop/images/15012025/05/57/image_15012025_05_57_15_9393.jpg', '/home/pi/Desktop/images/15012025/05/57/image_15012025_05_57_25_10465.jpg', '/home/pi/Desktop/images/15012025/05/57/image_15012025_05_57_36_10351.jpg', '/home/pi/Desktop/images/15012025/05/57/image_15012025_05_57_45_9348.jpg', '/home/pi/Desktop/images/15012025/05/57/image_15012025_05_57_55_10447.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/56/image_15012025_05_57_05_10407.jpg
/home/pi/Desktop/images/15012025/05/57/image_15012025_05_57_15_9393.jpg
/home/pi/Desktop/images/15012025/05/57/image_15012025_05_57_25_10465.jpg
/home/pi/Desktop/images/15012025/05/57/image_15012025_05_57_36_10351.jpg
/home/pi/Desktop/images/15012025/05/57/image_15012025_05_57_45_9348.jpg
/home/pi/Desktop/images/15012025/05/57/image_15012025_05_57_55_10447.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329210686","1329210749","1329210823","1329210814","1329210567","1329210744"],"photo_ids_order":["1329210567","1329210686","1329210744","1329210749","1329210814","1329210823"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a51d50c4cf4872cd6887dd7e56b7dbd3.jpg","text":"TemporaryFile(/tmp/multipartBody4020931546281389195asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970453729,"filename":"image_15012025_05_57_15_9393.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c36363e9f7dcc7ad07bb9a8c93d26c56.jpg","text":"TemporaryFile(/tmp/multipartBody6477801264042827725asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970453729,"filename":"image_15012025_05_57_36_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a2170d2fe313664bada151e2d501dea4.jpg","text":"TemporaryFile(/tmp/multipartBody8068988484907842514asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970453729,"filename":"image_15012025_05_57_55_10447.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/244464b6848ed6c5eda4f29e3835264f.jpg","text":"TemporaryFile(/tmp/multipartBody849549078596849354asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970453729,"filename":"image_15012025_05_57_45_9348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f539fb75fffa2ae3cd54fbacffdc37ee.jpg","text":"TemporaryFile(/tmp/multipartBody4270364469014418192asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970453729,"filename":"image_15012025_05_57_05_10407.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/487488a6ce77573e8721f8d34b265cb3.jpg","text":"TemporaryFile(/tmp/multipartBody2855689853533177552asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970453729,"filename":"image_15012025_05_57_25_10465.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329210744","file1":"1329210686","file0":"1329210567","file4":"1329210814","file5":"1329210823","file3":"1329210749"},"map_files_photo_id_array":[{"photo_id":"1329210823","filename":"file5"},{"photo_id":"1329210744","filename":"file2"},{"photo_id":"1329210814","filename":"file4"},{"photo_id":"1329210686","filename":"file1"},{"photo_id":"1329210567","filename":"file0"},{"photo_id":"1329210749","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329210686":["hashtag1","hashtag2"]},{"1329210749":["hashtag1","hashtag2"]},{"1329210823":["hashtag1","hashtag2"]},{"1329210814":["hashtag1","hashtag2"]},{"1329210567":["hashtag1","hashtag2"]},{"1329210744":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329210686, 1329210749, 1329210823, 1329210814, 1329210567, 1329210744)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.532647371292114 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 15 --only_old 0
2025-01-15 20:47:32.866326
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/57/image_15012025_05_58_05_9374.jpg', '/home/pi/Desktop/images/15012025/05/58/image_15012025_05_58_15_10368.jpg', '/home/pi/Desktop/images/15012025/05/58/image_15012025_05_58_25_10382.jpg', '/home/pi/Desktop/images/15012025/05/58/image_15012025_05_58_35_9449.jpg', '/home/pi/Desktop/images/15012025/05/58/image_15012025_05_58_45_10463.jpg', '/home/pi/Desktop/images/15012025/05/58/image_15012025_05_58_55_9352.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/57/image_15012025_05_58_05_9374.jpg
/home/pi/Desktop/images/15012025/05/58/image_15012025_05_58_15_10368.jpg
/home/pi/Desktop/images/15012025/05/58/image_15012025_05_58_25_10382.jpg
/home/pi/Desktop/images/15012025/05/58/image_15012025_05_58_35_9449.jpg
/home/pi/Desktop/images/15012025/05/58/image_15012025_05_58_45_10463.jpg
/home/pi/Desktop/images/15012025/05/58/image_15012025_05_58_55_9352.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329210941","1329210950","1329210945","1329210939","1329210948","1329210953"],"photo_ids_order":["1329210939","1329210941","1329210945","1329210948","1329210950","1329210953"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c70d1102708b6fa56de1162beab504f9.jpg","text":"TemporaryFile(/tmp/multipartBody1104587015942314713asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970513878,"filename":"image_15012025_05_58_15_10368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dd563215367e7cb8c23b7f4108ab6145.jpg","text":"TemporaryFile(/tmp/multipartBody5096898665313356121asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970513878,"filename":"image_15012025_05_58_45_10463.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c07436a09960a29203012b377473cec1.jpg","text":"TemporaryFile(/tmp/multipartBody221781746207292563asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970513878,"filename":"image_15012025_05_58_25_10382.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/082f34a4414ac72c7291b5c9f19c7ca2.jpg","text":"TemporaryFile(/tmp/multipartBody3408975723380355942asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970513878,"filename":"image_15012025_05_58_05_9374.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/101c2f98f56ffdcb460dc6659e3f0099.jpg","text":"TemporaryFile(/tmp/multipartBody3231230227608747483asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970513878,"filename":"image_15012025_05_58_35_9449.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3b78426a13c023828e00be6b8985c0d0.jpg","text":"TemporaryFile(/tmp/multipartBody6428550101999084141asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970513878,"filename":"image_15012025_05_58_55_9352.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329210945","file1":"1329210941","file0":"1329210939","file4":"1329210950","file5":"1329210953","file3":"1329210948"},"map_files_photo_id_array":[{"photo_id":"1329210953","filename":"file5"},{"photo_id":"1329210945","filename":"file2"},{"photo_id":"1329210950","filename":"file4"},{"photo_id":"1329210941","filename":"file1"},{"photo_id":"1329210939","filename":"file0"},{"photo_id":"1329210948","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329210941":["hashtag1","hashtag2"]},{"1329210950":["hashtag1","hashtag2"]},{"1329210945":["hashtag1","hashtag2"]},{"1329210939":["hashtag1","hashtag2"]},{"1329210948":["hashtag1","hashtag2"]},{"1329210953":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329210941, 1329210950, 1329210945, 1329210939, 1329210948, 1329210953)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.66548132896423 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 15 --only_old 0
2025-01-15 20:48:33.022647
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/05/58/image_15012025_05_59_05_10388.jpg', '/home/pi/Desktop/images/15012025/05/59/image_15012025_05_59_15_10378.jpg', '/home/pi/Desktop/images/15012025/05/59/image_15012025_05_59_25_9359.jpg', '/home/pi/Desktop/images/15012025/05/59/image_15012025_05_59_35_10366.jpg', '/home/pi/Desktop/images/15012025/05/59/image_15012025_05_59_46_10362.jpg', '/home/pi/Desktop/images/15012025/05/59/image_15012025_05_59_55_9345.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/05/58/image_15012025_05_59_05_10388.jpg
/home/pi/Desktop/images/15012025/05/59/image_15012025_05_59_15_10378.jpg
/home/pi/Desktop/images/15012025/05/59/image_15012025_05_59_25_9359.jpg
/home/pi/Desktop/images/15012025/05/59/image_15012025_05_59_35_10366.jpg
/home/pi/Desktop/images/15012025/05/59/image_15012025_05_59_46_10362.jpg
/home/pi/Desktop/images/15012025/05/59/image_15012025_05_59_55_9345.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329211001","1329211030","1329211012","1329211011","1329211008","1329211005"],"photo_ids_order":["1329211001","1329211005","1329211008","1329211011","1329211012","1329211030"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/664a824cf851cc3b3178057e33f317c9.jpg","text":"TemporaryFile(/tmp/multipartBody74717714772445294asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970574026,"filename":"image_15012025_05_59_05_10388.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/301dfb72dd83da43bec5f0112c69a026.jpg","text":"TemporaryFile(/tmp/multipartBody5293849786061897170asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970574026,"filename":"image_15012025_05_59_55_9345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/610ad9354e855be744c00d4c0c67e54f.jpg","text":"TemporaryFile(/tmp/multipartBody2691600365693919956asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970574026,"filename":"image_15012025_05_59_46_10362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2e6981a45b86b88102c921fa9d7f154c.jpg","text":"TemporaryFile(/tmp/multipartBody6821449835428061240asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970574026,"filename":"image_15012025_05_59_35_10366.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/02047159af5ddf323cbb040004bd02dd.jpg","text":"TemporaryFile(/tmp/multipartBody8543339689817033063asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970574026,"filename":"image_15012025_05_59_25_9359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5d8845dccbd82472ff556d5b2172ee0c.jpg","text":"TemporaryFile(/tmp/multipartBody21842897843518717asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970574026,"filename":"image_15012025_05_59_15_10378.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329211008","file1":"1329211005","file0":"1329211001","file4":"1329211012","file5":"1329211030","file3":"1329211011"},"map_files_photo_id_array":[{"photo_id":"1329211030","filename":"file5"},{"photo_id":"1329211008","filename":"file2"},{"photo_id":"1329211012","filename":"file4"},{"photo_id":"1329211005","filename":"file1"},{"photo_id":"1329211001","filename":"file0"},{"photo_id":"1329211011","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329211001":["hashtag1","hashtag2"]},{"1329211030":["hashtag1","hashtag2"]},{"1329211012":["hashtag1","hashtag2"]},{"1329211011":["hashtag1","hashtag2"]},{"1329211008":["hashtag1","hashtag2"]},{"1329211005":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329211001, 1329211030, 1329211012, 1329211011, 1329211008, 1329211005)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.1065776348114 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 15 --only_old 0
2025-01-15 20:49:32.196765
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/00/image_15012025_06_00_15_10067.jpg', '/home/pi/Desktop/images/15012025/06/00/image_15012025_06_00_26_10414.jpg', '/home/pi/Desktop/images/15012025/06/00/image_15012025_06_00_36_10422.jpg', '/home/pi/Desktop/images/15012025/06/00/image_15012025_06_00_46_9347.jpg', '/home/pi/Desktop/images/15012025/06/00/image_15012025_06_00_56_10377.jpg', '/home/pi/Desktop/images/15012025/06/00/image_15012025_06_01_06_10366.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/00/image_15012025_06_00_15_10067.jpg
/home/pi/Desktop/images/15012025/06/00/image_15012025_06_00_26_10414.jpg
/home/pi/Desktop/images/15012025/06/00/image_15012025_06_00_36_10422.jpg
/home/pi/Desktop/images/15012025/06/00/image_15012025_06_00_46_9347.jpg
/home/pi/Desktop/images/15012025/06/00/image_15012025_06_00_56_10377.jpg
/home/pi/Desktop/images/15012025/06/00/image_15012025_06_01_06_10366.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329211051","1329211060","1329211054","1329211111","1329211107","1329211058"],"photo_ids_order":["1329211051","1329211054","1329211058","1329211060","1329211107","1329211111"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/34a2992536795a52f89bb3ea28cdc0f0.jpg","text":"TemporaryFile(/tmp/multipartBody4438675208871042573asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970633230,"filename":"image_15012025_06_00_15_10067.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0fc4dfdcd3c60317fbff77df9f084086.jpg","text":"TemporaryFile(/tmp/multipartBody1921943218087335909asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970633230,"filename":"image_15012025_06_00_46_9347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e6f6365b2501bfd832ae25cfd8dd72ad.jpg","text":"TemporaryFile(/tmp/multipartBody4148741054371843712asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970633230,"filename":"image_15012025_06_00_26_10414.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/000c5b94ed2f414d7453dfe2288cdbbb.jpg","text":"TemporaryFile(/tmp/multipartBody8768710714296717503asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970633230,"filename":"image_15012025_06_01_06_10366.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/092ea00ebea9db13c7164ac7b92a1288.jpg","text":"TemporaryFile(/tmp/multipartBody2054623245898402864asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970633230,"filename":"image_15012025_06_00_56_10377.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/98b9958824c3ec17dcd489fdff3f5c7c.jpg","text":"TemporaryFile(/tmp/multipartBody8973740966435271332asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970633230,"filename":"image_15012025_06_00_36_10422.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329211058","file1":"1329211054","file0":"1329211051","file4":"1329211107","file5":"1329211111","file3":"1329211060"},"map_files_photo_id_array":[{"photo_id":"1329211111","filename":"file5"},{"photo_id":"1329211058","filename":"file2"},{"photo_id":"1329211107","filename":"file4"},{"photo_id":"1329211054","filename":"file1"},{"photo_id":"1329211051","filename":"file0"},{"photo_id":"1329211060","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329211051":["hashtag1","hashtag2"]},{"1329211060":["hashtag1","hashtag2"]},{"1329211054":["hashtag1","hashtag2"]},{"1329211111":["hashtag1","hashtag2"]},{"1329211107":["hashtag1","hashtag2"]},{"1329211058":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329211051, 1329211060, 1329211054, 1329211111, 1329211107, 1329211058)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.085487842559814 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 15 --only_old 0
2025-01-15 20:50:32.675602
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/01/image_15012025_06_01_16_9394.jpg', '/home/pi/Desktop/images/15012025/06/01/image_15012025_06_01_26_10479.jpg', '/home/pi/Desktop/images/15012025/06/01/image_15012025_06_01_36_9347.jpg', '/home/pi/Desktop/images/15012025/06/01/image_15012025_06_01_46_10414.jpg', '/home/pi/Desktop/images/15012025/06/01/image_15012025_06_02_06_9351.jpg', '/home/pi/Desktop/images/15012025/06/02/image_15012025_06_02_16_10411.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/01/image_15012025_06_01_16_9394.jpg
/home/pi/Desktop/images/15012025/06/01/image_15012025_06_01_26_10479.jpg
/home/pi/Desktop/images/15012025/06/01/image_15012025_06_01_36_9347.jpg
/home/pi/Desktop/images/15012025/06/01/image_15012025_06_01_46_10414.jpg
/home/pi/Desktop/images/15012025/06/01/image_15012025_06_02_06_9351.jpg
/home/pi/Desktop/images/15012025/06/02/image_15012025_06_02_16_10411.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 1.5323054790496826 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
2025-01-15 20:50:42.605806
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/01/image_15012025_06_01_16_9394.jpg', '/home/pi/Desktop/images/15012025/06/01/image_15012025_06_01_26_10479.jpg', '/home/pi/Desktop/images/15012025/06/01/image_15012025_06_01_36_9347.jpg', '/home/pi/Desktop/images/15012025/06/01/image_15012025_06_01_46_10414.jpg', '/home/pi/Desktop/images/15012025/06/01/image_15012025_06_02_06_9351.jpg', '/home/pi/Desktop/images/15012025/06/02/image_15012025_06_02_16_10411.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/01/image_15012025_06_01_16_9394.jpg
/home/pi/Desktop/images/15012025/06/01/image_15012025_06_01_26_10479.jpg
/home/pi/Desktop/images/15012025/06/01/image_15012025_06_01_36_9347.jpg
/home/pi/Desktop/images/15012025/06/01/image_15012025_06_01_46_10414.jpg
/home/pi/Desktop/images/15012025/06/01/image_15012025_06_02_06_9351.jpg
/home/pi/Desktop/images/15012025/06/02/image_15012025_06_02_16_10411.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329211325","1329211319","1329211396","1329211398","1329211358","1329211265"],"photo_ids_order":["1329211265","1329211319","1329211325","1329211358","1329211396","1329211398"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e263c737484432c0b76501bd5e757e4a.jpg","text":"TemporaryFile(/tmp/multipartBody721750673927323543asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970703525,"filename":"image_15012025_06_01_36_9347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3b23f0f5e2809d61fbe3bdd3303f6f79.jpg","text":"TemporaryFile(/tmp/multipartBody3042039883666925243asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970703525,"filename":"image_15012025_06_01_26_10479.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/385ce6f93437462bdb50e42024541c80.jpg","text":"TemporaryFile(/tmp/multipartBody5942024751333469925asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970703525,"filename":"image_15012025_06_02_06_9351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b823e7469c4e60cfa5987a4e2a1a2844.jpg","text":"TemporaryFile(/tmp/multipartBody7791850732722652377asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970703525,"filename":"image_15012025_06_02_16_10411.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/efda839af05a8580c79ae7fff131f860.jpg","text":"TemporaryFile(/tmp/multipartBody3098646260617649615asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970703525,"filename":"image_15012025_06_01_46_10414.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e6b05d5b929ae41a19502a6070dce6a9.jpg","text":"TemporaryFile(/tmp/multipartBody2861093477377057477asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970703525,"filename":"image_15012025_06_01_16_9394.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329211325","file1":"1329211319","file0":"1329211265","file4":"1329211396","file5":"1329211398","file3":"1329211358"},"map_files_photo_id_array":[{"photo_id":"1329211398","filename":"file5"},{"photo_id":"1329211325","filename":"file2"},{"photo_id":"1329211396","filename":"file4"},{"photo_id":"1329211319","filename":"file1"},{"photo_id":"1329211265","filename":"file0"},{"photo_id":"1329211358","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329211325":["hashtag1","hashtag2"]},{"1329211319":["hashtag1","hashtag2"]},{"1329211396":["hashtag1","hashtag2"]},{"1329211398":["hashtag1","hashtag2"]},{"1329211358":["hashtag1","hashtag2"]},{"1329211265":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329211325, 1329211319, 1329211396, 1329211398, 1329211358, 1329211265)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.366984844207764 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 15 --only_old 0
2025-01-15 20:51:32.903511
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/02/image_15012025_06_02_26_9391.jpg', '/home/pi/Desktop/images/15012025/06/02/image_15012025_06_02_36_10354.jpg', '/home/pi/Desktop/images/15012025/06/02/image_15012025_06_02_56_9357.jpg', '/home/pi/Desktop/images/15012025/06/02/image_15012025_06_03_06_10451.jpg', '/home/pi/Desktop/images/15012025/06/03/image_15012025_06_03_15_9348.jpg', '/home/pi/Desktop/images/15012025/06/03/image_15012025_06_03_36_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/02/image_15012025_06_02_26_9391.jpg
/home/pi/Desktop/images/15012025/06/02/image_15012025_06_02_36_10354.jpg
/home/pi/Desktop/images/15012025/06/02/image_15012025_06_02_56_9357.jpg
/home/pi/Desktop/images/15012025/06/02/image_15012025_06_03_06_10451.jpg
/home/pi/Desktop/images/15012025/06/03/image_15012025_06_03_15_9348.jpg
/home/pi/Desktop/images/15012025/06/03/image_15012025_06_03_36_10356.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329211418","1329211428","1329211422","1329211413","1329211439","1329211427"],"photo_ids_order":["1329211413","1329211418","1329211422","1329211427","1329211428","1329211439"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e12f2ba64461efc739f8713271120422.jpg","text":"TemporaryFile(/tmp/multipartBody6778513480345125277asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970754765,"filename":"image_15012025_06_02_36_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e831e444455d0e0f0c511e08313ff9d3.jpg","text":"TemporaryFile(/tmp/multipartBody6048078415402141834asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970754765,"filename":"image_15012025_06_03_15_9348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b88d774f858e9ca3d2317c9959aaed75.jpg","text":"TemporaryFile(/tmp/multipartBody8946159525773425315asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970754765,"filename":"image_15012025_06_02_56_9357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/df8bf3aafd9f55e2f85051a6a9996fa9.jpg","text":"TemporaryFile(/tmp/multipartBody167150427905626790asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970754765,"filename":"image_15012025_06_02_26_9391.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4bfb7057609a243823147e59dd8f191a.jpg","text":"TemporaryFile(/tmp/multipartBody5432141069630358364asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970754765,"filename":"image_15012025_06_03_36_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5167698423191152c8ed2744c20b5969.jpg","text":"TemporaryFile(/tmp/multipartBody3700124763288878282asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970754765,"filename":"image_15012025_06_03_06_10451.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329211422","file1":"1329211418","file0":"1329211413","file4":"1329211428","file5":"1329211439","file3":"1329211427"},"map_files_photo_id_array":[{"photo_id":"1329211439","filename":"file5"},{"photo_id":"1329211422","filename":"file2"},{"photo_id":"1329211428","filename":"file4"},{"photo_id":"1329211418","filename":"file1"},{"photo_id":"1329211413","filename":"file0"},{"photo_id":"1329211427","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329211418":["hashtag1","hashtag2"]},{"1329211428":["hashtag1","hashtag2"]},{"1329211422":["hashtag1","hashtag2"]},{"1329211413":["hashtag1","hashtag2"]},{"1329211439":["hashtag1","hashtag2"]},{"1329211427":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329211418, 1329211428, 1329211422, 1329211413, 1329211439, 1329211427)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.67232322692871 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 15 --only_old 0
2025-01-15 20:52:33.082757
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/03/image_15012025_06_03_46_9341.jpg', '/home/pi/Desktop/images/15012025/06/03/image_15012025_06_03_56_10371.jpg', '/home/pi/Desktop/images/15012025/06/03/image_15012025_06_04_06_10411.jpg', '/home/pi/Desktop/images/15012025/06/04/image_15012025_06_04_16_9346.jpg', '/home/pi/Desktop/images/15012025/06/04/image_15012025_06_04_26_10409.jpg', '/home/pi/Desktop/images/15012025/06/04/image_15012025_06_04_36_10363.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/03/image_15012025_06_03_46_9341.jpg
/home/pi/Desktop/images/15012025/06/03/image_15012025_06_03_56_10371.jpg
/home/pi/Desktop/images/15012025/06/03/image_15012025_06_04_06_10411.jpg
/home/pi/Desktop/images/15012025/06/04/image_15012025_06_04_16_9346.jpg
/home/pi/Desktop/images/15012025/06/04/image_15012025_06_04_26_10409.jpg
/home/pi/Desktop/images/15012025/06/04/image_15012025_06_04_36_10363.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329211508","1329211495","1329211456","1329211504","1329211521","1329211454"],"photo_ids_order":["1329211454","1329211456","1329211495","1329211504","1329211508","1329211521"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f2ad71bfa670a806719dab6435d722d2.jpg","text":"TemporaryFile(/tmp/multipartBody8854321899834632261asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970814087,"filename":"image_15012025_06_04_26_10409.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a9f9eb20b62f72d12750a6ed1e66a0f2.jpg","text":"TemporaryFile(/tmp/multipartBody1741322475909215448asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970814087,"filename":"image_15012025_06_04_06_10411.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/65eff94e132687ebc1b07979b42a0a16.jpg","text":"TemporaryFile(/tmp/multipartBody3252789168634247183asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970814087,"filename":"image_15012025_06_03_56_10371.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c00fe1a77c5c95b02e0a20ac6a92970d.jpg","text":"TemporaryFile(/tmp/multipartBody1055358592056335141asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970814087,"filename":"image_15012025_06_04_16_9346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9cdc0f830e0e87b103f2f42c45ae7b27.jpg","text":"TemporaryFile(/tmp/multipartBody6132883737363287129asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970814087,"filename":"image_15012025_06_04_36_10363.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/07b6ae0ff36c0d1fa8649df8fb809d60.jpg","text":"TemporaryFile(/tmp/multipartBody1000633336662140732asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970814087,"filename":"image_15012025_06_03_46_9341.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329211495","file1":"1329211456","file0":"1329211454","file4":"1329211508","file5":"1329211521","file3":"1329211504"},"map_files_photo_id_array":[{"photo_id":"1329211521","filename":"file5"},{"photo_id":"1329211495","filename":"file2"},{"photo_id":"1329211508","filename":"file4"},{"photo_id":"1329211456","filename":"file1"},{"photo_id":"1329211454","filename":"file0"},{"photo_id":"1329211504","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329211508":["hashtag1","hashtag2"]},{"1329211495":["hashtag1","hashtag2"]},{"1329211456":["hashtag1","hashtag2"]},{"1329211504":["hashtag1","hashtag2"]},{"1329211521":["hashtag1","hashtag2"]},{"1329211454":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329211508, 1329211495, 1329211456, 1329211504, 1329211521, 1329211454)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 48.42871165275574 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 15 --only_old 0
2025-01-15 20:53:32.201604
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/04/image_15012025_06_04_46_9346.jpg', '/home/pi/Desktop/images/15012025/06/04/image_15012025_06_04_56_10462.jpg', '/home/pi/Desktop/images/15012025/06/04/image_15012025_06_05_06_9363.jpg', '/home/pi/Desktop/images/15012025/06/05/image_15012025_06_05_16_10460.jpg', '/home/pi/Desktop/images/15012025/06/05/image_15012025_06_05_36_9337.jpg', '/home/pi/Desktop/images/15012025/06/05/image_15012025_06_05_46_10371.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/04/image_15012025_06_04_46_9346.jpg
/home/pi/Desktop/images/15012025/06/04/image_15012025_06_04_56_10462.jpg
/home/pi/Desktop/images/15012025/06/04/image_15012025_06_05_06_9363.jpg
/home/pi/Desktop/images/15012025/06/05/image_15012025_06_05_16_10460.jpg
/home/pi/Desktop/images/15012025/06/05/image_15012025_06_05_36_9337.jpg
/home/pi/Desktop/images/15012025/06/05/image_15012025_06_05_46_10371.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329211578","1329211563","1329211566","1329211575","1329211580","1329211571"],"photo_ids_order":["1329211563","1329211566","1329211571","1329211575","1329211578","1329211580"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b04b80497eea79e543399e30aacbb17a.jpg","text":"TemporaryFile(/tmp/multipartBody5943553269687229050asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970873233,"filename":"image_15012025_06_05_36_9337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/20e900a4d013e1f08884987b1a2b9ae0.jpg","text":"TemporaryFile(/tmp/multipartBody8829866179223439224asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970873233,"filename":"image_15012025_06_04_46_9346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9322bed3fbe31ae06478cc2d7eb638c4.jpg","text":"TemporaryFile(/tmp/multipartBody2745162545974169559asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970873233,"filename":"image_15012025_06_04_56_10462.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cbb96a5896a1f7027589d2e96be319b4.jpg","text":"TemporaryFile(/tmp/multipartBody1967498880832764544asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970873233,"filename":"image_15012025_06_05_16_10460.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b049fc12d0c491baca55536c70620f51.jpg","text":"TemporaryFile(/tmp/multipartBody9011667771160101222asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970873233,"filename":"image_15012025_06_05_46_10371.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5f45addeb7791f2bf74ead4e1bb0a7b4.jpg","text":"TemporaryFile(/tmp/multipartBody4127978010239440962asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970873233,"filename":"image_15012025_06_05_06_9363.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329211571","file1":"1329211566","file0":"1329211563","file4":"1329211578","file5":"1329211580","file3":"1329211575"},"map_files_photo_id_array":[{"photo_id":"1329211580","filename":"file5"},{"photo_id":"1329211571","filename":"file2"},{"photo_id":"1329211578","filename":"file4"},{"photo_id":"1329211566","filename":"file1"},{"photo_id":"1329211563","filename":"file0"},{"photo_id":"1329211575","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329211578":["hashtag1","hashtag2"]},{"1329211563":["hashtag1","hashtag2"]},{"1329211566":["hashtag1","hashtag2"]},{"1329211575":["hashtag1","hashtag2"]},{"1329211580":["hashtag1","hashtag2"]},{"1329211571":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329211578, 1329211563, 1329211566, 1329211575, 1329211580, 1329211571)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.0957612991333 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 15 --only_old 0
2025-01-15 20:54:32.429299
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/05/image_15012025_06_05_55_9357.jpg', '/home/pi/Desktop/images/15012025/06/05/image_15012025_06_06_06_10336.jpg', '/home/pi/Desktop/images/15012025/06/06/image_15012025_06_06_16_10422.jpg', '/home/pi/Desktop/images/15012025/06/06/image_15012025_06_06_26_9360.jpg', '/home/pi/Desktop/images/15012025/06/06/image_15012025_06_06_36_10433.jpg', '/home/pi/Desktop/images/15012025/06/06/image_15012025_06_06_56_9353.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/05/image_15012025_06_05_55_9357.jpg
/home/pi/Desktop/images/15012025/06/05/image_15012025_06_06_06_10336.jpg
/home/pi/Desktop/images/15012025/06/06/image_15012025_06_06_16_10422.jpg
/home/pi/Desktop/images/15012025/06/06/image_15012025_06_06_26_9360.jpg
/home/pi/Desktop/images/15012025/06/06/image_15012025_06_06_36_10433.jpg
/home/pi/Desktop/images/15012025/06/06/image_15012025_06_06_56_9353.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329211603","1329211599","1329211593","1329211614","1329211617","1329211595"],"photo_ids_order":["1329211593","1329211595","1329211599","1329211603","1329211614","1329211617"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/69064d7d7291e8b951a71852d9c14875.jpg","text":"TemporaryFile(/tmp/multipartBody6828208623106208582asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970933449,"filename":"image_15012025_06_06_26_9360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/22293e05261a07045a8d6fd8a0714da2.jpg","text":"TemporaryFile(/tmp/multipartBody7506348166090236688asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970933449,"filename":"image_15012025_06_06_16_10422.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f6ca5f922ff1616bb908c1b79f89401b.jpg","text":"TemporaryFile(/tmp/multipartBody5521881662683492884asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970933449,"filename":"image_15012025_06_05_55_9357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9e215c224b6b4ca07e202253e026bfcf.jpg","text":"TemporaryFile(/tmp/multipartBody5039429832534815913asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970933449,"filename":"image_15012025_06_06_36_10433.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dd70bf6066bd7cc93c68392cd8772d01.jpg","text":"TemporaryFile(/tmp/multipartBody2479160764122203465asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970933449,"filename":"image_15012025_06_06_56_9353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/51d2e089f01e277d09a25f884871880a.jpg","text":"TemporaryFile(/tmp/multipartBody7464837210046717515asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970933449,"filename":"image_15012025_06_06_06_10336.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329211599","file1":"1329211595","file0":"1329211593","file4":"1329211614","file5":"1329211617","file3":"1329211603"},"map_files_photo_id_array":[{"photo_id":"1329211617","filename":"file5"},{"photo_id":"1329211599","filename":"file2"},{"photo_id":"1329211614","filename":"file4"},{"photo_id":"1329211595","filename":"file1"},{"photo_id":"1329211593","filename":"file0"},{"photo_id":"1329211603","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329211603":["hashtag1","hashtag2"]},{"1329211599":["hashtag1","hashtag2"]},{"1329211593":["hashtag1","hashtag2"]},{"1329211614":["hashtag1","hashtag2"]},{"1329211617":["hashtag1","hashtag2"]},{"1329211595":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329211603, 1329211599, 1329211593, 1329211614, 1329211617, 1329211595)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.564982891082764 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 15 --only_old 0
2025-01-15 20:55:32.745061
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/06/image_15012025_06_07_06_10321.jpg', '/home/pi/Desktop/images/15012025/06/07/image_15012025_06_07_16_9437.jpg', '/home/pi/Desktop/images/15012025/06/07/image_15012025_06_07_26_10354.jpg', '/home/pi/Desktop/images/15012025/06/07/image_15012025_06_07_36_10446.jpg', '/home/pi/Desktop/images/15012025/06/07/image_15012025_06_07_56_10398.jpg', '/home/pi/Desktop/images/15012025/06/07/image_15012025_06_08_06_10365.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/06/image_15012025_06_07_06_10321.jpg
/home/pi/Desktop/images/15012025/06/07/image_15012025_06_07_16_9437.jpg
/home/pi/Desktop/images/15012025/06/07/image_15012025_06_07_26_10354.jpg
/home/pi/Desktop/images/15012025/06/07/image_15012025_06_07_36_10446.jpg
/home/pi/Desktop/images/15012025/06/07/image_15012025_06_07_56_10398.jpg
/home/pi/Desktop/images/15012025/06/07/image_15012025_06_08_06_10365.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329211756","1329211741","1329211752","1329211748","1329211745","1329211739"],"photo_ids_order":["1329211739","1329211741","1329211745","1329211748","1329211752","1329211756"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/988cbe1e5f049835411869d0e77d51a7.jpg","text":"TemporaryFile(/tmp/multipartBody4714391065936502188asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970993755,"filename":"image_15012025_06_08_06_10365.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ea062d14ea3e83551c291577094bce57.jpg","text":"TemporaryFile(/tmp/multipartBody424473066744706947asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970993755,"filename":"image_15012025_06_07_16_9437.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fbf269c845c7ef052f055a7918d1298e.jpg","text":"TemporaryFile(/tmp/multipartBody1851179398151667011asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970993755,"filename":"image_15012025_06_07_56_10398.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1e3c7da281045a1930aa74f9eed0b68c.jpg","text":"TemporaryFile(/tmp/multipartBody5567485610556427185asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970993755,"filename":"image_15012025_06_07_36_10446.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fafbc20d85dbd9bce1144d7241c0f237.jpg","text":"TemporaryFile(/tmp/multipartBody3023185898757300771asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970993755,"filename":"image_15012025_06_07_26_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d80e7432d832ea4e8858ab247b52eba1.jpg","text":"TemporaryFile(/tmp/multipartBody5811256417797287956asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736970993755,"filename":"image_15012025_06_07_06_10321.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329211745","file1":"1329211741","file0":"1329211739","file4":"1329211752","file5":"1329211756","file3":"1329211748"},"map_files_photo_id_array":[{"photo_id":"1329211756","filename":"file5"},{"photo_id":"1329211745","filename":"file2"},{"photo_id":"1329211752","filename":"file4"},{"photo_id":"1329211741","filename":"file1"},{"photo_id":"1329211739","filename":"file0"},{"photo_id":"1329211748","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329211756":["hashtag1","hashtag2"]},{"1329211741":["hashtag1","hashtag2"]},{"1329211752":["hashtag1","hashtag2"]},{"1329211748":["hashtag1","hashtag2"]},{"1329211745":["hashtag1","hashtag2"]},{"1329211739":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329211756, 1329211741, 1329211752, 1329211748, 1329211745, 1329211739)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.412879943847656 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 15 --only_old 0
2025-01-15 20:56:32.964089
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/08/image_15012025_06_08_16_9344.jpg', '/home/pi/Desktop/images/15012025/06/08/image_15012025_06_08_26_10386.jpg', '/home/pi/Desktop/images/15012025/06/08/image_15012025_06_08_35_9345.jpg', '/home/pi/Desktop/images/15012025/06/08/image_15012025_06_08_46_10338.jpg', '/home/pi/Desktop/images/15012025/06/08/image_15012025_06_08_56_10359.jpg', '/home/pi/Desktop/images/15012025/06/08/image_15012025_06_09_06_9424.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/08/image_15012025_06_08_16_9344.jpg
/home/pi/Desktop/images/15012025/06/08/image_15012025_06_08_26_10386.jpg
/home/pi/Desktop/images/15012025/06/08/image_15012025_06_08_35_9345.jpg
/home/pi/Desktop/images/15012025/06/08/image_15012025_06_08_46_10338.jpg
/home/pi/Desktop/images/15012025/06/08/image_15012025_06_08_56_10359.jpg
/home/pi/Desktop/images/15012025/06/08/image_15012025_06_09_06_9424.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329211813","1329211801","1329211807","1329211776","1329211785","1329211821"],"photo_ids_order":["1329211776","1329211785","1329211801","1329211807","1329211813","1329211821"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5a3374621fc03b598317897477ac25cd.jpg","text":"TemporaryFile(/tmp/multipartBody4778406708173600153asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971053973,"filename":"image_15012025_06_08_56_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/874b704b3eeb25dc406d5e96402d831b.jpg","text":"TemporaryFile(/tmp/multipartBody1028847156764665423asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971053973,"filename":"image_15012025_06_08_35_9345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ec1dc40d03c595a63c61de558fc4e84d.jpg","text":"TemporaryFile(/tmp/multipartBody3526539281199304712asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971053973,"filename":"image_15012025_06_08_46_10338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/482e85444e9cbd467d774ac6b12b89a2.jpg","text":"TemporaryFile(/tmp/multipartBody5102374120718807807asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971053973,"filename":"image_15012025_06_08_16_9344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6cd87413199316b1c8407edb4e7e63d0.jpg","text":"TemporaryFile(/tmp/multipartBody2971564252114684956asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971053973,"filename":"image_15012025_06_08_26_10386.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/19971b6e80abc4d52bc8f665f429a3eb.jpg","text":"TemporaryFile(/tmp/multipartBody6047190485404288241asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971053973,"filename":"image_15012025_06_09_06_9424.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329211801","file1":"1329211785","file0":"1329211776","file4":"1329211813","file5":"1329211821","file3":"1329211807"},"map_files_photo_id_array":[{"photo_id":"1329211821","filename":"file5"},{"photo_id":"1329211801","filename":"file2"},{"photo_id":"1329211813","filename":"file4"},{"photo_id":"1329211785","filename":"file1"},{"photo_id":"1329211776","filename":"file0"},{"photo_id":"1329211807","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329211813":["hashtag1","hashtag2"]},{"1329211801":["hashtag1","hashtag2"]},{"1329211807":["hashtag1","hashtag2"]},{"1329211776":["hashtag1","hashtag2"]},{"1329211785":["hashtag1","hashtag2"]},{"1329211821":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329211813, 1329211801, 1329211807, 1329211776, 1329211785, 1329211821)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.7634859085083 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 15 --only_old 0
2025-01-15 20:57:33.199062
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/09/image_15012025_06_09_16_10513.jpg', '/home/pi/Desktop/images/15012025/06/09/image_15012025_06_09_26_9397.jpg', '/home/pi/Desktop/images/15012025/06/09/image_15012025_06_09_36_10331.jpg', '/home/pi/Desktop/images/15012025/06/09/image_15012025_06_09_46_10436.jpg', '/home/pi/Desktop/images/15012025/06/09/image_15012025_06_09_56_9358.jpg', '/home/pi/Desktop/images/15012025/06/09/image_15012025_06_10_06_10511.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/09/image_15012025_06_09_16_10513.jpg
/home/pi/Desktop/images/15012025/06/09/image_15012025_06_09_26_9397.jpg
/home/pi/Desktop/images/15012025/06/09/image_15012025_06_09_36_10331.jpg
/home/pi/Desktop/images/15012025/06/09/image_15012025_06_09_46_10436.jpg
/home/pi/Desktop/images/15012025/06/09/image_15012025_06_09_56_9358.jpg
/home/pi/Desktop/images/15012025/06/09/image_15012025_06_10_06_10511.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
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
2025-01-15 20:59:04.638280
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/09/image_15012025_06_09_16_10513.jpg', '/home/pi/Desktop/images/15012025/06/09/image_15012025_06_09_26_9397.jpg', '/home/pi/Desktop/images/15012025/06/09/image_15012025_06_09_36_10331.jpg', '/home/pi/Desktop/images/15012025/06/09/image_15012025_06_09_46_10436.jpg', '/home/pi/Desktop/images/15012025/06/09/image_15012025_06_09_56_9358.jpg', '/home/pi/Desktop/images/15012025/06/09/image_15012025_06_10_06_10511.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/09/image_15012025_06_09_16_10513.jpg
/home/pi/Desktop/images/15012025/06/09/image_15012025_06_09_26_9397.jpg
/home/pi/Desktop/images/15012025/06/09/image_15012025_06_09_36_10331.jpg
/home/pi/Desktop/images/15012025/06/09/image_15012025_06_09_46_10436.jpg
/home/pi/Desktop/images/15012025/06/09/image_15012025_06_09_56_9358.jpg
/home/pi/Desktop/images/15012025/06/09/image_15012025_06_10_06_10511.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329212026","1329212017","1329212005","1329212028","1329212021","1329212030"],"photo_ids_order":["1329212005","1329212017","1329212021","1329212026","1329212028","1329212030"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d938a52dab97152316655aa0c4eac3f9.jpg","text":"TemporaryFile(/tmp/multipartBody1116879752572760958asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971205691,"filename":"image_15012025_06_09_46_10436.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6ecf77cf5939d2aa739dde54529104cc.jpg","text":"TemporaryFile(/tmp/multipartBody7687127654933410063asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971205691,"filename":"image_15012025_06_09_26_9397.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cac96fff3c724730c2e3bba5c2ad3daa.jpg","text":"TemporaryFile(/tmp/multipartBody5800325205240604723asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971205691,"filename":"image_15012025_06_09_16_10513.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9d1c5a96e45a979feeee5a5c80f93cf4.jpg","text":"TemporaryFile(/tmp/multipartBody2186531307335838597asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971205691,"filename":"image_15012025_06_09_56_9358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/00ab82627b49f190c9bdaafbc2624130.jpg","text":"TemporaryFile(/tmp/multipartBody6786186900668881125asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971205691,"filename":"image_15012025_06_09_36_10331.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f28624f05d4f0b70f3135039712d6418.jpg","text":"TemporaryFile(/tmp/multipartBody2609931591501548449asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971205691,"filename":"image_15012025_06_10_06_10511.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329212021","file1":"1329212017","file0":"1329212005","file4":"1329212028","file5":"1329212030","file3":"1329212026"},"map_files_photo_id_array":[{"photo_id":"1329212030","filename":"file5"},{"photo_id":"1329212021","filename":"file2"},{"photo_id":"1329212028","filename":"file4"},{"photo_id":"1329212017","filename":"file1"},{"photo_id":"1329212005","filename":"file0"},{"photo_id":"1329212026","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329212026":["hashtag1","hashtag2"]},{"1329212017":["hashtag1","hashtag2"]},{"1329212005":["hashtag1","hashtag2"]},{"1329212028":["hashtag1","hashtag2"]},{"1329212021":["hashtag1","hashtag2"]},{"1329212030":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329212026, 1329212017, 1329212005, 1329212028, 1329212021, 1329212030)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.30886936187744 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 15 --only_old 0
2025-01-15 20:59:52.996484
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/10/image_15012025_06_10_15_9342.jpg', '/home/pi/Desktop/images/15012025/06/10/image_15012025_06_10_26_10360.jpg', '/home/pi/Desktop/images/15012025/06/10/image_15012025_06_10_36_10338.jpg', '/home/pi/Desktop/images/15012025/06/10/image_15012025_06_10_46_9353.jpg', '/home/pi/Desktop/images/15012025/06/10/image_15012025_06_10_56_10484.jpg', '/home/pi/Desktop/images/15012025/06/10/image_15012025_06_11_06_10362.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/10/image_15012025_06_10_15_9342.jpg
/home/pi/Desktop/images/15012025/06/10/image_15012025_06_10_26_10360.jpg
/home/pi/Desktop/images/15012025/06/10/image_15012025_06_10_36_10338.jpg
/home/pi/Desktop/images/15012025/06/10/image_15012025_06_10_46_9353.jpg
/home/pi/Desktop/images/15012025/06/10/image_15012025_06_10_56_10484.jpg
/home/pi/Desktop/images/15012025/06/10/image_15012025_06_11_06_10362.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329212050","1329212035","1329212040","1329212046","1329212048","1329212042"],"photo_ids_order":["1329212035","1329212040","1329212042","1329212046","1329212048","1329212050"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1753a9b65ceb898c3f7fd32150400f53.jpg","text":"TemporaryFile(/tmp/multipartBody1362757103108977108asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971253988,"filename":"image_15012025_06_11_06_10362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1303d9d4dcc9ad9f73e51f6f658cd456.jpg","text":"TemporaryFile(/tmp/multipartBody926095985636209039asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971253988,"filename":"image_15012025_06_10_15_9342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3b46ff614b8dd6065a7e2921afeb6232.jpg","text":"TemporaryFile(/tmp/multipartBody3087991681936800674asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971253988,"filename":"image_15012025_06_10_26_10360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/57e496c8c6b6b5aa943298fa5eb94b49.jpg","text":"TemporaryFile(/tmp/multipartBody1670501560758496950asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971253988,"filename":"image_15012025_06_10_46_9353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9fcdc514dc07067f08a5d60203f4f23e.jpg","text":"TemporaryFile(/tmp/multipartBody5217829862412608238asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971253988,"filename":"image_15012025_06_10_56_10484.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8e8c575786e48d81e857ab5c65a0a246.jpg","text":"TemporaryFile(/tmp/multipartBody4901369877660033130asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971253988,"filename":"image_15012025_06_10_36_10338.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329212042","file1":"1329212040","file0":"1329212035","file4":"1329212048","file5":"1329212050","file3":"1329212046"},"map_files_photo_id_array":[{"photo_id":"1329212050","filename":"file5"},{"photo_id":"1329212042","filename":"file2"},{"photo_id":"1329212048","filename":"file4"},{"photo_id":"1329212040","filename":"file1"},{"photo_id":"1329212035","filename":"file0"},{"photo_id":"1329212046","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329212050":["hashtag1","hashtag2"]},{"1329212035":["hashtag1","hashtag2"]},{"1329212040":["hashtag1","hashtag2"]},{"1329212046":["hashtag1","hashtag2"]},{"1329212048":["hashtag1","hashtag2"]},{"1329212042":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329212050, 1329212035, 1329212040, 1329212046, 1329212048, 1329212042)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.27076578140259 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
2025-01-15 21:00:42.264175
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/11/image_15012025_06_11_16_9330.jpg', '/home/pi/Desktop/images/15012025/06/11/image_15012025_06_11_26_10398.jpg', '/home/pi/Desktop/images/15012025/06/11/image_15012025_06_11_35_9347.jpg', '/home/pi/Desktop/images/15012025/06/11/image_15012025_06_12_06_9350.jpg', '/home/pi/Desktop/images/15012025/06/12/image_15012025_06_12_16_10366.jpg', '/home/pi/Desktop/images/15012025/06/12/image_15012025_06_12_26_10336.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/11/image_15012025_06_11_16_9330.jpg
/home/pi/Desktop/images/15012025/06/11/image_15012025_06_11_26_10398.jpg
/home/pi/Desktop/images/15012025/06/11/image_15012025_06_11_35_9347.jpg
/home/pi/Desktop/images/15012025/06/11/image_15012025_06_12_06_9350.jpg
/home/pi/Desktop/images/15012025/06/12/image_15012025_06_12_16_10366.jpg
/home/pi/Desktop/images/15012025/06/12/image_15012025_06_12_26_10336.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329212083","1329212077","1329212071","1329212086","1329212080","1329212074"],"photo_ids_order":["1329212071","1329212074","1329212077","1329212080","1329212083","1329212086"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0c93e7786395547913d31d916c574507.jpg","text":"TemporaryFile(/tmp/multipartBody7356203747037387835asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971303259,"filename":"image_15012025_06_12_16_10366.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/50d92bb54ce546578a76a212518beab0.jpg","text":"TemporaryFile(/tmp/multipartBody4641602266625111716asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971303259,"filename":"image_15012025_06_11_35_9347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/50f588f915b4e97d4a900113abaac58a.jpg","text":"TemporaryFile(/tmp/multipartBody771423541454954350asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971303259,"filename":"image_15012025_06_11_16_9330.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f3f945bce4f0fafb446b37e4c63c9de9.jpg","text":"TemporaryFile(/tmp/multipartBody7867949043372611749asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971303259,"filename":"image_15012025_06_12_26_10336.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3ddede31909b9d408d4dcee1c8c7ff9d.jpg","text":"TemporaryFile(/tmp/multipartBody4076820263213309007asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971303259,"filename":"image_15012025_06_12_06_9350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/25cdfd90cbbb027b31f58eacdf068600.jpg","text":"TemporaryFile(/tmp/multipartBody7706458339856010535asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971303259,"filename":"image_15012025_06_11_26_10398.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329212077","file1":"1329212074","file0":"1329212071","file4":"1329212083","file5":"1329212086","file3":"1329212080"},"map_files_photo_id_array":[{"photo_id":"1329212086","filename":"file5"},{"photo_id":"1329212077","filename":"file2"},{"photo_id":"1329212083","filename":"file4"},{"photo_id":"1329212074","filename":"file1"},{"photo_id":"1329212071","filename":"file0"},{"photo_id":"1329212080","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329212083":["hashtag1","hashtag2"]},{"1329212077":["hashtag1","hashtag2"]},{"1329212071":["hashtag1","hashtag2"]},{"1329212086":["hashtag1","hashtag2"]},{"1329212080":["hashtag1","hashtag2"]},{"1329212074":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329212083, 1329212077, 1329212071, 1329212086, 1329212080, 1329212074)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.868690729141235 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 15 --only_old 0
2025-01-15 21:01:32.443407
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/12/image_15012025_06_12_36_9337.jpg', '/home/pi/Desktop/images/15012025/06/12/image_15012025_06_12_46_10360.jpg', '/home/pi/Desktop/images/15012025/06/12/image_15012025_06_12_55_9343.jpg', '/home/pi/Desktop/images/15012025/06/12/image_15012025_06_13_06_10378.jpg', '/home/pi/Desktop/images/15012025/06/13/image_15012025_06_13_16_10376.jpg', '/home/pi/Desktop/images/15012025/06/13/image_15012025_06_13_26_9443.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/12/image_15012025_06_12_36_9337.jpg
/home/pi/Desktop/images/15012025/06/12/image_15012025_06_12_46_10360.jpg
/home/pi/Desktop/images/15012025/06/12/image_15012025_06_12_55_9343.jpg
/home/pi/Desktop/images/15012025/06/12/image_15012025_06_13_06_10378.jpg
/home/pi/Desktop/images/15012025/06/13/image_15012025_06_13_16_10376.jpg
/home/pi/Desktop/images/15012025/06/13/image_15012025_06_13_26_9443.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329212452","1329212395","1329212349","1329212256","1329212396","1329212141"],"photo_ids_order":["1329212141","1329212256","1329212349","1329212395","1329212396","1329212452"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/488a74b73e11e4e411e2656e4b0ad55c.jpg","text":"TemporaryFile(/tmp/multipartBody663793092993256846asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971353457,"filename":"image_15012025_06_13_26_9443.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fff4ed51d0876788d1c2993bc2f2e144.jpg","text":"TemporaryFile(/tmp/multipartBody840470647459499386asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971353457,"filename":"image_15012025_06_13_06_10378.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9c3056b3261e7ef5898604793a23dfb3.jpg","text":"TemporaryFile(/tmp/multipartBody7173110432689385569asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971353457,"filename":"image_15012025_06_12_55_9343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c3bb043e8d23e399be40dbe36be40a84.jpg","text":"TemporaryFile(/tmp/multipartBody9101183172023241622asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971353457,"filename":"image_15012025_06_12_46_10360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3e5ba43a564963a7572b42ec564549bf.jpg","text":"TemporaryFile(/tmp/multipartBody8777670796337292600asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971353457,"filename":"image_15012025_06_13_16_10376.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/03b74f1a363f95df5d086a7f69286473.jpg","text":"TemporaryFile(/tmp/multipartBody9092474358717708727asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971353457,"filename":"image_15012025_06_12_36_9337.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329212349","file1":"1329212256","file0":"1329212141","file4":"1329212396","file5":"1329212452","file3":"1329212395"},"map_files_photo_id_array":[{"photo_id":"1329212452","filename":"file5"},{"photo_id":"1329212349","filename":"file2"},{"photo_id":"1329212396","filename":"file4"},{"photo_id":"1329212256","filename":"file1"},{"photo_id":"1329212141","filename":"file0"},{"photo_id":"1329212395","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329212452":["hashtag1","hashtag2"]},{"1329212395":["hashtag1","hashtag2"]},{"1329212349":["hashtag1","hashtag2"]},{"1329212256":["hashtag1","hashtag2"]},{"1329212396":["hashtag1","hashtag2"]},{"1329212141":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329212452, 1329212395, 1329212349, 1329212256, 1329212396, 1329212141)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.08088421821594 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 15 --only_old 0
2025-01-15 21:02:32.848993
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/13/image_15012025_06_13_36_10508.jpg', '/home/pi/Desktop/images/15012025/06/13/image_15012025_06_13_45_9348.jpg', '/home/pi/Desktop/images/15012025/06/13/image_15012025_06_13_56_10366.jpg', '/home/pi/Desktop/images/15012025/06/13/image_15012025_06_14_06_10348.jpg', '/home/pi/Desktop/images/15012025/06/14/image_15012025_06_14_16_9345.jpg', '/home/pi/Desktop/images/15012025/06/14/image_15012025_06_14_26_10369.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/13/image_15012025_06_13_36_10508.jpg
/home/pi/Desktop/images/15012025/06/13/image_15012025_06_13_45_9348.jpg
/home/pi/Desktop/images/15012025/06/13/image_15012025_06_13_56_10366.jpg
/home/pi/Desktop/images/15012025/06/13/image_15012025_06_14_06_10348.jpg
/home/pi/Desktop/images/15012025/06/14/image_15012025_06_14_16_9345.jpg
/home/pi/Desktop/images/15012025/06/14/image_15012025_06_14_26_10369.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329212707","1329212706","1329212585","1329212588","1329212593","1329212627"],"photo_ids_order":["1329212585","1329212588","1329212593","1329212627","1329212706","1329212707"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/56a74c2cee2e4dcc6e18b2604582d9bc.jpg","text":"TemporaryFile(/tmp/multipartBody2082672609019691706asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971413859,"filename":"image_15012025_06_14_26_10369.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9f96f29eb3c3410ad588c0f05e59e9f5.jpg","text":"TemporaryFile(/tmp/multipartBody1203611481470650896asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971413859,"filename":"image_15012025_06_14_16_9345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/705e6ad36d1e42e6469c0eb80035cf83.jpg","text":"TemporaryFile(/tmp/multipartBody8698662488449283819asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971413859,"filename":"image_15012025_06_13_36_10508.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3ed1a85a1ef6681742bb3994b144da2a.jpg","text":"TemporaryFile(/tmp/multipartBody1532677325786806355asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971413859,"filename":"image_15012025_06_13_45_9348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/256c93307c946f154557c168746e765f.jpg","text":"TemporaryFile(/tmp/multipartBody5077659465364550914asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971413859,"filename":"image_15012025_06_13_56_10366.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a421cda555fa3063fa48b40b7c8c1d79.jpg","text":"TemporaryFile(/tmp/multipartBody8570536530311204501asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971413859,"filename":"image_15012025_06_14_06_10348.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329212593","file1":"1329212588","file0":"1329212585","file4":"1329212706","file5":"1329212707","file3":"1329212627"},"map_files_photo_id_array":[{"photo_id":"1329212707","filename":"file5"},{"photo_id":"1329212593","filename":"file2"},{"photo_id":"1329212706","filename":"file4"},{"photo_id":"1329212588","filename":"file1"},{"photo_id":"1329212585","filename":"file0"},{"photo_id":"1329212627","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329212707":["hashtag1","hashtag2"]},{"1329212706":["hashtag1","hashtag2"]},{"1329212585":["hashtag1","hashtag2"]},{"1329212588":["hashtag1","hashtag2"]},{"1329212593":["hashtag1","hashtag2"]},{"1329212627":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329212707, 1329212706, 1329212585, 1329212588, 1329212593, 1329212627)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.90688133239746 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 15 --only_old 0
2025-01-15 21:03:33.027063
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/14/image_15012025_06_14_36_10377.jpg', '/home/pi/Desktop/images/15012025/06/14/image_15012025_06_14_46_9327.jpg', '/home/pi/Desktop/images/15012025/06/14/image_15012025_06_14_56_10492.jpg', '/home/pi/Desktop/images/15012025/06/14/image_15012025_06_15_05_9340.jpg', '/home/pi/Desktop/images/15012025/06/15/image_15012025_06_15_46_10356.jpg', '/home/pi/Desktop/images/15012025/06/16/image_15012025_06_16_16_10450.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/14/image_15012025_06_14_36_10377.jpg
/home/pi/Desktop/images/15012025/06/14/image_15012025_06_14_46_9327.jpg
/home/pi/Desktop/images/15012025/06/14/image_15012025_06_14_56_10492.jpg
/home/pi/Desktop/images/15012025/06/14/image_15012025_06_15_05_9340.jpg
/home/pi/Desktop/images/15012025/06/15/image_15012025_06_15_46_10356.jpg
/home/pi/Desktop/images/15012025/06/16/image_15012025_06_16_16_10450.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329212752","1329212722","1329212769","1329212748","1329212771","1329212744"],"photo_ids_order":["1329212722","1329212744","1329212748","1329212752","1329212769","1329212771"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d1768ca9ffa18620c7917e4520f89d88.jpg","text":"TemporaryFile(/tmp/multipartBody4881111925358036746asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971474022,"filename":"image_15012025_06_15_05_9340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/287a85aab46eadec0c9bfb56f6008660.jpg","text":"TemporaryFile(/tmp/multipartBody3792767260712984602asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971474022,"filename":"image_15012025_06_14_36_10377.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fc4777c8ed62d1a2e8db57b379b3aef0.jpg","text":"TemporaryFile(/tmp/multipartBody1573731883237080616asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971474022,"filename":"image_15012025_06_15_46_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6ad0b807621593b3cbff4cd307b18832.jpg","text":"TemporaryFile(/tmp/multipartBody4417009261432390572asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971474022,"filename":"image_15012025_06_14_56_10492.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6e1220ef5f0c0ea968ecdb4a20ca4352.jpg","text":"TemporaryFile(/tmp/multipartBody4831982373567505982asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971474022,"filename":"image_15012025_06_16_16_10450.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4fcbb76ef62c9961104d92b55e1c31ee.jpg","text":"TemporaryFile(/tmp/multipartBody4729823391584568366asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971474022,"filename":"image_15012025_06_14_46_9327.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329212748","file1":"1329212744","file0":"1329212722","file4":"1329212769","file5":"1329212771","file3":"1329212752"},"map_files_photo_id_array":[{"photo_id":"1329212771","filename":"file5"},{"photo_id":"1329212748","filename":"file2"},{"photo_id":"1329212769","filename":"file4"},{"photo_id":"1329212744","filename":"file1"},{"photo_id":"1329212722","filename":"file0"},{"photo_id":"1329212752","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329212752":["hashtag1","hashtag2"]},{"1329212722":["hashtag1","hashtag2"]},{"1329212769":["hashtag1","hashtag2"]},{"1329212748":["hashtag1","hashtag2"]},{"1329212771":["hashtag1","hashtag2"]},{"1329212744":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329212752, 1329212722, 1329212769, 1329212748, 1329212771, 1329212744)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.70922327041626 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 15 --only_old 0
2025-01-15 21:04:32.183242
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/18/image_15012025_06_18_16_9326.jpg', '/home/pi/Desktop/images/15012025/06/18/image_15012025_06_18_26_10431.jpg', '/home/pi/Desktop/images/15012025/06/18/image_15012025_06_18_36_9410.jpg', '/home/pi/Desktop/images/15012025/06/18/image_15012025_06_18_56_10382.jpg', '/home/pi/Desktop/images/15012025/06/18/image_15012025_06_19_06_9327.jpg', '/home/pi/Desktop/images/15012025/06/19/image_15012025_06_19_16_10391.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/18/image_15012025_06_18_16_9326.jpg
/home/pi/Desktop/images/15012025/06/18/image_15012025_06_18_26_10431.jpg
/home/pi/Desktop/images/15012025/06/18/image_15012025_06_18_36_9410.jpg
/home/pi/Desktop/images/15012025/06/18/image_15012025_06_18_56_10382.jpg
/home/pi/Desktop/images/15012025/06/18/image_15012025_06_19_06_9327.jpg
/home/pi/Desktop/images/15012025/06/19/image_15012025_06_19_16_10391.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329212800","1329212803","1329212805","1329212808","1329212807","1329212797"],"photo_ids_order":["1329212797","1329212800","1329212803","1329212805","1329212807","1329212808"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/916687fcd340ac7d3ff80fadf63b226b.jpg","text":"TemporaryFile(/tmp/multipartBody3205578095662550115asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971533304,"filename":"image_15012025_06_18_26_10431.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4967df2fd6341a57e5331aa4f4e9d701.jpg","text":"TemporaryFile(/tmp/multipartBody9005361331112206095asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971533304,"filename":"image_15012025_06_18_36_9410.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/308dea76e8523456b960a89960abdbd6.jpg","text":"TemporaryFile(/tmp/multipartBody2506971747354363370asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971533304,"filename":"image_15012025_06_18_56_10382.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a00746f3f091aadbfba347beee622bd7.jpg","text":"TemporaryFile(/tmp/multipartBody8401848803036227368asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971533304,"filename":"image_15012025_06_19_16_10391.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9012fe50ec7d7efd206d2cd1879196de.jpg","text":"TemporaryFile(/tmp/multipartBody1113071138928833995asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971533304,"filename":"image_15012025_06_19_06_9327.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/46947535ce78555036b8549aed01e9ae.jpg","text":"TemporaryFile(/tmp/multipartBody264005311052427149asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971533304,"filename":"image_15012025_06_18_16_9326.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329212803","file1":"1329212800","file0":"1329212797","file4":"1329212807","file5":"1329212808","file3":"1329212805"},"map_files_photo_id_array":[{"photo_id":"1329212808","filename":"file5"},{"photo_id":"1329212803","filename":"file2"},{"photo_id":"1329212807","filename":"file4"},{"photo_id":"1329212800","filename":"file1"},{"photo_id":"1329212797","filename":"file0"},{"photo_id":"1329212805","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329212800":["hashtag1","hashtag2"]},{"1329212803":["hashtag1","hashtag2"]},{"1329212805":["hashtag1","hashtag2"]},{"1329212808":["hashtag1","hashtag2"]},{"1329212807":["hashtag1","hashtag2"]},{"1329212797":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329212800, 1329212803, 1329212805, 1329212808, 1329212807, 1329212797)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.330240964889526 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 15 --only_old 0
2025-01-15 21:05:32.527505
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/19/image_15012025_06_19_26_10389.jpg', '/home/pi/Desktop/images/15012025/06/19/image_15012025_06_19_36_9337.jpg', '/home/pi/Desktop/images/15012025/06/19/image_15012025_06_19_46_10460.jpg', '/home/pi/Desktop/images/15012025/06/19/image_15012025_06_19_56_9353.jpg', '/home/pi/Desktop/images/15012025/06/20/image_15012025_06_20_26_9356.jpg', '/home/pi/Desktop/images/15012025/06/20/image_15012025_06_20_36_10348.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/19/image_15012025_06_19_26_10389.jpg
/home/pi/Desktop/images/15012025/06/19/image_15012025_06_19_36_9337.jpg
/home/pi/Desktop/images/15012025/06/19/image_15012025_06_19_46_10460.jpg
/home/pi/Desktop/images/15012025/06/19/image_15012025_06_19_56_9353.jpg
/home/pi/Desktop/images/15012025/06/20/image_15012025_06_20_26_9356.jpg
/home/pi/Desktop/images/15012025/06/20/image_15012025_06_20_36_10348.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329212845","1329212976","1329212886","1329212835","1329213012","1329212826"],"photo_ids_order":["1329212826","1329212835","1329212845","1329212886","1329212976","1329213012"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/30b77ecc3000a3141a230982ab51f9ee.jpg","text":"TemporaryFile(/tmp/multipartBody3328124923213853316asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971593554,"filename":"image_15012025_06_19_46_10460.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/19850fe59c7a052bdbec4aee6330ff11.jpg","text":"TemporaryFile(/tmp/multipartBody5487078205956835479asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971593554,"filename":"image_15012025_06_20_26_9356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4057c22ba1ef11a631080586277e41fe.jpg","text":"TemporaryFile(/tmp/multipartBody4226055688118148735asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971593554,"filename":"image_15012025_06_19_56_9353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/af190f402ddb0e6b94c4880d988b9e00.jpg","text":"TemporaryFile(/tmp/multipartBody2458236260647162647asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971593554,"filename":"image_15012025_06_19_36_9337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/29e227190a933a24a540d43dc086eafc.jpg","text":"TemporaryFile(/tmp/multipartBody3760536181301511818asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971593554,"filename":"image_15012025_06_20_36_10348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c90696ca7b5e6a662d8c3feaa20b836e.jpg","text":"TemporaryFile(/tmp/multipartBody2874725490097387209asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971593554,"filename":"image_15012025_06_19_26_10389.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329212845","file1":"1329212835","file0":"1329212826","file4":"1329212976","file5":"1329213012","file3":"1329212886"},"map_files_photo_id_array":[{"photo_id":"1329213012","filename":"file5"},{"photo_id":"1329212845","filename":"file2"},{"photo_id":"1329212976","filename":"file4"},{"photo_id":"1329212835","filename":"file1"},{"photo_id":"1329212826","filename":"file0"},{"photo_id":"1329212886","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329212845":["hashtag1","hashtag2"]},{"1329212976":["hashtag1","hashtag2"]},{"1329212886":["hashtag1","hashtag2"]},{"1329212835":["hashtag1","hashtag2"]},{"1329213012":["hashtag1","hashtag2"]},{"1329212826":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329212845, 1329212976, 1329212886, 1329212835, 1329213012, 1329212826)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.53007221221924 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 15 --only_old 0
2025-01-15 21:06:32.614912
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/20/image_15012025_06_20_46_10365.jpg', '/home/pi/Desktop/images/15012025/06/20/image_15012025_06_20_56_9434.jpg', '/home/pi/Desktop/images/15012025/06/21/image_15012025_06_21_46_9339.jpg', '/home/pi/Desktop/images/15012025/06/21/image_15012025_06_21_56_10490.jpg', '/home/pi/Desktop/images/15012025/06/21/image_15012025_06_22_06_9323.jpg', '/home/pi/Desktop/images/15012025/06/22/image_15012025_06_22_26_10346.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/20/image_15012025_06_20_46_10365.jpg
/home/pi/Desktop/images/15012025/06/20/image_15012025_06_20_56_9434.jpg
/home/pi/Desktop/images/15012025/06/21/image_15012025_06_21_46_9339.jpg
/home/pi/Desktop/images/15012025/06/21/image_15012025_06_21_56_10490.jpg
/home/pi/Desktop/images/15012025/06/21/image_15012025_06_22_06_9323.jpg
/home/pi/Desktop/images/15012025/06/22/image_15012025_06_22_26_10346.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6050677299499512 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
2025-01-15 21:06:42.734755
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/20/image_15012025_06_20_46_10365.jpg', '/home/pi/Desktop/images/15012025/06/20/image_15012025_06_20_56_9434.jpg', '/home/pi/Desktop/images/15012025/06/21/image_15012025_06_21_46_9339.jpg', '/home/pi/Desktop/images/15012025/06/21/image_15012025_06_21_56_10490.jpg', '/home/pi/Desktop/images/15012025/06/21/image_15012025_06_22_06_9323.jpg', '/home/pi/Desktop/images/15012025/06/22/image_15012025_06_22_26_10346.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/20/image_15012025_06_20_46_10365.jpg
/home/pi/Desktop/images/15012025/06/20/image_15012025_06_20_56_9434.jpg
/home/pi/Desktop/images/15012025/06/21/image_15012025_06_21_46_9339.jpg
/home/pi/Desktop/images/15012025/06/21/image_15012025_06_21_56_10490.jpg
/home/pi/Desktop/images/15012025/06/21/image_15012025_06_22_06_9323.jpg
/home/pi/Desktop/images/15012025/06/22/image_15012025_06_22_26_10346.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329213768","1329213639","1329213810","1329213167","1329213446","1329213938"],"photo_ids_order":["1329213167","1329213446","1329213639","1329213768","1329213810","1329213938"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3383db8350eeaa01e51bd2df94f8d503.jpg","text":"TemporaryFile(/tmp/multipartBody7918728767123904832asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971663654,"filename":"image_15012025_06_21_56_10490.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cad85c30f3a1ad4c25bb8bfc32074ac8.jpg","text":"TemporaryFile(/tmp/multipartBody2897158135295529266asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971663654,"filename":"image_15012025_06_21_46_9339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8f66e977581249a5451c458c501f7023.jpg","text":"TemporaryFile(/tmp/multipartBody1934686001576682515asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971663654,"filename":"image_15012025_06_22_06_9323.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bdb04912a18eb749d847634514c8cf08.jpg","text":"TemporaryFile(/tmp/multipartBody8060044964848335029asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971663654,"filename":"image_15012025_06_20_46_10365.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/04d229457116b08b4ecd4e806fe5b600.jpg","text":"TemporaryFile(/tmp/multipartBody5238189689849193306asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971663654,"filename":"image_15012025_06_20_56_9434.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4fde90265d0e7cadbf89049b796ed672.jpg","text":"TemporaryFile(/tmp/multipartBody6378111764533418371asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971663654,"filename":"image_15012025_06_22_26_10346.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329213639","file1":"1329213446","file0":"1329213167","file4":"1329213810","file5":"1329213938","file3":"1329213768"},"map_files_photo_id_array":[{"photo_id":"1329213938","filename":"file5"},{"photo_id":"1329213639","filename":"file2"},{"photo_id":"1329213810","filename":"file4"},{"photo_id":"1329213446","filename":"file1"},{"photo_id":"1329213167","filename":"file0"},{"photo_id":"1329213768","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329213768":["hashtag1","hashtag2"]},{"1329213639":["hashtag1","hashtag2"]},{"1329213810":["hashtag1","hashtag2"]},{"1329213167":["hashtag1","hashtag2"]},{"1329213446":["hashtag1","hashtag2"]},{"1329213938":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329213768, 1329213639, 1329213810, 1329213167, 1329213446, 1329213938)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 49.00585126876831 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 15 --only_old 0
2025-01-15 21:07:32.940880
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/22/image_15012025_06_23_06_9342.jpg', '/home/pi/Desktop/images/15012025/06/23/image_15012025_06_23_25_9355.jpg', '/home/pi/Desktop/images/15012025/06/23/image_15012025_06_23_36_10347.jpg', '/home/pi/Desktop/images/15012025/06/23/image_15012025_06_23_55_9336.jpg', '/home/pi/Desktop/images/15012025/06/24/image_15012025_06_24_16_10421.jpg', '/home/pi/Desktop/images/15012025/06/24/image_15012025_06_24_26_9343.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/22/image_15012025_06_23_06_9342.jpg
/home/pi/Desktop/images/15012025/06/23/image_15012025_06_23_25_9355.jpg
/home/pi/Desktop/images/15012025/06/23/image_15012025_06_23_36_10347.jpg
/home/pi/Desktop/images/15012025/06/23/image_15012025_06_23_55_9336.jpg
/home/pi/Desktop/images/15012025/06/24/image_15012025_06_24_16_10421.jpg
/home/pi/Desktop/images/15012025/06/24/image_15012025_06_24_26_9343.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329213960","1329213957","1329213965","1329213950","1329213964","1329214000"],"photo_ids_order":["1329213950","1329213957","1329213960","1329213964","1329213965","1329214000"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f864dd7463b1cbbc81a75ad6c354c899.jpg","text":"TemporaryFile(/tmp/multipartBody5759694425248658708asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971713935,"filename":"image_15012025_06_23_36_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f4fe6b00c4bc54a56063945917c1f231.jpg","text":"TemporaryFile(/tmp/multipartBody1339366791930462419asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971713935,"filename":"image_15012025_06_23_25_9355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/92e6d8f8f8946359a7087b70ebfd3e3d.jpg","text":"TemporaryFile(/tmp/multipartBody5629474106230047301asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971713935,"filename":"image_15012025_06_24_16_10421.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fc9500e2f0c8e93034eb1c9538a7283f.jpg","text":"TemporaryFile(/tmp/multipartBody2568061668695298043asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971713935,"filename":"image_15012025_06_23_06_9342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1ea35cbde89307a07b7c6e099c54a3f4.jpg","text":"TemporaryFile(/tmp/multipartBody2334098361443498584asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971713935,"filename":"image_15012025_06_23_55_9336.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6f77d5db7dfcaf10bf75809a5f3386a0.jpg","text":"TemporaryFile(/tmp/multipartBody8682910286156205816asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971713935,"filename":"image_15012025_06_24_26_9343.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329213960","file1":"1329213957","file0":"1329213950","file4":"1329213965","file5":"1329214000","file3":"1329213964"},"map_files_photo_id_array":[{"photo_id":"1329214000","filename":"file5"},{"photo_id":"1329213960","filename":"file2"},{"photo_id":"1329213965","filename":"file4"},{"photo_id":"1329213957","filename":"file1"},{"photo_id":"1329213950","filename":"file0"},{"photo_id":"1329213964","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329213960":["hashtag1","hashtag2"]},{"1329213957":["hashtag1","hashtag2"]},{"1329213965":["hashtag1","hashtag2"]},{"1329213950":["hashtag1","hashtag2"]},{"1329213964":["hashtag1","hashtag2"]},{"1329214000":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329213960, 1329213957, 1329213965, 1329213950, 1329213964, 1329214000)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.66739344596863 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 15 --only_old 0
2025-01-15 21:08:33.088427
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/24/image_15012025_06_24_36_10424.jpg', '/home/pi/Desktop/images/15012025/06/24/image_15012025_06_24_46_10404.jpg', '/home/pi/Desktop/images/15012025/06/24/image_15012025_06_24_56_9348.jpg', '/home/pi/Desktop/images/15012025/06/24/image_15012025_06_25_06_10362.jpg', '/home/pi/Desktop/images/15012025/06/25/image_15012025_06_25_15_9368.jpg', '/home/pi/Desktop/images/15012025/06/25/image_15012025_06_25_26_10375.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/24/image_15012025_06_24_36_10424.jpg
/home/pi/Desktop/images/15012025/06/24/image_15012025_06_24_46_10404.jpg
/home/pi/Desktop/images/15012025/06/24/image_15012025_06_24_56_9348.jpg
/home/pi/Desktop/images/15012025/06/24/image_15012025_06_25_06_10362.jpg
/home/pi/Desktop/images/15012025/06/25/image_15012025_06_25_15_9368.jpg
/home/pi/Desktop/images/15012025/06/25/image_15012025_06_25_26_10375.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329214374","1329214350","1329214245","1329214313","1329214256","1329214371"],"photo_ids_order":["1329214245","1329214256","1329214313","1329214350","1329214371","1329214374"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3662aee19dce0e2f21e9f64d5cf58248.jpg","text":"TemporaryFile(/tmp/multipartBody7897266446391827431asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971774120,"filename":"image_15012025_06_25_26_10375.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3e7b4bd96c636977ab1379534544c227.jpg","text":"TemporaryFile(/tmp/multipartBody4194244639635038403asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971774120,"filename":"image_15012025_06_25_06_10362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e352a611f0d6911378ded3bcad630379.jpg","text":"TemporaryFile(/tmp/multipartBody7466570301562453209asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971774120,"filename":"image_15012025_06_24_36_10424.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d816791bce0138cb2ffd3370be081738.jpg","text":"TemporaryFile(/tmp/multipartBody8237578374713794081asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971774120,"filename":"image_15012025_06_24_56_9348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7a70bc9000e792a863cf5ed79269e761.jpg","text":"TemporaryFile(/tmp/multipartBody7497116682041604026asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971774120,"filename":"image_15012025_06_24_46_10404.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/937b21e37c4b78787291cb2d853e32d9.jpg","text":"TemporaryFile(/tmp/multipartBody5835605145933194731asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971774120,"filename":"image_15012025_06_25_15_9368.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329214313","file1":"1329214256","file0":"1329214245","file4":"1329214371","file5":"1329214374","file3":"1329214350"},"map_files_photo_id_array":[{"photo_id":"1329214374","filename":"file5"},{"photo_id":"1329214313","filename":"file2"},{"photo_id":"1329214371","filename":"file4"},{"photo_id":"1329214256","filename":"file1"},{"photo_id":"1329214245","filename":"file0"},{"photo_id":"1329214350","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329214374":["hashtag1","hashtag2"]},{"1329214350":["hashtag1","hashtag2"]},{"1329214245":["hashtag1","hashtag2"]},{"1329214313":["hashtag1","hashtag2"]},{"1329214256":["hashtag1","hashtag2"]},{"1329214371":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329214374, 1329214350, 1329214245, 1329214313, 1329214256, 1329214371)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.71292185783386 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 15 --only_old 0
2025-01-15 21:09:33.026011
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/25/image_15012025_06_25_46_9348.jpg', '/home/pi/Desktop/images/15012025/06/25/image_15012025_06_25_56_10418.jpg', '/home/pi/Desktop/images/15012025/06/25/image_15012025_06_26_06_10402.jpg', '/home/pi/Desktop/images/15012025/06/26/image_15012025_06_26_16_9357.jpg', '/home/pi/Desktop/images/15012025/06/26/image_15012025_06_26_26_10534.jpg', '/home/pi/Desktop/images/15012025/06/26/image_15012025_06_26_36_9333.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/25/image_15012025_06_25_46_9348.jpg
/home/pi/Desktop/images/15012025/06/25/image_15012025_06_25_56_10418.jpg
/home/pi/Desktop/images/15012025/06/25/image_15012025_06_26_06_10402.jpg
/home/pi/Desktop/images/15012025/06/26/image_15012025_06_26_16_9357.jpg
/home/pi/Desktop/images/15012025/06/26/image_15012025_06_26_26_10534.jpg
/home/pi/Desktop/images/15012025/06/26/image_15012025_06_26_36_9333.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329214404","1329214407","1329214399","1329214395","1329214402","1329214392"],"photo_ids_order":["1329214392","1329214395","1329214399","1329214402","1329214404","1329214407"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8e519a76167934287cb67fdf95878515.jpg","text":"TemporaryFile(/tmp/multipartBody3408682387250660503asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971834023,"filename":"image_15012025_06_26_26_10534.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/67230620d823e4ba2ec2cd5ff0680f0e.jpg","text":"TemporaryFile(/tmp/multipartBody6725060604545834523asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971834023,"filename":"image_15012025_06_26_36_9333.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a2e0941cd9a091e6442f0eaeeb9c0b2f.jpg","text":"TemporaryFile(/tmp/multipartBody4971493405178012777asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971834023,"filename":"image_15012025_06_26_06_10402.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5debc2649d33a9d90ba50ef7b7d3f049.jpg","text":"TemporaryFile(/tmp/multipartBody7722229272196870003asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971834023,"filename":"image_15012025_06_25_56_10418.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0300165ff9a0ca9754ecf18c6f870592.jpg","text":"TemporaryFile(/tmp/multipartBody6399438045965492046asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971834023,"filename":"image_15012025_06_26_16_9357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c6d9b95de7a2a8b51ba359440d889ccf.jpg","text":"TemporaryFile(/tmp/multipartBody8040560975731624156asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971834023,"filename":"image_15012025_06_25_46_9348.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329214399","file1":"1329214395","file0":"1329214392","file4":"1329214404","file5":"1329214407","file3":"1329214402"},"map_files_photo_id_array":[{"photo_id":"1329214407","filename":"file5"},{"photo_id":"1329214399","filename":"file2"},{"photo_id":"1329214404","filename":"file4"},{"photo_id":"1329214395","filename":"file1"},{"photo_id":"1329214392","filename":"file0"},{"photo_id":"1329214402","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329214404":["hashtag1","hashtag2"]},{"1329214407":["hashtag1","hashtag2"]},{"1329214399":["hashtag1","hashtag2"]},{"1329214395":["hashtag1","hashtag2"]},{"1329214402":["hashtag1","hashtag2"]},{"1329214392":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329214404, 1329214407, 1329214399, 1329214395, 1329214402, 1329214392)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.57196378707886 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 15 --only_old 0
2025-01-15 21:10:33.041058
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/26/image_15012025_06_26_46_10402.jpg', '/home/pi/Desktop/images/15012025/06/26/image_15012025_06_26_56_10362.jpg', '/home/pi/Desktop/images/15012025/06/27/image_15012025_06_27_26_10362.jpg', '/home/pi/Desktop/images/15012025/06/27/image_15012025_06_28_06_10396.jpg', '/home/pi/Desktop/images/15012025/06/28/image_15012025_06_28_16_10349.jpg', '/home/pi/Desktop/images/15012025/06/28/image_15012025_06_28_26_9344.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/26/image_15012025_06_26_46_10402.jpg
/home/pi/Desktop/images/15012025/06/26/image_15012025_06_26_56_10362.jpg
/home/pi/Desktop/images/15012025/06/27/image_15012025_06_27_26_10362.jpg
/home/pi/Desktop/images/15012025/06/27/image_15012025_06_28_06_10396.jpg
/home/pi/Desktop/images/15012025/06/28/image_15012025_06_28_16_10349.jpg
/home/pi/Desktop/images/15012025/06/28/image_15012025_06_28_26_9344.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.5992839336395264 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
2025-01-15 21:10:43.088911
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/26/image_15012025_06_26_46_10402.jpg', '/home/pi/Desktop/images/15012025/06/26/image_15012025_06_26_56_10362.jpg', '/home/pi/Desktop/images/15012025/06/27/image_15012025_06_27_26_10362.jpg', '/home/pi/Desktop/images/15012025/06/27/image_15012025_06_28_06_10396.jpg', '/home/pi/Desktop/images/15012025/06/28/image_15012025_06_28_16_10349.jpg', '/home/pi/Desktop/images/15012025/06/28/image_15012025_06_28_26_9344.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/26/image_15012025_06_26_46_10402.jpg
/home/pi/Desktop/images/15012025/06/26/image_15012025_06_26_56_10362.jpg
/home/pi/Desktop/images/15012025/06/27/image_15012025_06_27_26_10362.jpg
/home/pi/Desktop/images/15012025/06/27/image_15012025_06_28_06_10396.jpg
/home/pi/Desktop/images/15012025/06/28/image_15012025_06_28_16_10349.jpg
/home/pi/Desktop/images/15012025/06/28/image_15012025_06_28_26_9344.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329214439","1329214447","1329214462","1329214435","1329214450","1329214476"],"photo_ids_order":["1329214435","1329214439","1329214447","1329214450","1329214462","1329214476"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b6cb43f1f5ec7980bd4e1bd381ce5ecd.jpg","text":"TemporaryFile(/tmp/multipartBody8615331698338025029asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971904024,"filename":"image_15012025_06_26_56_10362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ecba4c0bbb477640182432fd42d43bf2.jpg","text":"TemporaryFile(/tmp/multipartBody8995298119122849533asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971904024,"filename":"image_15012025_06_27_26_10362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0a77fac400901efe1e2347ac73b4fb6c.jpg","text":"TemporaryFile(/tmp/multipartBody1401772128859416696asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971904024,"filename":"image_15012025_06_28_16_10349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0f066b8c7289c67086169a3bf12dfb1a.jpg","text":"TemporaryFile(/tmp/multipartBody5299031523131047091asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971904024,"filename":"image_15012025_06_26_46_10402.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/68c98e046f419904922e61dd01a9e250.jpg","text":"TemporaryFile(/tmp/multipartBody6434327660007802923asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971904024,"filename":"image_15012025_06_28_06_10396.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b61c2ea94385212119cab1f8e8ae276d.jpg","text":"TemporaryFile(/tmp/multipartBody6943143676816509351asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971904024,"filename":"image_15012025_06_28_26_9344.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329214447","file1":"1329214439","file0":"1329214435","file4":"1329214462","file5":"1329214476","file3":"1329214450"},"map_files_photo_id_array":[{"photo_id":"1329214476","filename":"file5"},{"photo_id":"1329214447","filename":"file2"},{"photo_id":"1329214462","filename":"file4"},{"photo_id":"1329214439","filename":"file1"},{"photo_id":"1329214435","filename":"file0"},{"photo_id":"1329214450","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329214439":["hashtag1","hashtag2"]},{"1329214447":["hashtag1","hashtag2"]},{"1329214462":["hashtag1","hashtag2"]},{"1329214435":["hashtag1","hashtag2"]},{"1329214450":["hashtag1","hashtag2"]},{"1329214476":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329214439, 1329214447, 1329214462, 1329214435, 1329214450, 1329214476)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.957876205444336 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 15 --only_old 0
2025-01-15 21:11:32.255633
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/28/image_15012025_06_28_36_10353.jpg', '/home/pi/Desktop/images/15012025/06/28/image_15012025_06_28_45_9355.jpg', '/home/pi/Desktop/images/15012025/06/28/image_15012025_06_29_06_10363.jpg', '/home/pi/Desktop/images/15012025/06/29/image_15012025_06_29_16_9346.jpg', '/home/pi/Desktop/images/15012025/06/29/image_15012025_06_29_26_10346.jpg', '/home/pi/Desktop/images/15012025/06/29/image_15012025_06_29_36_10429.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/28/image_15012025_06_28_36_10353.jpg
/home/pi/Desktop/images/15012025/06/28/image_15012025_06_28_45_9355.jpg
/home/pi/Desktop/images/15012025/06/28/image_15012025_06_29_06_10363.jpg
/home/pi/Desktop/images/15012025/06/29/image_15012025_06_29_16_9346.jpg
/home/pi/Desktop/images/15012025/06/29/image_15012025_06_29_26_10346.jpg
/home/pi/Desktop/images/15012025/06/29/image_15012025_06_29_36_10429.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329214784","1329214691","1329214742","1329214696","1329214762","1329214765"],"photo_ids_order":["1329214691","1329214696","1329214742","1329214762","1329214765","1329214784"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dc586b885b435a2227ebe7cfa80a074a.jpg","text":"TemporaryFile(/tmp/multipartBody7746587078894701488asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971953258,"filename":"image_15012025_06_29_36_10429.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9f7c7e67e77a3ab526401cab33cd12ca.jpg","text":"TemporaryFile(/tmp/multipartBody2666207071529362144asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971953258,"filename":"image_15012025_06_28_36_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9b16f5cda7b0c202bb5d9ac458b1bb0b.jpg","text":"TemporaryFile(/tmp/multipartBody8953332449781696060asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971953258,"filename":"image_15012025_06_29_06_10363.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/36a971537445ace600698d3864f16cd1.jpg","text":"TemporaryFile(/tmp/multipartBody6531165620189352658asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971953258,"filename":"image_15012025_06_28_45_9355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7209ba7df1fa22fc359806dd26820c67.jpg","text":"TemporaryFile(/tmp/multipartBody2118763588125276782asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971953258,"filename":"image_15012025_06_29_16_9346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b92359dcdb333805f4925d0afe54fb79.jpg","text":"TemporaryFile(/tmp/multipartBody1935701758236926927asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736971953258,"filename":"image_15012025_06_29_26_10346.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329214742","file1":"1329214696","file0":"1329214691","file4":"1329214765","file5":"1329214784","file3":"1329214762"},"map_files_photo_id_array":[{"photo_id":"1329214784","filename":"file5"},{"photo_id":"1329214742","filename":"file2"},{"photo_id":"1329214765","filename":"file4"},{"photo_id":"1329214696","filename":"file1"},{"photo_id":"1329214691","filename":"file0"},{"photo_id":"1329214762","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329214784":["hashtag1","hashtag2"]},{"1329214691":["hashtag1","hashtag2"]},{"1329214742":["hashtag1","hashtag2"]},{"1329214696":["hashtag1","hashtag2"]},{"1329214762":["hashtag1","hashtag2"]},{"1329214765":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329214784, 1329214691, 1329214742, 1329214696, 1329214762, 1329214765)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.46576762199402 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 15 --only_old 0
2025-01-15 21:12:32.539021
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/29/image_15012025_06_29_46_9319.jpg', '/home/pi/Desktop/images/15012025/06/29/image_15012025_06_29_56_10442.jpg', '/home/pi/Desktop/images/15012025/06/29/image_15012025_06_30_05_9431.jpg', '/home/pi/Desktop/images/15012025/06/30/image_15012025_06_30_16_10364.jpg', '/home/pi/Desktop/images/15012025/06/30/image_15012025_06_30_26_10370.jpg', '/home/pi/Desktop/images/15012025/06/30/image_15012025_06_30_36_9369.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/29/image_15012025_06_29_46_9319.jpg
/home/pi/Desktop/images/15012025/06/29/image_15012025_06_29_56_10442.jpg
/home/pi/Desktop/images/15012025/06/29/image_15012025_06_30_05_9431.jpg
/home/pi/Desktop/images/15012025/06/30/image_15012025_06_30_16_10364.jpg
/home/pi/Desktop/images/15012025/06/30/image_15012025_06_30_26_10370.jpg
/home/pi/Desktop/images/15012025/06/30/image_15012025_06_30_36_9369.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329214865","1329214876","1329214870","1329214873","1329214867","1329214860"],"photo_ids_order":["1329214860","1329214865","1329214867","1329214870","1329214873","1329214876"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cefa8a7e0e9526e90e888af48af5fa66.jpg","text":"TemporaryFile(/tmp/multipartBody3509390884938205806asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972013558,"filename":"image_15012025_06_29_56_10442.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/053aae3148c9acfbaed23635d3203f97.jpg","text":"TemporaryFile(/tmp/multipartBody8919329312648123099asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972013558,"filename":"image_15012025_06_30_36_9369.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/05116d988957e9dc77adf9f169886fcc.jpg","text":"TemporaryFile(/tmp/multipartBody8564249270974891297asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972013558,"filename":"image_15012025_06_30_16_10364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8b0d5547f5249bf1ae63dd42eacb946c.jpg","text":"TemporaryFile(/tmp/multipartBody3405784672684379264asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972013558,"filename":"image_15012025_06_30_26_10370.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/438dec06a8ce6221b74ff6fb8202df84.jpg","text":"TemporaryFile(/tmp/multipartBody487512823368823300asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972013558,"filename":"image_15012025_06_30_05_9431.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/22fef3426e4694dd4d04bbce9d09b68b.jpg","text":"TemporaryFile(/tmp/multipartBody935537599037623069asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972013558,"filename":"image_15012025_06_29_46_9319.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329214867","file1":"1329214865","file0":"1329214860","file4":"1329214873","file5":"1329214876","file3":"1329214870"},"map_files_photo_id_array":[{"photo_id":"1329214876","filename":"file5"},{"photo_id":"1329214867","filename":"file2"},{"photo_id":"1329214873","filename":"file4"},{"photo_id":"1329214865","filename":"file1"},{"photo_id":"1329214860","filename":"file0"},{"photo_id":"1329214870","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329214865":["hashtag1","hashtag2"]},{"1329214876":["hashtag1","hashtag2"]},{"1329214870":["hashtag1","hashtag2"]},{"1329214873":["hashtag1","hashtag2"]},{"1329214867":["hashtag1","hashtag2"]},{"1329214860":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329214865, 1329214876, 1329214870, 1329214873, 1329214867, 1329214860)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.33730149269104 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 15 --only_old 0
2025-01-15 21:13:32.822316
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/30/image_15012025_06_30_46_10404.jpg', '/home/pi/Desktop/images/15012025/06/30/image_15012025_06_30_56_10353.jpg', '/home/pi/Desktop/images/15012025/06/30/image_15012025_06_31_06_9347.jpg', '/home/pi/Desktop/images/15012025/06/31/image_15012025_06_31_16_10455.jpg', '/home/pi/Desktop/images/15012025/06/31/image_15012025_06_31_26_9349.jpg', '/home/pi/Desktop/images/15012025/06/31/image_15012025_06_31_36_10426.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/30/image_15012025_06_30_46_10404.jpg
/home/pi/Desktop/images/15012025/06/30/image_15012025_06_30_56_10353.jpg
/home/pi/Desktop/images/15012025/06/30/image_15012025_06_31_06_9347.jpg
/home/pi/Desktop/images/15012025/06/31/image_15012025_06_31_16_10455.jpg
/home/pi/Desktop/images/15012025/06/31/image_15012025_06_31_26_9349.jpg
/home/pi/Desktop/images/15012025/06/31/image_15012025_06_31_36_10426.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.5980908870697021 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
2025-01-15 21:13:42.708370
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/30/image_15012025_06_30_46_10404.jpg', '/home/pi/Desktop/images/15012025/06/30/image_15012025_06_30_56_10353.jpg', '/home/pi/Desktop/images/15012025/06/30/image_15012025_06_31_06_9347.jpg', '/home/pi/Desktop/images/15012025/06/31/image_15012025_06_31_16_10455.jpg', '/home/pi/Desktop/images/15012025/06/31/image_15012025_06_31_26_9349.jpg', '/home/pi/Desktop/images/15012025/06/31/image_15012025_06_31_36_10426.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/30/image_15012025_06_30_46_10404.jpg
/home/pi/Desktop/images/15012025/06/30/image_15012025_06_30_56_10353.jpg
/home/pi/Desktop/images/15012025/06/30/image_15012025_06_31_06_9347.jpg
/home/pi/Desktop/images/15012025/06/31/image_15012025_06_31_16_10455.jpg
/home/pi/Desktop/images/15012025/06/31/image_15012025_06_31_26_9349.jpg
/home/pi/Desktop/images/15012025/06/31/image_15012025_06_31_36_10426.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329214905","1329214919","1329214924","1329214915","1329214909","1329214899"],"photo_ids_order":["1329214899","1329214905","1329214909","1329214915","1329214919","1329214924"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/555b93deb43c897a3189183ad340ad5f.jpg","text":"TemporaryFile(/tmp/multipartBody2269736394260545526asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972083647,"filename":"image_15012025_06_30_56_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8aaeece3b426e64ee9652345cf845a31.jpg","text":"TemporaryFile(/tmp/multipartBody1764860863197578332asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972083647,"filename":"image_15012025_06_31_26_9349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/099cfeeca48f30dd4ae2df5437f92866.jpg","text":"TemporaryFile(/tmp/multipartBody1916028623794937767asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972083647,"filename":"image_15012025_06_31_36_10426.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/efb35ee7d98aa61fac7cef56e5f951ce.jpg","text":"TemporaryFile(/tmp/multipartBody1201832575458974137asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972083647,"filename":"image_15012025_06_31_16_10455.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/41d8f7a6adc8b88a6909f0a93c00dd31.jpg","text":"TemporaryFile(/tmp/multipartBody1931586410398036524asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972083647,"filename":"image_15012025_06_31_06_9347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/167e9eef952b1e47d25d8a1770dde1c1.jpg","text":"TemporaryFile(/tmp/multipartBody7505694723325860315asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972083647,"filename":"image_15012025_06_30_46_10404.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329214909","file1":"1329214905","file0":"1329214899","file4":"1329214919","file5":"1329214924","file3":"1329214915"},"map_files_photo_id_array":[{"photo_id":"1329214924","filename":"file5"},{"photo_id":"1329214909","filename":"file2"},{"photo_id":"1329214919","filename":"file4"},{"photo_id":"1329214905","filename":"file1"},{"photo_id":"1329214899","filename":"file0"},{"photo_id":"1329214915","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329214905":["hashtag1","hashtag2"]},{"1329214919":["hashtag1","hashtag2"]},{"1329214924":["hashtag1","hashtag2"]},{"1329214915":["hashtag1","hashtag2"]},{"1329214909":["hashtag1","hashtag2"]},{"1329214899":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329214905, 1329214919, 1329214924, 1329214915, 1329214909, 1329214899)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.8202805519104 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 15 --only_old 0
2025-01-15 21:14:33.006205
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/31/image_15012025_06_31_46_9832.jpg', '/home/pi/Desktop/images/15012025/06/31/image_15012025_06_31_56_10364.jpg', '/home/pi/Desktop/images/15012025/06/31/image_15012025_06_32_05_9348.jpg', '/home/pi/Desktop/images/15012025/06/32/image_15012025_06_32_16_10343.jpg', '/home/pi/Desktop/images/15012025/06/32/image_15012025_06_32_26_10377.jpg', '/home/pi/Desktop/images/15012025/06/32/image_15012025_06_32_36_9370.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/31/image_15012025_06_31_46_9832.jpg
/home/pi/Desktop/images/15012025/06/31/image_15012025_06_31_56_10364.jpg
/home/pi/Desktop/images/15012025/06/31/image_15012025_06_32_05_9348.jpg
/home/pi/Desktop/images/15012025/06/32/image_15012025_06_32_16_10343.jpg
/home/pi/Desktop/images/15012025/06/32/image_15012025_06_32_26_10377.jpg
/home/pi/Desktop/images/15012025/06/32/image_15012025_06_32_36_9370.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329214938","1329214940","1329214934","1329214943","1329214937","1329214942"],"photo_ids_order":["1329214934","1329214937","1329214938","1329214940","1329214942","1329214943"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e93ea5f61861f0f1d89af3de8bdd1c22.jpg","text":"TemporaryFile(/tmp/multipartBody6595700202221381143asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972134100,"filename":"image_15012025_06_32_05_9348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2dfe7263bc6ead045e0de89576f4fb03.jpg","text":"TemporaryFile(/tmp/multipartBody2006911698788338672asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972134100,"filename":"image_15012025_06_32_16_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2fa5a8f9ea20aecb15790cb7f878b10f.jpg","text":"TemporaryFile(/tmp/multipartBody6747167508943463469asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972134100,"filename":"image_15012025_06_31_46_9832.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/83d54194591f4f60408cf5910d968def.jpg","text":"TemporaryFile(/tmp/multipartBody6323887037313264974asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972134100,"filename":"image_15012025_06_32_36_9370.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/89a079679ef6aa75535efbe492fa93ec.jpg","text":"TemporaryFile(/tmp/multipartBody7009791611743361925asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972134100,"filename":"image_15012025_06_31_56_10364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/270e0bacb684a421ee5ee5a55f0efde7.jpg","text":"TemporaryFile(/tmp/multipartBody48331975872230740asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972134100,"filename":"image_15012025_06_32_26_10377.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329214938","file1":"1329214937","file0":"1329214934","file4":"1329214942","file5":"1329214943","file3":"1329214940"},"map_files_photo_id_array":[{"photo_id":"1329214943","filename":"file5"},{"photo_id":"1329214938","filename":"file2"},{"photo_id":"1329214942","filename":"file4"},{"photo_id":"1329214937","filename":"file1"},{"photo_id":"1329214934","filename":"file0"},{"photo_id":"1329214940","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329214938":["hashtag1","hashtag2"]},{"1329214940":["hashtag1","hashtag2"]},{"1329214934":["hashtag1","hashtag2"]},{"1329214943":["hashtag1","hashtag2"]},{"1329214937":["hashtag1","hashtag2"]},{"1329214942":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329214938, 1329214940, 1329214934, 1329214943, 1329214937, 1329214942)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.175681591033936 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 15 --only_old 0
2025-01-15 21:15:33.121039
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/32/image_15012025_06_32_46_10474.jpg', '/home/pi/Desktop/images/15012025/06/32/image_15012025_06_32_56_10351.jpg', '/home/pi/Desktop/images/15012025/06/33/image_15012025_06_33_16_10353.jpg', '/home/pi/Desktop/images/15012025/06/33/image_15012025_06_33_25_9387.jpg', '/home/pi/Desktop/images/15012025/06/33/image_15012025_06_33_36_10339.jpg', '/home/pi/Desktop/images/15012025/06/33/image_15012025_06_33_46_10349.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/32/image_15012025_06_32_46_10474.jpg
/home/pi/Desktop/images/15012025/06/32/image_15012025_06_32_56_10351.jpg
/home/pi/Desktop/images/15012025/06/33/image_15012025_06_33_16_10353.jpg
/home/pi/Desktop/images/15012025/06/33/image_15012025_06_33_25_9387.jpg
/home/pi/Desktop/images/15012025/06/33/image_15012025_06_33_36_10339.jpg
/home/pi/Desktop/images/15012025/06/33/image_15012025_06_33_46_10349.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329214964","1329214961","1329214969","1329214957","1329214972","1329214974"],"photo_ids_order":["1329214957","1329214961","1329214964","1329214969","1329214972","1329214974"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/77b4e2d28a3cf6160c1645619cf1dc1a.jpg","text":"TemporaryFile(/tmp/multipartBody4572144783310752100asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972194119,"filename":"image_15012025_06_33_16_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/110f69bccccfa3f20769f7a8971b3541.jpg","text":"TemporaryFile(/tmp/multipartBody698121772092417147asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972194119,"filename":"image_15012025_06_32_56_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2e22b0ce3e1c53df8e28a3afe4ba499f.jpg","text":"TemporaryFile(/tmp/multipartBody6766362125961367657asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972194119,"filename":"image_15012025_06_33_25_9387.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f7430b8c58a842bbd13b9ae385f112b8.jpg","text":"TemporaryFile(/tmp/multipartBody6256932743008795720asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972194119,"filename":"image_15012025_06_32_46_10474.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/559c4cc90f37b281570c76669603af08.jpg","text":"TemporaryFile(/tmp/multipartBody4213549346199710506asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972194119,"filename":"image_15012025_06_33_36_10339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fa82972c87a9520c867a999ece4be640.jpg","text":"TemporaryFile(/tmp/multipartBody6194196212974746362asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972194119,"filename":"image_15012025_06_33_46_10349.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329214964","file1":"1329214961","file0":"1329214957","file4":"1329214972","file5":"1329214974","file3":"1329214969"},"map_files_photo_id_array":[{"photo_id":"1329214974","filename":"file5"},{"photo_id":"1329214964","filename":"file2"},{"photo_id":"1329214972","filename":"file4"},{"photo_id":"1329214961","filename":"file1"},{"photo_id":"1329214957","filename":"file0"},{"photo_id":"1329214969","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329214964":["hashtag1","hashtag2"]},{"1329214961":["hashtag1","hashtag2"]},{"1329214969":["hashtag1","hashtag2"]},{"1329214957":["hashtag1","hashtag2"]},{"1329214972":["hashtag1","hashtag2"]},{"1329214974":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329214964, 1329214961, 1329214969, 1329214957, 1329214972, 1329214974)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.260682582855225 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 15 --only_old 0
2025-01-15 21:16:32.477631
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/33/image_15012025_06_33_56_9363.jpg', '/home/pi/Desktop/images/15012025/06/33/image_15012025_06_34_06_10503.jpg', '/home/pi/Desktop/images/15012025/06/34/image_15012025_06_34_16_10370.jpg', '/home/pi/Desktop/images/15012025/06/34/image_15012025_06_34_26_9372.jpg', '/home/pi/Desktop/images/15012025/06/34/image_15012025_06_34_36_10468.jpg', '/home/pi/Desktop/images/15012025/06/34/image_15012025_06_34_46_9391.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/33/image_15012025_06_33_56_9363.jpg
/home/pi/Desktop/images/15012025/06/33/image_15012025_06_34_06_10503.jpg
/home/pi/Desktop/images/15012025/06/34/image_15012025_06_34_16_10370.jpg
/home/pi/Desktop/images/15012025/06/34/image_15012025_06_34_26_9372.jpg
/home/pi/Desktop/images/15012025/06/34/image_15012025_06_34_36_10468.jpg
/home/pi/Desktop/images/15012025/06/34/image_15012025_06_34_46_9391.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6101973056793213 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
2025-01-15 21:16:42.386958
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/33/image_15012025_06_33_56_9363.jpg', '/home/pi/Desktop/images/15012025/06/33/image_15012025_06_34_06_10503.jpg', '/home/pi/Desktop/images/15012025/06/34/image_15012025_06_34_16_10370.jpg', '/home/pi/Desktop/images/15012025/06/34/image_15012025_06_34_26_9372.jpg', '/home/pi/Desktop/images/15012025/06/34/image_15012025_06_34_36_10468.jpg', '/home/pi/Desktop/images/15012025/06/34/image_15012025_06_34_46_9391.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/33/image_15012025_06_33_56_9363.jpg
/home/pi/Desktop/images/15012025/06/33/image_15012025_06_34_06_10503.jpg
/home/pi/Desktop/images/15012025/06/34/image_15012025_06_34_16_10370.jpg
/home/pi/Desktop/images/15012025/06/34/image_15012025_06_34_26_9372.jpg
/home/pi/Desktop/images/15012025/06/34/image_15012025_06_34_36_10468.jpg
/home/pi/Desktop/images/15012025/06/34/image_15012025_06_34_46_9391.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329215019","1329215112","1329215012","1329215173","1329215008","1329215016"],"photo_ids_order":["1329215008","1329215012","1329215016","1329215019","1329215112","1329215173"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6e3706a063509fca90776fb8bce8f001.jpg","text":"TemporaryFile(/tmp/multipartBody8474542045827359448asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972263329,"filename":"image_15012025_06_34_26_9372.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/486bf2ce00a0abc90e6bc95464ef1643.jpg","text":"TemporaryFile(/tmp/multipartBody8248553152932806807asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972263329,"filename":"image_15012025_06_34_36_10468.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4e10cd0f6fba1dc908934acc7ed62009.jpg","text":"TemporaryFile(/tmp/multipartBody7714792568058271060asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972263329,"filename":"image_15012025_06_34_06_10503.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1025f1f4e23fac9e65eb358fe2429234.jpg","text":"TemporaryFile(/tmp/multipartBody4589287268339869511asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972263329,"filename":"image_15012025_06_34_46_9391.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7c1071914e3f69abde6be17a060eb465.jpg","text":"TemporaryFile(/tmp/multipartBody3927070546557044586asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972263329,"filename":"image_15012025_06_33_56_9363.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/83478d3de01f462a45bda35f9eb0180c.jpg","text":"TemporaryFile(/tmp/multipartBody66055974960636226asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972263329,"filename":"image_15012025_06_34_16_10370.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329215016","file1":"1329215012","file0":"1329215008","file4":"1329215112","file5":"1329215173","file3":"1329215019"},"map_files_photo_id_array":[{"photo_id":"1329215173","filename":"file5"},{"photo_id":"1329215016","filename":"file2"},{"photo_id":"1329215112","filename":"file4"},{"photo_id":"1329215012","filename":"file1"},{"photo_id":"1329215008","filename":"file0"},{"photo_id":"1329215019","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329215019":["hashtag1","hashtag2"]},{"1329215112":["hashtag1","hashtag2"]},{"1329215012":["hashtag1","hashtag2"]},{"1329215173":["hashtag1","hashtag2"]},{"1329215008":["hashtag1","hashtag2"]},{"1329215016":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329215019, 1329215112, 1329215012, 1329215173, 1329215008, 1329215016)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.77477765083313 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 15 --only_old 0
2025-01-15 21:17:32.707996
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/34/image_15012025_06_34_56_10461.jpg', '/home/pi/Desktop/images/15012025/06/35/image_15012025_06_35_26_10371.jpg', '/home/pi/Desktop/images/15012025/06/35/image_15012025_06_35_36_9338.jpg', '/home/pi/Desktop/images/15012025/06/35/image_15012025_06_35_56_10357.jpg', '/home/pi/Desktop/images/15012025/06/35/image_15012025_06_36_06_9448.jpg', '/home/pi/Desktop/images/15012025/06/36/image_15012025_06_36_16_10444.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/34/image_15012025_06_34_56_10461.jpg
/home/pi/Desktop/images/15012025/06/35/image_15012025_06_35_26_10371.jpg
/home/pi/Desktop/images/15012025/06/35/image_15012025_06_35_36_9338.jpg
/home/pi/Desktop/images/15012025/06/35/image_15012025_06_35_56_10357.jpg
/home/pi/Desktop/images/15012025/06/35/image_15012025_06_36_06_9448.jpg
/home/pi/Desktop/images/15012025/06/36/image_15012025_06_36_16_10444.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329215217","1329215395","1329215213","1329215287","1329215204","1329215233"],"photo_ids_order":["1329215204","1329215213","1329215217","1329215233","1329215287","1329215395"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/240a251ba2714137f0afab4c5fd79992.jpg","text":"TemporaryFile(/tmp/multipartBody2319202321252487370asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972313704,"filename":"image_15012025_06_35_36_9338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c474d0521f9df28c1ae3f35166b4c675.jpg","text":"TemporaryFile(/tmp/multipartBody8887972181397911132asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972313704,"filename":"image_15012025_06_36_16_10444.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1f10e9052be942753e9c7dccec039e6c.jpg","text":"TemporaryFile(/tmp/multipartBody5070905226340968889asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972313704,"filename":"image_15012025_06_35_26_10371.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/be5978aa05ea3e62215c1c0a5736169e.jpg","text":"TemporaryFile(/tmp/multipartBody6288385459431721349asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972313704,"filename":"image_15012025_06_36_06_9448.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/11bb9bdd930c90a17f94d80e6d75e12b.jpg","text":"TemporaryFile(/tmp/multipartBody8409822328664628350asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972313704,"filename":"image_15012025_06_34_56_10461.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/df189f2d9a78c9351d217e80e9476723.jpg","text":"TemporaryFile(/tmp/multipartBody3734674725387540721asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972313704,"filename":"image_15012025_06_35_56_10357.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329215217","file1":"1329215213","file0":"1329215204","file4":"1329215287","file5":"1329215395","file3":"1329215233"},"map_files_photo_id_array":[{"photo_id":"1329215395","filename":"file5"},{"photo_id":"1329215217","filename":"file2"},{"photo_id":"1329215287","filename":"file4"},{"photo_id":"1329215213","filename":"file1"},{"photo_id":"1329215204","filename":"file0"},{"photo_id":"1329215233","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329215217":["hashtag1","hashtag2"]},{"1329215395":["hashtag1","hashtag2"]},{"1329215213":["hashtag1","hashtag2"]},{"1329215287":["hashtag1","hashtag2"]},{"1329215204":["hashtag1","hashtag2"]},{"1329215233":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329215217, 1329215395, 1329215213, 1329215287, 1329215204, 1329215233)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.983365535736084 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 15 --only_old 0
2025-01-15 21:18:32.915981
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/36/image_15012025_06_36_25_9356.jpg', '/home/pi/Desktop/images/15012025/06/36/image_15012025_06_36_36_10356.jpg', '/home/pi/Desktop/images/15012025/06/36/image_15012025_06_37_06_10404.jpg', '/home/pi/Desktop/images/15012025/06/37/image_15012025_06_37_16_10360.jpg', '/home/pi/Desktop/images/15012025/06/37/image_15012025_06_37_36_10342.jpg', '/home/pi/Desktop/images/15012025/06/37/image_15012025_06_37_56_10375.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/36/image_15012025_06_36_25_9356.jpg
/home/pi/Desktop/images/15012025/06/36/image_15012025_06_36_36_10356.jpg
/home/pi/Desktop/images/15012025/06/36/image_15012025_06_37_06_10404.jpg
/home/pi/Desktop/images/15012025/06/37/image_15012025_06_37_16_10360.jpg
/home/pi/Desktop/images/15012025/06/37/image_15012025_06_37_36_10342.jpg
/home/pi/Desktop/images/15012025/06/37/image_15012025_06_37_56_10375.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329215706","1329215700","1329215828","1329215702","1329215782","1329215697"],"photo_ids_order":["1329215697","1329215700","1329215702","1329215706","1329215782","1329215828"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/669d3991eb3db2802c227aa19df5642d.jpg","text":"TemporaryFile(/tmp/multipartBody1147214585526839811asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972373926,"filename":"image_15012025_06_37_16_10360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/422007e4f52d206f96d812225544fc5c.jpg","text":"TemporaryFile(/tmp/multipartBody5316974374627201881asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972373926,"filename":"image_15012025_06_36_36_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bc0307c8645c60bf69b4f84119cc9963.jpg","text":"TemporaryFile(/tmp/multipartBody6838545828223471144asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972373926,"filename":"image_15012025_06_37_56_10375.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8079221236976066bac2fea1fd5adcd0.jpg","text":"TemporaryFile(/tmp/multipartBody2325439961632259075asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972373926,"filename":"image_15012025_06_37_06_10404.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b51f3ec34d1750b7aacf27c24f3461a6.jpg","text":"TemporaryFile(/tmp/multipartBody4947751124708723923asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972373926,"filename":"image_15012025_06_37_36_10342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/637ea1cba506e84abcc63545c70e512b.jpg","text":"TemporaryFile(/tmp/multipartBody6749781145615605263asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972373926,"filename":"image_15012025_06_36_25_9356.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329215702","file1":"1329215700","file0":"1329215697","file4":"1329215782","file5":"1329215828","file3":"1329215706"},"map_files_photo_id_array":[{"photo_id":"1329215828","filename":"file5"},{"photo_id":"1329215702","filename":"file2"},{"photo_id":"1329215782","filename":"file4"},{"photo_id":"1329215700","filename":"file1"},{"photo_id":"1329215697","filename":"file0"},{"photo_id":"1329215706","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329215706":["hashtag1","hashtag2"]},{"1329215700":["hashtag1","hashtag2"]},{"1329215828":["hashtag1","hashtag2"]},{"1329215702":["hashtag1","hashtag2"]},{"1329215782":["hashtag1","hashtag2"]},{"1329215697":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329215706, 1329215700, 1329215828, 1329215702, 1329215782, 1329215697)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 50.02648305892944 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 15 --only_old 0
2025-01-15 21:19:33.176561
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/38/image_15012025_06_38_46_10390.jpg', '/home/pi/Desktop/images/15012025/06/38/image_15012025_06_38_56_10359.jpg', '/home/pi/Desktop/images/15012025/06/38/image_15012025_06_39_06_9367.jpg', '/home/pi/Desktop/images/15012025/06/39/image_15012025_06_39_16_10496.jpg', '/home/pi/Desktop/images/15012025/06/39/image_15012025_06_39_36_9353.jpg', '/home/pi/Desktop/images/15012025/06/39/image_15012025_06_39_46_10646.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/38/image_15012025_06_38_46_10390.jpg
/home/pi/Desktop/images/15012025/06/38/image_15012025_06_38_56_10359.jpg
/home/pi/Desktop/images/15012025/06/38/image_15012025_06_39_06_9367.jpg
/home/pi/Desktop/images/15012025/06/39/image_15012025_06_39_16_10496.jpg
/home/pi/Desktop/images/15012025/06/39/image_15012025_06_39_36_9353.jpg
/home/pi/Desktop/images/15012025/06/39/image_15012025_06_39_46_10646.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329215939","1329215933","1329215929","1329215898","1329215940","1329215937"],"photo_ids_order":["1329215898","1329215929","1329215933","1329215937","1329215939","1329215940"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c3cd73f2799b6a2040426f71b2fa89e8.jpg","text":"TemporaryFile(/tmp/multipartBody3551983469047665537asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972434197,"filename":"image_15012025_06_39_36_9353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2513d338ef889e5a5ad263e9513541ad.jpg","text":"TemporaryFile(/tmp/multipartBody826041152080757848asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972434197,"filename":"image_15012025_06_39_06_9367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9f2d874578f39fdbb50e46a0f2693a30.jpg","text":"TemporaryFile(/tmp/multipartBody2578351471569967351asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972434197,"filename":"image_15012025_06_38_56_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/551be93473b7df032ad888aad42ff983.jpg","text":"TemporaryFile(/tmp/multipartBody1650006090870043804asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972434197,"filename":"image_15012025_06_38_46_10390.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/76af38fd9db47fb6dc8152d916346d39.jpg","text":"TemporaryFile(/tmp/multipartBody257806905764794442asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972434197,"filename":"image_15012025_06_39_46_10646.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6f887e6441f119b7dab68055278424d7.jpg","text":"TemporaryFile(/tmp/multipartBody6949386081970572618asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972434197,"filename":"image_15012025_06_39_16_10496.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329215933","file1":"1329215929","file0":"1329215898","file4":"1329215939","file5":"1329215940","file3":"1329215937"},"map_files_photo_id_array":[{"photo_id":"1329215940","filename":"file5"},{"photo_id":"1329215933","filename":"file2"},{"photo_id":"1329215939","filename":"file4"},{"photo_id":"1329215929","filename":"file1"},{"photo_id":"1329215898","filename":"file0"},{"photo_id":"1329215937","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329215939":["hashtag1","hashtag2"]},{"1329215933":["hashtag1","hashtag2"]},{"1329215929":["hashtag1","hashtag2"]},{"1329215898":["hashtag1","hashtag2"]},{"1329215940":["hashtag1","hashtag2"]},{"1329215937":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329215939, 1329215933, 1329215929, 1329215898, 1329215940, 1329215937)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.72333550453186 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 15 --only_old 0
2025-01-15 21:20:32.327426
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/39/image_15012025_06_39_56_9357.jpg', '/home/pi/Desktop/images/15012025/06/39/image_15012025_06_40_06_10465.jpg', '/home/pi/Desktop/images/15012025/06/40/image_15012025_06_40_16_9340.jpg', '/home/pi/Desktop/images/15012025/06/40/image_15012025_06_40_26_10406.jpg', '/home/pi/Desktop/images/15012025/06/40/image_15012025_06_40_36_10371.jpg', '/home/pi/Desktop/images/15012025/06/40/image_15012025_06_40_46_9331.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/39/image_15012025_06_39_56_9357.jpg
/home/pi/Desktop/images/15012025/06/39/image_15012025_06_40_06_10465.jpg
/home/pi/Desktop/images/15012025/06/40/image_15012025_06_40_16_9340.jpg
/home/pi/Desktop/images/15012025/06/40/image_15012025_06_40_26_10406.jpg
/home/pi/Desktop/images/15012025/06/40/image_15012025_06_40_36_10371.jpg
/home/pi/Desktop/images/15012025/06/40/image_15012025_06_40_46_9331.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6262741088867188 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
2025-01-15 21:20:42.301578
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/39/image_15012025_06_39_56_9357.jpg', '/home/pi/Desktop/images/15012025/06/39/image_15012025_06_40_06_10465.jpg', '/home/pi/Desktop/images/15012025/06/40/image_15012025_06_40_16_9340.jpg', '/home/pi/Desktop/images/15012025/06/40/image_15012025_06_40_26_10406.jpg', '/home/pi/Desktop/images/15012025/06/40/image_15012025_06_40_36_10371.jpg', '/home/pi/Desktop/images/15012025/06/40/image_15012025_06_40_46_9331.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/39/image_15012025_06_39_56_9357.jpg
/home/pi/Desktop/images/15012025/06/39/image_15012025_06_40_06_10465.jpg
/home/pi/Desktop/images/15012025/06/40/image_15012025_06_40_16_9340.jpg
/home/pi/Desktop/images/15012025/06/40/image_15012025_06_40_26_10406.jpg
/home/pi/Desktop/images/15012025/06/40/image_15012025_06_40_36_10371.jpg
/home/pi/Desktop/images/15012025/06/40/image_15012025_06_40_46_9331.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329217069","1329216632","1329216926","1329217074","1329217083","1329216712"],"photo_ids_order":["1329216632","1329216712","1329216926","1329217069","1329217074","1329217083"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/086fa95da04628a3f600b42985af036d.jpg","text":"TemporaryFile(/tmp/multipartBody5998224748478634418asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972503219,"filename":"image_15012025_06_40_26_10406.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b5326e32aaf1ef31fd09a130b735ee99.jpg","text":"TemporaryFile(/tmp/multipartBody1104244705528202424asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972503219,"filename":"image_15012025_06_39_56_9357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4fbbfece8d224252b1f974cff95f6358.jpg","text":"TemporaryFile(/tmp/multipartBody7078927250773981910asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972503219,"filename":"image_15012025_06_40_16_9340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ed1ca10be79e5fdbd898b7ce18769e53.jpg","text":"TemporaryFile(/tmp/multipartBody3313327721395414360asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972503219,"filename":"image_15012025_06_40_36_10371.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e66cae0ff530e38113eeb570799a5bf7.jpg","text":"TemporaryFile(/tmp/multipartBody7076661344188114262asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972503219,"filename":"image_15012025_06_40_46_9331.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/80e1e2397220c0ea3e26ad59f49661a5.jpg","text":"TemporaryFile(/tmp/multipartBody9196710891197893560asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972503219,"filename":"image_15012025_06_40_06_10465.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329216926","file1":"1329216712","file0":"1329216632","file4":"1329217074","file5":"1329217083","file3":"1329217069"},"map_files_photo_id_array":[{"photo_id":"1329217083","filename":"file5"},{"photo_id":"1329216926","filename":"file2"},{"photo_id":"1329217074","filename":"file4"},{"photo_id":"1329216712","filename":"file1"},{"photo_id":"1329216632","filename":"file0"},{"photo_id":"1329217069","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329217069":["hashtag1","hashtag2"]},{"1329216632":["hashtag1","hashtag2"]},{"1329216926":["hashtag1","hashtag2"]},{"1329217074":["hashtag1","hashtag2"]},{"1329217083":["hashtag1","hashtag2"]},{"1329216712":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329217069, 1329216632, 1329216926, 1329217074, 1329217083, 1329216712)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.97584295272827 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 15 --only_old 0
2025-01-15 21:21:32.476384
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/40/image_15012025_06_40_56_10456.jpg', '/home/pi/Desktop/images/15012025/06/40/image_15012025_06_41_05_9338.jpg', '/home/pi/Desktop/images/15012025/06/41/image_15012025_06_41_16_10363.jpg', '/home/pi/Desktop/images/15012025/06/41/image_15012025_06_41_26_10369.jpg', '/home/pi/Desktop/images/15012025/06/41/image_15012025_06_41_36_9402.jpg', '/home/pi/Desktop/images/15012025/06/41/image_15012025_06_41_46_10422.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/40/image_15012025_06_40_56_10456.jpg
/home/pi/Desktop/images/15012025/06/40/image_15012025_06_41_05_9338.jpg
/home/pi/Desktop/images/15012025/06/41/image_15012025_06_41_16_10363.jpg
/home/pi/Desktop/images/15012025/06/41/image_15012025_06_41_26_10369.jpg
/home/pi/Desktop/images/15012025/06/41/image_15012025_06_41_36_9402.jpg
/home/pi/Desktop/images/15012025/06/41/image_15012025_06_41_46_10422.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329217112","1329217396","1329217156","1329217284","1329217149","1329217154"],"photo_ids_order":["1329217112","1329217149","1329217154","1329217156","1329217284","1329217396"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6cb0b531f5de5b45ba734054de03b608.jpg","text":"TemporaryFile(/tmp/multipartBody1744000917604434013asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972553488,"filename":"image_15012025_06_40_56_10456.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d7aebf88f5c4b8346488bd4207b85c15.jpg","text":"TemporaryFile(/tmp/multipartBody1087679011600334809asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972553488,"filename":"image_15012025_06_41_46_10422.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/85f7d91e1cbcfa77c2d8087ab1c29c96.jpg","text":"TemporaryFile(/tmp/multipartBody5297469517644831151asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972553488,"filename":"image_15012025_06_41_26_10369.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8de12e0f2a01737c2108a4740b4aa585.jpg","text":"TemporaryFile(/tmp/multipartBody7927830335295880808asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972553488,"filename":"image_15012025_06_41_36_9402.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/738ca2c061b0d963a3028fae5688f5cf.jpg","text":"TemporaryFile(/tmp/multipartBody5087047710750349837asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972553488,"filename":"image_15012025_06_41_05_9338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e261288836fc42cbedbba495b25ddbc0.jpg","text":"TemporaryFile(/tmp/multipartBody4095791033601259782asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972553488,"filename":"image_15012025_06_41_16_10363.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329217154","file1":"1329217149","file0":"1329217112","file4":"1329217284","file5":"1329217396","file3":"1329217156"},"map_files_photo_id_array":[{"photo_id":"1329217396","filename":"file5"},{"photo_id":"1329217154","filename":"file2"},{"photo_id":"1329217284","filename":"file4"},{"photo_id":"1329217149","filename":"file1"},{"photo_id":"1329217112","filename":"file0"},{"photo_id":"1329217156","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329217112":["hashtag1","hashtag2"]},{"1329217396":["hashtag1","hashtag2"]},{"1329217156":["hashtag1","hashtag2"]},{"1329217284":["hashtag1","hashtag2"]},{"1329217149":["hashtag1","hashtag2"]},{"1329217154":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329217112, 1329217396, 1329217156, 1329217284, 1329217149, 1329217154)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.969648122787476 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 15 --only_old 0
2025-01-15 21:22:32.748908
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/41/image_15012025_06_41_56_10363.jpg', '/home/pi/Desktop/images/15012025/06/41/image_15012025_06_42_06_9345.jpg', '/home/pi/Desktop/images/15012025/06/42/image_15012025_06_42_16_10359.jpg', '/home/pi/Desktop/images/15012025/06/42/image_15012025_06_42_36_10353.jpg', '/home/pi/Desktop/images/15012025/06/42/image_15012025_06_42_46_10423.jpg', '/home/pi/Desktop/images/15012025/06/42/image_15012025_06_42_56_9356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/41/image_15012025_06_41_56_10363.jpg
/home/pi/Desktop/images/15012025/06/41/image_15012025_06_42_06_9345.jpg
/home/pi/Desktop/images/15012025/06/42/image_15012025_06_42_16_10359.jpg
/home/pi/Desktop/images/15012025/06/42/image_15012025_06_42_36_10353.jpg
/home/pi/Desktop/images/15012025/06/42/image_15012025_06_42_46_10423.jpg
/home/pi/Desktop/images/15012025/06/42/image_15012025_06_42_56_9356.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329217520","1329217522","1329217525","1329217524","1329217515","1329217511"],"photo_ids_order":["1329217511","1329217515","1329217520","1329217522","1329217524","1329217525"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/945b8421a09ab8428087335312df02d5.jpg","text":"TemporaryFile(/tmp/multipartBody5796917397996106082asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972613750,"filename":"image_15012025_06_42_16_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/60d94a224e345b6f0091190da3951689.jpg","text":"TemporaryFile(/tmp/multipartBody3905199300879041742asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972613750,"filename":"image_15012025_06_42_36_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cf9fcdf693a12da1aba9394f98135f9d.jpg","text":"TemporaryFile(/tmp/multipartBody3755045898328633176asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972613750,"filename":"image_15012025_06_42_56_9356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9cc229130a47f40e89838965b076668c.jpg","text":"TemporaryFile(/tmp/multipartBody282170714179862088asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972613750,"filename":"image_15012025_06_42_46_10423.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/53f661faebd4bcc128cfd064bb2d22ba.jpg","text":"TemporaryFile(/tmp/multipartBody8827387343314173044asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972613750,"filename":"image_15012025_06_42_06_9345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ef09d5a657e34fd3fac42a95924ca6d5.jpg","text":"TemporaryFile(/tmp/multipartBody3574374217498194577asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972613750,"filename":"image_15012025_06_41_56_10363.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329217520","file1":"1329217515","file0":"1329217511","file4":"1329217524","file5":"1329217525","file3":"1329217522"},"map_files_photo_id_array":[{"photo_id":"1329217525","filename":"file5"},{"photo_id":"1329217520","filename":"file2"},{"photo_id":"1329217524","filename":"file4"},{"photo_id":"1329217515","filename":"file1"},{"photo_id":"1329217511","filename":"file0"},{"photo_id":"1329217522","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329217520":["hashtag1","hashtag2"]},{"1329217522":["hashtag1","hashtag2"]},{"1329217525":["hashtag1","hashtag2"]},{"1329217524":["hashtag1","hashtag2"]},{"1329217515":["hashtag1","hashtag2"]},{"1329217511":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329217520, 1329217522, 1329217525, 1329217524, 1329217515, 1329217511)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.18137073516846 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 15 --only_old 0
2025-01-15 21:23:32.972182
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/42/image_15012025_06_43_06_10410.jpg', '/home/pi/Desktop/images/15012025/06/43/image_15012025_06_43_16_10365.jpg', '/home/pi/Desktop/images/15012025/06/43/image_15012025_06_43_26_9435.jpg', '/home/pi/Desktop/images/15012025/06/43/image_15012025_06_43_36_10431.jpg', '/home/pi/Desktop/images/15012025/06/43/image_15012025_06_43_46_9333.jpg', '/home/pi/Desktop/images/15012025/06/43/image_15012025_06_43_56_10464.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/42/image_15012025_06_43_06_10410.jpg
/home/pi/Desktop/images/15012025/06/43/image_15012025_06_43_16_10365.jpg
/home/pi/Desktop/images/15012025/06/43/image_15012025_06_43_26_9435.jpg
/home/pi/Desktop/images/15012025/06/43/image_15012025_06_43_36_10431.jpg
/home/pi/Desktop/images/15012025/06/43/image_15012025_06_43_46_9333.jpg
/home/pi/Desktop/images/15012025/06/43/image_15012025_06_43_56_10464.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329217561","1329217578","1329217577","1329217550","1329217544","1329217547"],"photo_ids_order":["1329217544","1329217547","1329217550","1329217561","1329217577","1329217578"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b6511e3370551ac51a0f0bbae481d334.jpg","text":"TemporaryFile(/tmp/multipartBody3449888803248636729asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972673960,"filename":"image_15012025_06_43_36_10431.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2e935f910520edece60920f8b49b09e3.jpg","text":"TemporaryFile(/tmp/multipartBody4049278684106739349asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972673960,"filename":"image_15012025_06_43_56_10464.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6ba2de28ba14079726767076b03229b9.jpg","text":"TemporaryFile(/tmp/multipartBody8810498739562955652asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972673960,"filename":"image_15012025_06_43_46_9333.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bd45228a9c588971505877999c509611.jpg","text":"TemporaryFile(/tmp/multipartBody1987442543407897442asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972673960,"filename":"image_15012025_06_43_26_9435.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7fba691cbb73cb5a1169caab6cb2bd36.jpg","text":"TemporaryFile(/tmp/multipartBody224318199777937248asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972673960,"filename":"image_15012025_06_43_06_10410.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8c61863c2220cec10da53c2227e93025.jpg","text":"TemporaryFile(/tmp/multipartBody1129596813438085667asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972673960,"filename":"image_15012025_06_43_16_10365.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329217550","file1":"1329217547","file0":"1329217544","file4":"1329217577","file5":"1329217578","file3":"1329217561"},"map_files_photo_id_array":[{"photo_id":"1329217578","filename":"file5"},{"photo_id":"1329217550","filename":"file2"},{"photo_id":"1329217577","filename":"file4"},{"photo_id":"1329217547","filename":"file1"},{"photo_id":"1329217544","filename":"file0"},{"photo_id":"1329217561","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329217561":["hashtag1","hashtag2"]},{"1329217578":["hashtag1","hashtag2"]},{"1329217577":["hashtag1","hashtag2"]},{"1329217550":["hashtag1","hashtag2"]},{"1329217544":["hashtag1","hashtag2"]},{"1329217547":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329217561, 1329217578, 1329217577, 1329217550, 1329217544, 1329217547)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.38749647140503 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 15 --only_old 0
2025-01-15 21:24:32.409246
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/43/image_15012025_06_44_06_10340.jpg', '/home/pi/Desktop/images/15012025/06/44/image_15012025_06_44_16_9341.jpg', '/home/pi/Desktop/images/15012025/06/44/image_15012025_06_44_26_10431.jpg', '/home/pi/Desktop/images/15012025/06/44/image_15012025_06_44_35_9329.jpg', '/home/pi/Desktop/images/15012025/06/45/image_15012025_06_45_36_9342.jpg', '/home/pi/Desktop/images/15012025/06/45/image_15012025_06_45_46_10458.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/43/image_15012025_06_44_06_10340.jpg
/home/pi/Desktop/images/15012025/06/44/image_15012025_06_44_16_9341.jpg
/home/pi/Desktop/images/15012025/06/44/image_15012025_06_44_26_10431.jpg
/home/pi/Desktop/images/15012025/06/44/image_15012025_06_44_35_9329.jpg
/home/pi/Desktop/images/15012025/06/45/image_15012025_06_45_36_9342.jpg
/home/pi/Desktop/images/15012025/06/45/image_15012025_06_45_46_10458.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6219873428344727 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
2025-01-15 21:24:42.225442
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/43/image_15012025_06_44_06_10340.jpg', '/home/pi/Desktop/images/15012025/06/44/image_15012025_06_44_16_9341.jpg', '/home/pi/Desktop/images/15012025/06/44/image_15012025_06_44_26_10431.jpg', '/home/pi/Desktop/images/15012025/06/44/image_15012025_06_44_35_9329.jpg', '/home/pi/Desktop/images/15012025/06/45/image_15012025_06_45_36_9342.jpg', '/home/pi/Desktop/images/15012025/06/45/image_15012025_06_45_46_10458.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/43/image_15012025_06_44_06_10340.jpg
/home/pi/Desktop/images/15012025/06/44/image_15012025_06_44_16_9341.jpg
/home/pi/Desktop/images/15012025/06/44/image_15012025_06_44_26_10431.jpg
/home/pi/Desktop/images/15012025/06/44/image_15012025_06_44_35_9329.jpg
/home/pi/Desktop/images/15012025/06/45/image_15012025_06_45_36_9342.jpg
/home/pi/Desktop/images/15012025/06/45/image_15012025_06_45_46_10458.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329217780","1329217786","1329217771","1329217776","1329217784","1329217766"],"photo_ids_order":["1329217766","1329217771","1329217776","1329217780","1329217784","1329217786"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f34953b6628eb7bcc4553462733c2d51.jpg","text":"TemporaryFile(/tmp/multipartBody3503459147409146535asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972743153,"filename":"image_15012025_06_44_35_9329.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e42581fc74ef34424256bfdbb370ce35.jpg","text":"TemporaryFile(/tmp/multipartBody995407363770479218asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972743153,"filename":"image_15012025_06_45_46_10458.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c2a9a2b98d0c43acf42c2cd134a977c7.jpg","text":"TemporaryFile(/tmp/multipartBody2761247066562595892asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972743153,"filename":"image_15012025_06_44_16_9341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b762eaa20579051d0d675db9974688c8.jpg","text":"TemporaryFile(/tmp/multipartBody432935163329008796asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972743153,"filename":"image_15012025_06_44_26_10431.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/56a5a62c55847c1ff037ffcc6bae36db.jpg","text":"TemporaryFile(/tmp/multipartBody284142915819244878asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972743153,"filename":"image_15012025_06_45_36_9342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/288db618de4891e09e9ae400389d3f0b.jpg","text":"TemporaryFile(/tmp/multipartBody8370161371604462653asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972743153,"filename":"image_15012025_06_44_06_10340.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329217776","file1":"1329217771","file0":"1329217766","file4":"1329217784","file5":"1329217786","file3":"1329217780"},"map_files_photo_id_array":[{"photo_id":"1329217786","filename":"file5"},{"photo_id":"1329217776","filename":"file2"},{"photo_id":"1329217784","filename":"file4"},{"photo_id":"1329217771","filename":"file1"},{"photo_id":"1329217766","filename":"file0"},{"photo_id":"1329217780","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329217780":["hashtag1","hashtag2"]},{"1329217786":["hashtag1","hashtag2"]},{"1329217771":["hashtag1","hashtag2"]},{"1329217776":["hashtag1","hashtag2"]},{"1329217784":["hashtag1","hashtag2"]},{"1329217766":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329217780, 1329217786, 1329217771, 1329217776, 1329217784, 1329217766)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.92198085784912 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 15 --only_old 0
2025-01-15 21:25:32.515487
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/45/image_15012025_06_46_06_10428.jpg', '/home/pi/Desktop/images/15012025/06/46/image_15012025_06_46_56_10395.jpg', '/home/pi/Desktop/images/15012025/06/46/image_15012025_06_47_06_10409.jpg', '/home/pi/Desktop/images/15012025/06/47/image_15012025_06_47_16_9338.jpg', '/home/pi/Desktop/images/15012025/06/47/image_15012025_06_47_46_10404.jpg', '/home/pi/Desktop/images/15012025/06/47/image_15012025_06_48_06_9341.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/45/image_15012025_06_46_06_10428.jpg
/home/pi/Desktop/images/15012025/06/46/image_15012025_06_46_56_10395.jpg
/home/pi/Desktop/images/15012025/06/46/image_15012025_06_47_06_10409.jpg
/home/pi/Desktop/images/15012025/06/47/image_15012025_06_47_16_9338.jpg
/home/pi/Desktop/images/15012025/06/47/image_15012025_06_47_46_10404.jpg
/home/pi/Desktop/images/15012025/06/47/image_15012025_06_48_06_9341.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329217873","1329217795","1329217864","1329217800","1329217871","1329217874"],"photo_ids_order":["1329217795","1329217800","1329217864","1329217871","1329217873","1329217874"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6f1a89f6279978c577712579b814281c.jpg","text":"TemporaryFile(/tmp/multipartBody416593645072377291asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972793529,"filename":"image_15012025_06_47_46_10404.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7cb6699d33460c7bce17002e69df3584.jpg","text":"TemporaryFile(/tmp/multipartBody8617701345178172991asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972793529,"filename":"image_15012025_06_46_06_10428.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a8adcea1d439526f91126807e859b724.jpg","text":"TemporaryFile(/tmp/multipartBody1081748295531668830asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972793529,"filename":"image_15012025_06_47_06_10409.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4681f461bdf744bbbd202fc75fc0aa73.jpg","text":"TemporaryFile(/tmp/multipartBody8940012633103833286asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972793529,"filename":"image_15012025_06_46_56_10395.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2f594caaac6dddb21b4e7ddfc343b2bf.jpg","text":"TemporaryFile(/tmp/multipartBody4814852415506614502asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972793529,"filename":"image_15012025_06_47_16_9338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/81be3ff33293503d30e03abf04bc4f6b.jpg","text":"TemporaryFile(/tmp/multipartBody6626950100486664114asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972793529,"filename":"image_15012025_06_48_06_9341.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329217864","file1":"1329217800","file0":"1329217795","file4":"1329217873","file5":"1329217874","file3":"1329217871"},"map_files_photo_id_array":[{"photo_id":"1329217874","filename":"file5"},{"photo_id":"1329217864","filename":"file2"},{"photo_id":"1329217873","filename":"file4"},{"photo_id":"1329217800","filename":"file1"},{"photo_id":"1329217795","filename":"file0"},{"photo_id":"1329217871","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329217873":["hashtag1","hashtag2"]},{"1329217795":["hashtag1","hashtag2"]},{"1329217864":["hashtag1","hashtag2"]},{"1329217800":["hashtag1","hashtag2"]},{"1329217871":["hashtag1","hashtag2"]},{"1329217874":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329217873, 1329217795, 1329217864, 1329217800, 1329217871, 1329217874)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.07684874534607 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 15 --only_old 0
2025-01-15 21:26:32.695609
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/48/image_15012025_06_48_16_10411.jpg', '/home/pi/Desktop/images/15012025/06/48/image_15012025_06_48_36_9350.jpg', '/home/pi/Desktop/images/15012025/06/48/image_15012025_06_48_46_10431.jpg', '/home/pi/Desktop/images/15012025/06/48/image_15012025_06_48_56_9355.jpg', '/home/pi/Desktop/images/15012025/06/48/image_15012025_06_49_06_10410.jpg', '/home/pi/Desktop/images/15012025/06/49/image_15012025_06_49_16_10364.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/48/image_15012025_06_48_16_10411.jpg
/home/pi/Desktop/images/15012025/06/48/image_15012025_06_48_36_9350.jpg
/home/pi/Desktop/images/15012025/06/48/image_15012025_06_48_46_10431.jpg
/home/pi/Desktop/images/15012025/06/48/image_15012025_06_48_56_9355.jpg
/home/pi/Desktop/images/15012025/06/48/image_15012025_06_49_06_10410.jpg
/home/pi/Desktop/images/15012025/06/49/image_15012025_06_49_16_10364.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329217897","1329217909","1329217911","1329217905","1329217901","1329217891"],"photo_ids_order":["1329217891","1329217897","1329217901","1329217905","1329217909","1329217911"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9f8a89df5c456a367351ef04f33413c6.jpg","text":"TemporaryFile(/tmp/multipartBody4384860250006433573asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972853691,"filename":"image_15012025_06_48_36_9350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/98d5840827da937a12c771ca8b885fa0.jpg","text":"TemporaryFile(/tmp/multipartBody2053322605531278155asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972853691,"filename":"image_15012025_06_49_06_10410.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/64978a8e5307d17127de37f0fe2e5178.jpg","text":"TemporaryFile(/tmp/multipartBody5842423167761812191asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972853691,"filename":"image_15012025_06_49_16_10364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/44b3aae174d78eeb1eef774356b3036c.jpg","text":"TemporaryFile(/tmp/multipartBody924909199422027869asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972853691,"filename":"image_15012025_06_48_56_9355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ccf99db5e804880dfcde60a8d7ad0964.jpg","text":"TemporaryFile(/tmp/multipartBody3297656291061937866asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972853691,"filename":"image_15012025_06_48_46_10431.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d3477a49283436b8e59ca66e0a3d7a0d.jpg","text":"TemporaryFile(/tmp/multipartBody2457464197080676809asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972853691,"filename":"image_15012025_06_48_16_10411.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329217901","file1":"1329217897","file0":"1329217891","file4":"1329217909","file5":"1329217911","file3":"1329217905"},"map_files_photo_id_array":[{"photo_id":"1329217911","filename":"file5"},{"photo_id":"1329217901","filename":"file2"},{"photo_id":"1329217909","filename":"file4"},{"photo_id":"1329217897","filename":"file1"},{"photo_id":"1329217891","filename":"file0"},{"photo_id":"1329217905","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329217897":["hashtag1","hashtag2"]},{"1329217909":["hashtag1","hashtag2"]},{"1329217911":["hashtag1","hashtag2"]},{"1329217905":["hashtag1","hashtag2"]},{"1329217901":["hashtag1","hashtag2"]},{"1329217891":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329217897, 1329217909, 1329217911, 1329217905, 1329217901, 1329217891)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.512070655822754 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 15 --only_old 0
2025-01-15 21:27:32.948178
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/50/image_15012025_06_50_46_10337.jpg', '/home/pi/Desktop/images/15012025/06/50/image_15012025_06_50_56_10342.jpg', '/home/pi/Desktop/images/15012025/06/50/image_15012025_06_51_05_9345.jpg', '/home/pi/Desktop/images/15012025/06/51/image_15012025_06_51_16_10344.jpg', '/home/pi/Desktop/images/15012025/06/51/image_15012025_06_51_26_10359.jpg', '/home/pi/Desktop/images/15012025/06/51/image_15012025_06_51_36_9349.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/50/image_15012025_06_50_46_10337.jpg
/home/pi/Desktop/images/15012025/06/50/image_15012025_06_50_56_10342.jpg
/home/pi/Desktop/images/15012025/06/50/image_15012025_06_51_05_9345.jpg
/home/pi/Desktop/images/15012025/06/51/image_15012025_06_51_16_10344.jpg
/home/pi/Desktop/images/15012025/06/51/image_15012025_06_51_26_10359.jpg
/home/pi/Desktop/images/15012025/06/51/image_15012025_06_51_36_9349.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329217948","1329217947","1329217938","1329217943","1329217952","1329217934"],"photo_ids_order":["1329217934","1329217938","1329217943","1329217947","1329217948","1329217952"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a28149315bc25bd417050ed2e5461f87.jpg","text":"TemporaryFile(/tmp/multipartBody4267082340410163446asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972913948,"filename":"image_15012025_06_51_26_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1ef02a48b0c088dd48ec7db9b1de1789.jpg","text":"TemporaryFile(/tmp/multipartBody3924179240062003732asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972913948,"filename":"image_15012025_06_51_16_10344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0a5fbf44dd013f66582300d3b8d1aa83.jpg","text":"TemporaryFile(/tmp/multipartBody5481665263207457233asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972913948,"filename":"image_15012025_06_50_56_10342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f332f7efa016ee353b240ae39a121857.jpg","text":"TemporaryFile(/tmp/multipartBody4212908681436536375asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972913948,"filename":"image_15012025_06_51_05_9345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/988f647f68dceaa55c48956b0ddc0c06.jpg","text":"TemporaryFile(/tmp/multipartBody3405423919267993486asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972913948,"filename":"image_15012025_06_51_36_9349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d7531209ed621e2659b39bc9227b34e6.jpg","text":"TemporaryFile(/tmp/multipartBody678854162879547055asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972913948,"filename":"image_15012025_06_50_46_10337.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329217943","file1":"1329217938","file0":"1329217934","file4":"1329217948","file5":"1329217952","file3":"1329217947"},"map_files_photo_id_array":[{"photo_id":"1329217952","filename":"file5"},{"photo_id":"1329217943","filename":"file2"},{"photo_id":"1329217948","filename":"file4"},{"photo_id":"1329217938","filename":"file1"},{"photo_id":"1329217934","filename":"file0"},{"photo_id":"1329217947","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329217948":["hashtag1","hashtag2"]},{"1329217947":["hashtag1","hashtag2"]},{"1329217938":["hashtag1","hashtag2"]},{"1329217943":["hashtag1","hashtag2"]},{"1329217952":["hashtag1","hashtag2"]},{"1329217934":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329217948, 1329217947, 1329217938, 1329217943, 1329217952, 1329217934)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.31810021400452 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 15 --only_old 0
2025-01-15 21:28:33.067347
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/51/image_15012025_06_51_46_10372.jpg', '/home/pi/Desktop/images/15012025/06/51/image_15012025_06_51_56_10405.jpg', '/home/pi/Desktop/images/15012025/06/51/image_15012025_06_52_06_9344.jpg', '/home/pi/Desktop/images/15012025/06/52/image_15012025_06_52_16_10456.jpg', '/home/pi/Desktop/images/15012025/06/52/image_15012025_06_52_26_9465.jpg', '/home/pi/Desktop/images/15012025/06/52/image_15012025_06_52_36_10429.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/51/image_15012025_06_51_46_10372.jpg
/home/pi/Desktop/images/15012025/06/51/image_15012025_06_51_56_10405.jpg
/home/pi/Desktop/images/15012025/06/51/image_15012025_06_52_06_9344.jpg
/home/pi/Desktop/images/15012025/06/52/image_15012025_06_52_16_10456.jpg
/home/pi/Desktop/images/15012025/06/52/image_15012025_06_52_26_9465.jpg
/home/pi/Desktop/images/15012025/06/52/image_15012025_06_52_36_10429.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.5935955047607422 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
2025-01-15 21:28:43.085938
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/51/image_15012025_06_51_46_10372.jpg', '/home/pi/Desktop/images/15012025/06/51/image_15012025_06_51_56_10405.jpg', '/home/pi/Desktop/images/15012025/06/51/image_15012025_06_52_06_9344.jpg', '/home/pi/Desktop/images/15012025/06/52/image_15012025_06_52_16_10456.jpg', '/home/pi/Desktop/images/15012025/06/52/image_15012025_06_52_26_9465.jpg', '/home/pi/Desktop/images/15012025/06/52/image_15012025_06_52_36_10429.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/51/image_15012025_06_51_46_10372.jpg
/home/pi/Desktop/images/15012025/06/51/image_15012025_06_51_56_10405.jpg
/home/pi/Desktop/images/15012025/06/51/image_15012025_06_52_06_9344.jpg
/home/pi/Desktop/images/15012025/06/52/image_15012025_06_52_16_10456.jpg
/home/pi/Desktop/images/15012025/06/52/image_15012025_06_52_26_9465.jpg
/home/pi/Desktop/images/15012025/06/52/image_15012025_06_52_36_10429.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329218023","1329218034","1329218031","1329218019","1329218010","1329217999"],"photo_ids_order":["1329217999","1329218010","1329218019","1329218023","1329218031","1329218034"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4af02103e32a30c463323dce5cc56e7f.jpg","text":"TemporaryFile(/tmp/multipartBody5647777951334690324asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972984018,"filename":"image_15012025_06_52_16_10456.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/aab7dbbf19b68053d040ab25a43444bb.jpg","text":"TemporaryFile(/tmp/multipartBody5445192257594486071asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972984018,"filename":"image_15012025_06_52_36_10429.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d7df6a99b8df81db07df51d6db571e75.jpg","text":"TemporaryFile(/tmp/multipartBody1816037162872669991asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972984018,"filename":"image_15012025_06_52_26_9465.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f98e2a5508439c3df67c98fa999f4077.jpg","text":"TemporaryFile(/tmp/multipartBody6967228504760032889asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972984018,"filename":"image_15012025_06_52_06_9344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e899ccf0db72615c69923ac963c66e91.jpg","text":"TemporaryFile(/tmp/multipartBody5691482083418694078asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972984018,"filename":"image_15012025_06_51_56_10405.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4d6c15edc6eb22e7c72688b1ccbcedaf.jpg","text":"TemporaryFile(/tmp/multipartBody1975174394778577135asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736972984018,"filename":"image_15012025_06_51_46_10372.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329218019","file1":"1329218010","file0":"1329217999","file4":"1329218031","file5":"1329218034","file3":"1329218023"},"map_files_photo_id_array":[{"photo_id":"1329218034","filename":"file5"},{"photo_id":"1329218019","filename":"file2"},{"photo_id":"1329218031","filename":"file4"},{"photo_id":"1329218010","filename":"file1"},{"photo_id":"1329217999","filename":"file0"},{"photo_id":"1329218023","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329218023":["hashtag1","hashtag2"]},{"1329218034":["hashtag1","hashtag2"]},{"1329218031":["hashtag1","hashtag2"]},{"1329218019":["hashtag1","hashtag2"]},{"1329218010":["hashtag1","hashtag2"]},{"1329217999":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329218023, 1329218034, 1329218031, 1329218019, 1329218010, 1329217999)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.41833186149597 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 15 --only_old 0
2025-01-15 21:29:32.464441
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/52/image_15012025_06_53_06_10361.jpg', '/home/pi/Desktop/images/15012025/06/53/image_15012025_06_53_16_10360.jpg', '/home/pi/Desktop/images/15012025/06/53/image_15012025_06_53_26_9360.jpg', '/home/pi/Desktop/images/15012025/06/53/image_15012025_06_53_56_10348.jpg', '/home/pi/Desktop/images/15012025/06/53/image_15012025_06_54_06_10360.jpg', '/home/pi/Desktop/images/15012025/06/54/image_15012025_06_54_16_9344.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/52/image_15012025_06_53_06_10361.jpg
/home/pi/Desktop/images/15012025/06/53/image_15012025_06_53_16_10360.jpg
/home/pi/Desktop/images/15012025/06/53/image_15012025_06_53_26_9360.jpg
/home/pi/Desktop/images/15012025/06/53/image_15012025_06_53_56_10348.jpg
/home/pi/Desktop/images/15012025/06/53/image_15012025_06_54_06_10360.jpg
/home/pi/Desktop/images/15012025/06/54/image_15012025_06_54_16_9344.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329218302","1329218245","1329218503","1329218439","1329218136","1329218359"],"photo_ids_order":["1329218136","1329218245","1329218302","1329218359","1329218439","1329218503"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/99e4fea8d13f165dd7a33b1a9021e2d1.jpg","text":"TemporaryFile(/tmp/multipartBody6721769043142063787asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973033482,"filename":"image_15012025_06_53_26_9360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a81fed58892de61712cf0fbcc516a187.jpg","text":"TemporaryFile(/tmp/multipartBody3046937958737183561asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973033482,"filename":"image_15012025_06_53_16_10360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a1a16e4e5184249291ee677ade9d1f21.jpg","text":"TemporaryFile(/tmp/multipartBody7871724409251830506asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973033482,"filename":"image_15012025_06_54_16_9344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bf2c957a663ce507cd0ef984bcbf5816.jpg","text":"TemporaryFile(/tmp/multipartBody2507796703681360380asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973033482,"filename":"image_15012025_06_54_06_10360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f7c3508527d277a2c410317589c04fa9.jpg","text":"TemporaryFile(/tmp/multipartBody4617179293051012759asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973033482,"filename":"image_15012025_06_53_06_10361.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/37a489f22a320e6f95651310c4a4d78c.jpg","text":"TemporaryFile(/tmp/multipartBody8356359578905015219asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973033482,"filename":"image_15012025_06_53_56_10348.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329218302","file1":"1329218245","file0":"1329218136","file4":"1329218439","file5":"1329218503","file3":"1329218359"},"map_files_photo_id_array":[{"photo_id":"1329218503","filename":"file5"},{"photo_id":"1329218302","filename":"file2"},{"photo_id":"1329218439","filename":"file4"},{"photo_id":"1329218245","filename":"file1"},{"photo_id":"1329218136","filename":"file0"},{"photo_id":"1329218359","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329218302":["hashtag1","hashtag2"]},{"1329218245":["hashtag1","hashtag2"]},{"1329218503":["hashtag1","hashtag2"]},{"1329218439":["hashtag1","hashtag2"]},{"1329218136":["hashtag1","hashtag2"]},{"1329218359":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329218302, 1329218245, 1329218503, 1329218439, 1329218136, 1329218359)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.79190707206726 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 15 --only_old 0
2025-01-15 21:30:32.670530
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/54/image_15012025_06_54_26_10424.jpg', '/home/pi/Desktop/images/15012025/06/54/image_15012025_06_54_36_10389.jpg', '/home/pi/Desktop/images/15012025/06/54/image_15012025_06_54_46_9340.jpg', '/home/pi/Desktop/images/15012025/06/54/image_15012025_06_55_06_9369.jpg', '/home/pi/Desktop/images/15012025/06/55/image_15012025_06_55_16_10426.jpg', '/home/pi/Desktop/images/15012025/06/55/image_15012025_06_55_36_9329.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/54/image_15012025_06_54_26_10424.jpg
/home/pi/Desktop/images/15012025/06/54/image_15012025_06_54_36_10389.jpg
/home/pi/Desktop/images/15012025/06/54/image_15012025_06_54_46_9340.jpg
/home/pi/Desktop/images/15012025/06/54/image_15012025_06_55_06_9369.jpg
/home/pi/Desktop/images/15012025/06/55/image_15012025_06_55_16_10426.jpg
/home/pi/Desktop/images/15012025/06/55/image_15012025_06_55_36_9329.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329218892","1329218865","1329218955","1329218837","1329218906","1329218807"],"photo_ids_order":["1329218807","1329218837","1329218865","1329218892","1329218906","1329218955"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fbf4f53d4c4e25064e2d18a31e32c4d9.jpg","text":"TemporaryFile(/tmp/multipartBody5319260594305949526asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973093660,"filename":"image_15012025_06_55_06_9369.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b0edf72df6dbc2b97b0547e07487a5bb.jpg","text":"TemporaryFile(/tmp/multipartBody8999764196751195110asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973093660,"filename":"image_15012025_06_54_46_9340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d714f54b75ac231dfa6b2c97f80ea8fd.jpg","text":"TemporaryFile(/tmp/multipartBody7114561037409615671asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973093660,"filename":"image_15012025_06_55_36_9329.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0224242e083cb420461216ed7feefc7f.jpg","text":"TemporaryFile(/tmp/multipartBody5742502202256408879asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973093660,"filename":"image_15012025_06_54_36_10389.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1342bf2ea64419d8dedbd51355a3b9e5.jpg","text":"TemporaryFile(/tmp/multipartBody1816904359326739336asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973093660,"filename":"image_15012025_06_55_16_10426.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/35a28bbecaf2e0e9cbefd702424793a3.jpg","text":"TemporaryFile(/tmp/multipartBody4183083565610854766asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973093660,"filename":"image_15012025_06_54_26_10424.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329218865","file1":"1329218837","file0":"1329218807","file4":"1329218906","file5":"1329218955","file3":"1329218892"},"map_files_photo_id_array":[{"photo_id":"1329218955","filename":"file5"},{"photo_id":"1329218865","filename":"file2"},{"photo_id":"1329218906","filename":"file4"},{"photo_id":"1329218837","filename":"file1"},{"photo_id":"1329218807","filename":"file0"},{"photo_id":"1329218892","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329218892":["hashtag1","hashtag2"]},{"1329218865":["hashtag1","hashtag2"]},{"1329218955":["hashtag1","hashtag2"]},{"1329218837":["hashtag1","hashtag2"]},{"1329218906":["hashtag1","hashtag2"]},{"1329218807":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329218892, 1329218865, 1329218955, 1329218837, 1329218906, 1329218807)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.37006425857544 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 15 --only_old 0
2025-01-15 21:31:32.877549
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/55/image_15012025_06_56_06_10507.jpg', '/home/pi/Desktop/images/15012025/06/56/image_15012025_06_56_26_9359.jpg', '/home/pi/Desktop/images/15012025/06/56/image_15012025_06_56_36_10459.jpg', '/home/pi/Desktop/images/15012025/06/56/image_15012025_06_56_56_10388.jpg', '/home/pi/Desktop/images/15012025/06/57/image_15012025_06_57_26_10410.jpg', '/home/pi/Desktop/images/15012025/06/57/image_15012025_06_57_36_10353.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/55/image_15012025_06_56_06_10507.jpg
/home/pi/Desktop/images/15012025/06/56/image_15012025_06_56_26_9359.jpg
/home/pi/Desktop/images/15012025/06/56/image_15012025_06_56_36_10459.jpg
/home/pi/Desktop/images/15012025/06/56/image_15012025_06_56_56_10388.jpg
/home/pi/Desktop/images/15012025/06/57/image_15012025_06_57_26_10410.jpg
/home/pi/Desktop/images/15012025/06/57/image_15012025_06_57_36_10353.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6007940769195557 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
2025-01-15 21:31:42.875342
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/55/image_15012025_06_56_06_10507.jpg', '/home/pi/Desktop/images/15012025/06/56/image_15012025_06_56_26_9359.jpg', '/home/pi/Desktop/images/15012025/06/56/image_15012025_06_56_36_10459.jpg', '/home/pi/Desktop/images/15012025/06/56/image_15012025_06_56_56_10388.jpg', '/home/pi/Desktop/images/15012025/06/57/image_15012025_06_57_26_10410.jpg', '/home/pi/Desktop/images/15012025/06/57/image_15012025_06_57_36_10353.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/55/image_15012025_06_56_06_10507.jpg
/home/pi/Desktop/images/15012025/06/56/image_15012025_06_56_26_9359.jpg
/home/pi/Desktop/images/15012025/06/56/image_15012025_06_56_36_10459.jpg
/home/pi/Desktop/images/15012025/06/56/image_15012025_06_56_56_10388.jpg
/home/pi/Desktop/images/15012025/06/57/image_15012025_06_57_26_10410.jpg
/home/pi/Desktop/images/15012025/06/57/image_15012025_06_57_36_10353.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329219098","1329219092","1329219269","1329219209","1329219137","1329219250"],"photo_ids_order":["1329219092","1329219098","1329219137","1329219209","1329219250","1329219269"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cdca72f4a39d85b330b59186f117d2df.jpg","text":"TemporaryFile(/tmp/multipartBody6644843662055229986asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973163796,"filename":"image_15012025_06_56_26_9359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f352820b208497b373324984a32502d7.jpg","text":"TemporaryFile(/tmp/multipartBody3305043969500946568asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973163796,"filename":"image_15012025_06_56_06_10507.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f73647c537eb44cc9def2d63ccc79905.jpg","text":"TemporaryFile(/tmp/multipartBody6061994860601555271asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973163796,"filename":"image_15012025_06_57_36_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/49a85575c5567d7b7d28456e278b7d51.jpg","text":"TemporaryFile(/tmp/multipartBody8681093177534425724asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973163796,"filename":"image_15012025_06_56_56_10388.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d62065e773a83fcc23681094386f3e2d.jpg","text":"TemporaryFile(/tmp/multipartBody1228019476387014711asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973163796,"filename":"image_15012025_06_56_36_10459.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/430ecddd4f28e3d3bc900de84235a592.jpg","text":"TemporaryFile(/tmp/multipartBody1903055383262820604asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973163796,"filename":"image_15012025_06_57_26_10410.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329219137","file1":"1329219098","file0":"1329219092","file4":"1329219250","file5":"1329219269","file3":"1329219209"},"map_files_photo_id_array":[{"photo_id":"1329219269","filename":"file5"},{"photo_id":"1329219137","filename":"file2"},{"photo_id":"1329219250","filename":"file4"},{"photo_id":"1329219098","filename":"file1"},{"photo_id":"1329219092","filename":"file0"},{"photo_id":"1329219209","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329219098":["hashtag1","hashtag2"]},{"1329219092":["hashtag1","hashtag2"]},{"1329219269":["hashtag1","hashtag2"]},{"1329219209":["hashtag1","hashtag2"]},{"1329219137":["hashtag1","hashtag2"]},{"1329219250":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329219098, 1329219092, 1329219269, 1329219209, 1329219137, 1329219250)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.51281142234802 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 15 --only_old 0
2025-01-15 21:32:32.966201
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/57/image_15012025_06_57_46_9386.jpg', '/home/pi/Desktop/images/15012025/06/57/image_15012025_06_57_56_10426.jpg', '/home/pi/Desktop/images/15012025/06/58/image_15012025_06_58_36_9346.jpg', '/home/pi/Desktop/images/15012025/06/58/image_15012025_06_58_46_10344.jpg', '/home/pi/Desktop/images/15012025/06/58/image_15012025_06_58_55_9372.jpg', '/home/pi/Desktop/images/15012025/06/58/image_15012025_06_59_06_10358.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/57/image_15012025_06_57_46_9386.jpg
/home/pi/Desktop/images/15012025/06/57/image_15012025_06_57_56_10426.jpg
/home/pi/Desktop/images/15012025/06/58/image_15012025_06_58_36_9346.jpg
/home/pi/Desktop/images/15012025/06/58/image_15012025_06_58_46_10344.jpg
/home/pi/Desktop/images/15012025/06/58/image_15012025_06_58_55_9372.jpg
/home/pi/Desktop/images/15012025/06/58/image_15012025_06_59_06_10358.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329219301","1329219405","1329219302","1329219292","1329219319","1329219297"],"photo_ids_order":["1329219292","1329219297","1329219301","1329219302","1329219319","1329219405"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fa81df420b46f8ad27c88cebd258aab9.jpg","text":"TemporaryFile(/tmp/multipartBody6381253345156715501asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973219603,"filename":"image_15012025_06_58_36_9346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7c54677c6f376be83200e6bc4b384785.jpg","text":"TemporaryFile(/tmp/multipartBody3930525259998864346asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973219603,"filename":"image_15012025_06_59_06_10358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3381482257fb88a6975f407d66cb57e5.jpg","text":"TemporaryFile(/tmp/multipartBody819030120175531826asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973219603,"filename":"image_15012025_06_58_46_10344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b3458201bbaa4eadf632b73925872c8c.jpg","text":"TemporaryFile(/tmp/multipartBody1200842716286345537asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973219603,"filename":"image_15012025_06_57_46_9386.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c08428dab23956e22705ade97709f5fe.jpg","text":"TemporaryFile(/tmp/multipartBody2003403523086852145asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973219603,"filename":"image_15012025_06_58_55_9372.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/23cf2a17b07e920417cfcb9a3678853a.jpg","text":"TemporaryFile(/tmp/multipartBody4682733137341698228asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973219603,"filename":"image_15012025_06_57_56_10426.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329219301","file1":"1329219297","file0":"1329219292","file4":"1329219319","file5":"1329219405","file3":"1329219302"},"map_files_photo_id_array":[{"photo_id":"1329219405","filename":"file5"},{"photo_id":"1329219301","filename":"file2"},{"photo_id":"1329219319","filename":"file4"},{"photo_id":"1329219297","filename":"file1"},{"photo_id":"1329219292","filename":"file0"},{"photo_id":"1329219302","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329219301":["hashtag1","hashtag2"]},{"1329219405":["hashtag1","hashtag2"]},{"1329219302":["hashtag1","hashtag2"]},{"1329219292":["hashtag1","hashtag2"]},{"1329219319":["hashtag1","hashtag2"]},{"1329219297":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329219301, 1329219405, 1329219302, 1329219292, 1329219319, 1329219297)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.903008222579956 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 15 --only_old 0
2025-01-15 21:33:32.247389
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/06/59/image_15012025_06_59_26_9439.jpg', '/home/pi/Desktop/images/15012025/06/59/image_15012025_06_59_36_10484.jpg', '/home/pi/Desktop/images/15012025/06/59/image_15012025_06_59_45_9351.jpg', '/home/pi/Desktop/images/15012025/06/59/image_15012025_06_59_56_10364.jpg', '/home/pi/Desktop/images/15012025/07/01/image_15012025_07_01_15_10070.jpg', '/home/pi/Desktop/images/15012025/07/01/image_15012025_07_01_36_10348.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/06/59/image_15012025_06_59_26_9439.jpg
/home/pi/Desktop/images/15012025/06/59/image_15012025_06_59_36_10484.jpg
/home/pi/Desktop/images/15012025/06/59/image_15012025_06_59_45_9351.jpg
/home/pi/Desktop/images/15012025/06/59/image_15012025_06_59_56_10364.jpg
/home/pi/Desktop/images/15012025/07/01/image_15012025_07_01_15_10070.jpg
/home/pi/Desktop/images/15012025/07/01/image_15012025_07_01_36_10348.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329219597","1329219615","1329219647","1329219620","1329219649","1329219643"],"photo_ids_order":["1329219597","1329219615","1329219620","1329219643","1329219647","1329219649"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/715d352bf5a095feb6ea637a66146a36.jpg","text":"TemporaryFile(/tmp/multipartBody7847545727880904039asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973273261,"filename":"image_15012025_06_59_26_9439.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f62469872acc146c728cfe9624629375.jpg","text":"TemporaryFile(/tmp/multipartBody7003206617332981840asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973273261,"filename":"image_15012025_06_59_36_10484.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/48cb7e85156cf36d5b4ec736f8672fd9.jpg","text":"TemporaryFile(/tmp/multipartBody4998244817416462575asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973273261,"filename":"image_15012025_07_01_15_10070.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1d22acc7c2e3e444b640b6aad755682f.jpg","text":"TemporaryFile(/tmp/multipartBody2243886083559053241asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973273261,"filename":"image_15012025_06_59_45_9351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/24cf6761532c6e9710f0f8d12f195310.jpg","text":"TemporaryFile(/tmp/multipartBody3315996466252372093asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973273261,"filename":"image_15012025_07_01_36_10348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bae2a5a3e9506b24a720db2d19a84fdf.jpg","text":"TemporaryFile(/tmp/multipartBody8043951080190453808asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973273261,"filename":"image_15012025_06_59_56_10364.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329219620","file1":"1329219615","file0":"1329219597","file4":"1329219647","file5":"1329219649","file3":"1329219643"},"map_files_photo_id_array":[{"photo_id":"1329219649","filename":"file5"},{"photo_id":"1329219620","filename":"file2"},{"photo_id":"1329219647","filename":"file4"},{"photo_id":"1329219615","filename":"file1"},{"photo_id":"1329219597","filename":"file0"},{"photo_id":"1329219643","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329219597":["hashtag1","hashtag2"]},{"1329219615":["hashtag1","hashtag2"]},{"1329219647":["hashtag1","hashtag2"]},{"1329219620":["hashtag1","hashtag2"]},{"1329219649":["hashtag1","hashtag2"]},{"1329219643":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329219597, 1329219615, 1329219647, 1329219620, 1329219649, 1329219643)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.64878821372986 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 15 --only_old 0
2025-01-15 21:34:32.480917
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/01/image_15012025_07_01_45_9357.jpg', '/home/pi/Desktop/images/15012025/07/01/image_15012025_07_01_55_10419.jpg', '/home/pi/Desktop/images/15012025/07/02/image_15012025_07_02_15_9364.jpg', '/home/pi/Desktop/images/15012025/07/02/image_15012025_07_02_26_10364.jpg', '/home/pi/Desktop/images/15012025/07/02/image_15012025_07_02_45_10459.jpg', '/home/pi/Desktop/images/15012025/07/03/image_15012025_07_03_25_9352.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/01/image_15012025_07_01_45_9357.jpg
/home/pi/Desktop/images/15012025/07/01/image_15012025_07_01_55_10419.jpg
/home/pi/Desktop/images/15012025/07/02/image_15012025_07_02_15_9364.jpg
/home/pi/Desktop/images/15012025/07/02/image_15012025_07_02_26_10364.jpg
/home/pi/Desktop/images/15012025/07/02/image_15012025_07_02_45_10459.jpg
/home/pi/Desktop/images/15012025/07/03/image_15012025_07_03_25_9352.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6067318916320801 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
2025-01-15 21:34:42.493525
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/01/image_15012025_07_01_45_9357.jpg', '/home/pi/Desktop/images/15012025/07/01/image_15012025_07_01_55_10419.jpg', '/home/pi/Desktop/images/15012025/07/02/image_15012025_07_02_15_9364.jpg', '/home/pi/Desktop/images/15012025/07/02/image_15012025_07_02_26_10364.jpg', '/home/pi/Desktop/images/15012025/07/02/image_15012025_07_02_45_10459.jpg', '/home/pi/Desktop/images/15012025/07/03/image_15012025_07_03_25_9352.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/01/image_15012025_07_01_45_9357.jpg
/home/pi/Desktop/images/15012025/07/01/image_15012025_07_01_55_10419.jpg
/home/pi/Desktop/images/15012025/07/02/image_15012025_07_02_15_9364.jpg
/home/pi/Desktop/images/15012025/07/02/image_15012025_07_02_26_10364.jpg
/home/pi/Desktop/images/15012025/07/02/image_15012025_07_02_45_10459.jpg
/home/pi/Desktop/images/15012025/07/03/image_15012025_07_03_25_9352.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329219706","1329219678","1329219686","1329219694","1329219715","1329219700"],"photo_ids_order":["1329219678","1329219686","1329219694","1329219700","1329219706","1329219715"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b33482aae2bb666407b5ec42fd3e25d1.jpg","text":"TemporaryFile(/tmp/multipartBody7970730889936482413asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973343396,"filename":"image_15012025_07_02_45_10459.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f90d823960af1087e52a7c3a4456b825.jpg","text":"TemporaryFile(/tmp/multipartBody358624632506115730asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973343396,"filename":"image_15012025_07_01_45_9357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f9aa01c1a70d314ffbe2cfcf366ec593.jpg","text":"TemporaryFile(/tmp/multipartBody2464299637280461176asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973343396,"filename":"image_15012025_07_01_55_10419.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d523f6ec2d40d994ca7db88ca626819a.jpg","text":"TemporaryFile(/tmp/multipartBody3687354505592106891asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973343396,"filename":"image_15012025_07_02_15_9364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/496faa93352ba716e1a86afae3b77a45.jpg","text":"TemporaryFile(/tmp/multipartBody2118570537737671282asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973343396,"filename":"image_15012025_07_03_25_9352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bb754dabcf0a2b05efd52009eb929feb.jpg","text":"TemporaryFile(/tmp/multipartBody2157936723440948704asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973343396,"filename":"image_15012025_07_02_26_10364.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329219694","file1":"1329219686","file0":"1329219678","file4":"1329219706","file5":"1329219715","file3":"1329219700"},"map_files_photo_id_array":[{"photo_id":"1329219715","filename":"file5"},{"photo_id":"1329219694","filename":"file2"},{"photo_id":"1329219706","filename":"file4"},{"photo_id":"1329219686","filename":"file1"},{"photo_id":"1329219678","filename":"file0"},{"photo_id":"1329219700","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329219706":["hashtag1","hashtag2"]},{"1329219678":["hashtag1","hashtag2"]},{"1329219686":["hashtag1","hashtag2"]},{"1329219694":["hashtag1","hashtag2"]},{"1329219715":["hashtag1","hashtag2"]},{"1329219700":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329219706, 1329219678, 1329219686, 1329219694, 1329219715, 1329219700)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.64431405067444 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 15 --only_old 0
2025-01-15 21:35:32.673175
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/03/image_15012025_07_03_35_10434.jpg', '/home/pi/Desktop/images/15012025/07/03/image_15012025_07_03_46_10357.jpg', '/home/pi/Desktop/images/15012025/07/03/image_15012025_07_03_55_9408.jpg', '/home/pi/Desktop/images/15012025/07/03/image_15012025_07_04_05_10351.jpg', '/home/pi/Desktop/images/15012025/07/04/image_15012025_07_04_16_10357.jpg', '/home/pi/Desktop/images/15012025/07/04/image_15012025_07_04_25_9361.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/03/image_15012025_07_03_35_10434.jpg
/home/pi/Desktop/images/15012025/07/03/image_15012025_07_03_46_10357.jpg
/home/pi/Desktop/images/15012025/07/03/image_15012025_07_03_55_9408.jpg
/home/pi/Desktop/images/15012025/07/03/image_15012025_07_04_05_10351.jpg
/home/pi/Desktop/images/15012025/07/04/image_15012025_07_04_16_10357.jpg
/home/pi/Desktop/images/15012025/07/04/image_15012025_07_04_25_9361.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329219726","1329219731","1329219728","1329219733","1329219736","1329219739"],"photo_ids_order":["1329219726","1329219728","1329219731","1329219733","1329219736","1329219739"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e2260065bef28b330b6544400b1dca83.jpg","text":"TemporaryFile(/tmp/multipartBody4455046463983865447asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973393664,"filename":"image_15012025_07_03_35_10434.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5e23b7e8bf41db71b1872f58dab648ae.jpg","text":"TemporaryFile(/tmp/multipartBody580103057583014645asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973393664,"filename":"image_15012025_07_03_55_9408.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ecc9c2f6d0d0255f7c2413437bab5070.jpg","text":"TemporaryFile(/tmp/multipartBody2036171313154396538asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973393664,"filename":"image_15012025_07_03_46_10357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ef13fcec203a7a44cd0c2ad7d8464de2.jpg","text":"TemporaryFile(/tmp/multipartBody7196810895560899396asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973393664,"filename":"image_15012025_07_04_05_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/aa9d23afb35d952c48d592f1f8f0d97f.jpg","text":"TemporaryFile(/tmp/multipartBody7748697666822051173asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973393664,"filename":"image_15012025_07_04_16_10357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d132573b112d881aecb9f1bdc689cf49.jpg","text":"TemporaryFile(/tmp/multipartBody5678499575118571352asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973393664,"filename":"image_15012025_07_04_25_9361.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329219731","file1":"1329219728","file0":"1329219726","file4":"1329219736","file5":"1329219739","file3":"1329219733"},"map_files_photo_id_array":[{"photo_id":"1329219739","filename":"file5"},{"photo_id":"1329219731","filename":"file2"},{"photo_id":"1329219736","filename":"file4"},{"photo_id":"1329219728","filename":"file1"},{"photo_id":"1329219726","filename":"file0"},{"photo_id":"1329219733","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329219726":["hashtag1","hashtag2"]},{"1329219731":["hashtag1","hashtag2"]},{"1329219728":["hashtag1","hashtag2"]},{"1329219733":["hashtag1","hashtag2"]},{"1329219736":["hashtag1","hashtag2"]},{"1329219739":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329219726, 1329219731, 1329219728, 1329219733, 1329219736, 1329219739)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.216312408447266 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 15 --only_old 0
2025-01-15 21:36:32.939842
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/04/image_15012025_07_04_35_10372.jpg', '/home/pi/Desktop/images/15012025/07/04/image_15012025_07_05_06_10354.jpg', '/home/pi/Desktop/images/15012025/07/05/image_15012025_07_05_15_9371.jpg', '/home/pi/Desktop/images/15012025/07/05/image_15012025_07_05_25_10360.jpg', '/home/pi/Desktop/images/15012025/07/05/image_15012025_07_05_36_10324.jpg', '/home/pi/Desktop/images/15012025/07/05/image_15012025_07_05_45_9422.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/04/image_15012025_07_04_35_10372.jpg
/home/pi/Desktop/images/15012025/07/04/image_15012025_07_05_06_10354.jpg
/home/pi/Desktop/images/15012025/07/05/image_15012025_07_05_15_9371.jpg
/home/pi/Desktop/images/15012025/07/05/image_15012025_07_05_25_10360.jpg
/home/pi/Desktop/images/15012025/07/05/image_15012025_07_05_36_10324.jpg
/home/pi/Desktop/images/15012025/07/05/image_15012025_07_05_45_9422.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329219762","1329219755","1329219763","1329219751","1329219760","1329219757"],"photo_ids_order":["1329219751","1329219755","1329219757","1329219760","1329219762","1329219763"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6044e117893475032c09282fc50e79ff.jpg","text":"TemporaryFile(/tmp/multipartBody6280061825524527741asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973453932,"filename":"image_15012025_07_05_36_10324.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/35f3f21d2146885869ca4e5fa8361f55.jpg","text":"TemporaryFile(/tmp/multipartBody6868232744817013889asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973453932,"filename":"image_15012025_07_05_06_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7780bee1acccd9abb8144ede0fd58812.jpg","text":"TemporaryFile(/tmp/multipartBody8476977039426403232asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973453932,"filename":"image_15012025_07_05_45_9422.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c695298995848a6cd772b2aa71c80898.jpg","text":"TemporaryFile(/tmp/multipartBody3850039771588013304asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973453932,"filename":"image_15012025_07_04_35_10372.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/96e0d5e0942c7a6992b7e23101575ba4.jpg","text":"TemporaryFile(/tmp/multipartBody857133112957866626asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973453932,"filename":"image_15012025_07_05_25_10360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c3c4d2c0e27ca23256588fb8f0948820.jpg","text":"TemporaryFile(/tmp/multipartBody1717090917957437635asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973453932,"filename":"image_15012025_07_05_15_9371.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329219757","file1":"1329219755","file0":"1329219751","file4":"1329219762","file5":"1329219763","file3":"1329219760"},"map_files_photo_id_array":[{"photo_id":"1329219763","filename":"file5"},{"photo_id":"1329219757","filename":"file2"},{"photo_id":"1329219762","filename":"file4"},{"photo_id":"1329219755","filename":"file1"},{"photo_id":"1329219751","filename":"file0"},{"photo_id":"1329219760","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329219762":["hashtag1","hashtag2"]},{"1329219755":["hashtag1","hashtag2"]},{"1329219763":["hashtag1","hashtag2"]},{"1329219751":["hashtag1","hashtag2"]},{"1329219760":["hashtag1","hashtag2"]},{"1329219757":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329219762, 1329219755, 1329219763, 1329219751, 1329219760, 1329219757)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.86347579956055 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 15 --only_old 0
2025-01-15 21:37:33.048268
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/05/image_15012025_07_05_55_10372.jpg', '/home/pi/Desktop/images/15012025/07/05/image_15012025_07_06_05_9348.jpg', '/home/pi/Desktop/images/15012025/07/06/image_15012025_07_06_15_10422.jpg', '/home/pi/Desktop/images/15012025/07/06/image_15012025_07_06_26_10397.jpg', '/home/pi/Desktop/images/15012025/07/06/image_15012025_07_06_35_9483.jpg', '/home/pi/Desktop/images/15012025/07/06/image_15012025_07_06_46_10483.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/05/image_15012025_07_05_55_10372.jpg
/home/pi/Desktop/images/15012025/07/05/image_15012025_07_06_05_9348.jpg
/home/pi/Desktop/images/15012025/07/06/image_15012025_07_06_15_10422.jpg
/home/pi/Desktop/images/15012025/07/06/image_15012025_07_06_26_10397.jpg
/home/pi/Desktop/images/15012025/07/06/image_15012025_07_06_35_9483.jpg
/home/pi/Desktop/images/15012025/07/06/image_15012025_07_06_46_10483.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329219801","1329219785","1329219788","1329219799","1329219784","1329219792"],"photo_ids_order":["1329219784","1329219785","1329219788","1329219792","1329219799","1329219801"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2df8a727e7129d8ab40ec6d9520f6011.jpg","text":"TemporaryFile(/tmp/multipartBody9014047746856006691asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973514044,"filename":"image_15012025_07_06_46_10483.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5147c7bde24676613a35c4750facb726.jpg","text":"TemporaryFile(/tmp/multipartBody7298360634100676795asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973514044,"filename":"image_15012025_07_06_05_9348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e5573af0074efecea4d3db41c892e288.jpg","text":"TemporaryFile(/tmp/multipartBody5121629981839531505asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973514044,"filename":"image_15012025_07_06_15_10422.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9e3345720840d35bc2e2d87b3579d95c.jpg","text":"TemporaryFile(/tmp/multipartBody6819319469131442555asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973514044,"filename":"image_15012025_07_06_35_9483.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4794c7923d57e44564019b6dd4e03c10.jpg","text":"TemporaryFile(/tmp/multipartBody1478732508644258406asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973514044,"filename":"image_15012025_07_05_55_10372.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c0e4a93d7f98e318a8234a64643255dd.jpg","text":"TemporaryFile(/tmp/multipartBody4597836384847382958asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973514044,"filename":"image_15012025_07_06_26_10397.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329219788","file1":"1329219785","file0":"1329219784","file4":"1329219799","file5":"1329219801","file3":"1329219792"},"map_files_photo_id_array":[{"photo_id":"1329219801","filename":"file5"},{"photo_id":"1329219788","filename":"file2"},{"photo_id":"1329219799","filename":"file4"},{"photo_id":"1329219785","filename":"file1"},{"photo_id":"1329219784","filename":"file0"},{"photo_id":"1329219792","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329219801":["hashtag1","hashtag2"]},{"1329219785":["hashtag1","hashtag2"]},{"1329219788":["hashtag1","hashtag2"]},{"1329219799":["hashtag1","hashtag2"]},{"1329219784":["hashtag1","hashtag2"]},{"1329219792":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329219801, 1329219785, 1329219788, 1329219799, 1329219784, 1329219792)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.957566022872925 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 15 --only_old 0
2025-01-15 21:38:32.309042
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/06/image_15012025_07_06_55_9461.jpg', '/home/pi/Desktop/images/15012025/07/06/image_15012025_07_07_05_10361.jpg', '/home/pi/Desktop/images/15012025/07/07/image_15012025_07_07_16_10354.jpg', '/home/pi/Desktop/images/15012025/07/07/image_15012025_07_07_25_9367.jpg', '/home/pi/Desktop/images/15012025/07/07/image_15012025_07_07_35_10352.jpg', '/home/pi/Desktop/images/15012025/07/07/image_15012025_07_07_45_9342.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/06/image_15012025_07_06_55_9461.jpg
/home/pi/Desktop/images/15012025/07/06/image_15012025_07_07_05_10361.jpg
/home/pi/Desktop/images/15012025/07/07/image_15012025_07_07_16_10354.jpg
/home/pi/Desktop/images/15012025/07/07/image_15012025_07_07_25_9367.jpg
/home/pi/Desktop/images/15012025/07/07/image_15012025_07_07_35_10352.jpg
/home/pi/Desktop/images/15012025/07/07/image_15012025_07_07_45_9342.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6222050189971924 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
2025-01-15 21:38:42.229927
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/06/image_15012025_07_06_55_9461.jpg', '/home/pi/Desktop/images/15012025/07/06/image_15012025_07_07_05_10361.jpg', '/home/pi/Desktop/images/15012025/07/07/image_15012025_07_07_16_10354.jpg', '/home/pi/Desktop/images/15012025/07/07/image_15012025_07_07_25_9367.jpg', '/home/pi/Desktop/images/15012025/07/07/image_15012025_07_07_35_10352.jpg', '/home/pi/Desktop/images/15012025/07/07/image_15012025_07_07_45_9342.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/06/image_15012025_07_06_55_9461.jpg
/home/pi/Desktop/images/15012025/07/06/image_15012025_07_07_05_10361.jpg
/home/pi/Desktop/images/15012025/07/07/image_15012025_07_07_16_10354.jpg
/home/pi/Desktop/images/15012025/07/07/image_15012025_07_07_25_9367.jpg
/home/pi/Desktop/images/15012025/07/07/image_15012025_07_07_35_10352.jpg
/home/pi/Desktop/images/15012025/07/07/image_15012025_07_07_45_9342.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329219867","1329219864","1329219858","1329219852","1329219839","1329219830"],"photo_ids_order":["1329219830","1329219839","1329219852","1329219858","1329219864","1329219867"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4be25920a207da0b49b27e9c16b7feb7.jpg","text":"TemporaryFile(/tmp/multipartBody5425453454492138207asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973583179,"filename":"image_15012025_07_07_45_9342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f99d2ec681694f8528e0103c5a2b8e4d.jpg","text":"TemporaryFile(/tmp/multipartBody3758468179509482193asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973583179,"filename":"image_15012025_07_07_35_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1cfecf93e8ccbee3ebc75da639896f30.jpg","text":"TemporaryFile(/tmp/multipartBody1835392360765218152asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973583179,"filename":"image_15012025_07_07_25_9367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f4bc2f078305df0496cccb4bfec38d7b.jpg","text":"TemporaryFile(/tmp/multipartBody3471876540621446545asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973583179,"filename":"image_15012025_07_07_16_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0247ceeaa5dc636c69d92f803717ee7a.jpg","text":"TemporaryFile(/tmp/multipartBody4264776277010228466asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973583179,"filename":"image_15012025_07_07_05_10361.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/11da67897842cbd5aee1f1b91ce5bec9.jpg","text":"TemporaryFile(/tmp/multipartBody2657362530712890100asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973583179,"filename":"image_15012025_07_06_55_9461.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329219852","file1":"1329219839","file0":"1329219830","file4":"1329219864","file5":"1329219867","file3":"1329219858"},"map_files_photo_id_array":[{"photo_id":"1329219867","filename":"file5"},{"photo_id":"1329219852","filename":"file2"},{"photo_id":"1329219864","filename":"file4"},{"photo_id":"1329219839","filename":"file1"},{"photo_id":"1329219830","filename":"file0"},{"photo_id":"1329219858","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329219867":["hashtag1","hashtag2"]},{"1329219864":["hashtag1","hashtag2"]},{"1329219858":["hashtag1","hashtag2"]},{"1329219852":["hashtag1","hashtag2"]},{"1329219839":["hashtag1","hashtag2"]},{"1329219830":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329219867, 1329219864, 1329219858, 1329219852, 1329219839, 1329219830)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.80886149406433 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 15 --only_old 0
2025-01-15 21:39:32.476021
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/07/image_15012025_07_07_55_10444.jpg', '/home/pi/Desktop/images/15012025/07/07/image_15012025_07_08_06_10409.jpg', '/home/pi/Desktop/images/15012025/07/08/image_15012025_07_08_15_9409.jpg', '/home/pi/Desktop/images/15012025/07/08/image_15012025_07_08_25_10374.jpg', '/home/pi/Desktop/images/15012025/07/08/image_15012025_07_08_35_9512.jpg', '/home/pi/Desktop/images/15012025/07/08/image_15012025_07_08_45_10344.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/07/image_15012025_07_07_55_10444.jpg
/home/pi/Desktop/images/15012025/07/07/image_15012025_07_08_06_10409.jpg
/home/pi/Desktop/images/15012025/07/08/image_15012025_07_08_15_9409.jpg
/home/pi/Desktop/images/15012025/07/08/image_15012025_07_08_25_10374.jpg
/home/pi/Desktop/images/15012025/07/08/image_15012025_07_08_35_9512.jpg
/home/pi/Desktop/images/15012025/07/08/image_15012025_07_08_45_10344.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329219882","1329219899","1329219902","1329219895","1329219889","1329219907"],"photo_ids_order":["1329219882","1329219889","1329219895","1329219899","1329219902","1329219907"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0d2b8d4dde32bfd39158a8508d46d56b.jpg","text":"TemporaryFile(/tmp/multipartBody3734499298319607844asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973633468,"filename":"image_15012025_07_07_55_10444.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/118b01344347aeb812744920f932fd20.jpg","text":"TemporaryFile(/tmp/multipartBody8844704173992977841asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973633468,"filename":"image_15012025_07_08_25_10374.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/36585b0da7abfe46ef92c72167d00a95.jpg","text":"TemporaryFile(/tmp/multipartBody232125283555652933asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973633468,"filename":"image_15012025_07_08_35_9512.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9d7ec017c751685468dcfa366f39976f.jpg","text":"TemporaryFile(/tmp/multipartBody2246369510886844695asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973633468,"filename":"image_15012025_07_08_15_9409.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/eac1d0de5543867c30437072f2660d91.jpg","text":"TemporaryFile(/tmp/multipartBody8342718447116675387asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973633468,"filename":"image_15012025_07_08_06_10409.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/797ebfbfe35a4f4078a6b513c4377d7d.jpg","text":"TemporaryFile(/tmp/multipartBody1184636844800406860asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973633468,"filename":"image_15012025_07_08_45_10344.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329219895","file1":"1329219889","file0":"1329219882","file4":"1329219902","file5":"1329219907","file3":"1329219899"},"map_files_photo_id_array":[{"photo_id":"1329219907","filename":"file5"},{"photo_id":"1329219895","filename":"file2"},{"photo_id":"1329219902","filename":"file4"},{"photo_id":"1329219889","filename":"file1"},{"photo_id":"1329219882","filename":"file0"},{"photo_id":"1329219899","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329219882":["hashtag1","hashtag2"]},{"1329219899":["hashtag1","hashtag2"]},{"1329219902":["hashtag1","hashtag2"]},{"1329219895":["hashtag1","hashtag2"]},{"1329219889":["hashtag1","hashtag2"]},{"1329219907":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329219882, 1329219899, 1329219902, 1329219895, 1329219889, 1329219907)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.14038896560669 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 15 --only_old 0
2025-01-15 21:40:32.789950
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/08/image_15012025_07_08_56_10359.jpg', '/home/pi/Desktop/images/15012025/07/08/image_15012025_07_09_05_9340.jpg', '/home/pi/Desktop/images/15012025/07/09/image_15012025_07_09_15_10407.jpg', '/home/pi/Desktop/images/15012025/07/09/image_15012025_07_09_26_10361.jpg', '/home/pi/Desktop/images/15012025/07/09/image_15012025_07_09_35_9374.jpg', '/home/pi/Desktop/images/15012025/07/09/image_15012025_07_09_46_10341.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/08/image_15012025_07_08_56_10359.jpg
/home/pi/Desktop/images/15012025/07/08/image_15012025_07_09_05_9340.jpg
/home/pi/Desktop/images/15012025/07/09/image_15012025_07_09_15_10407.jpg
/home/pi/Desktop/images/15012025/07/09/image_15012025_07_09_26_10361.jpg
/home/pi/Desktop/images/15012025/07/09/image_15012025_07_09_35_9374.jpg
/home/pi/Desktop/images/15012025/07/09/image_15012025_07_09_46_10341.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329220477","1329220108","1329220578","1329220382","1329220283","1329220186"],"photo_ids_order":["1329220108","1329220186","1329220283","1329220382","1329220477","1329220578"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e79753bdbf5843b0be759c94e7d4c2a7.jpg","text":"TemporaryFile(/tmp/multipartBody8411724594366297061asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973693775,"filename":"image_15012025_07_09_35_9374.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/21a2aec7bc73f7421d036376e5bff916.jpg","text":"TemporaryFile(/tmp/multipartBody2443908224366243663asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973693775,"filename":"image_15012025_07_08_56_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e24c89210a6b5f9426cb09c9dd57c48a.jpg","text":"TemporaryFile(/tmp/multipartBody5716542671598354558asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973693775,"filename":"image_15012025_07_09_46_10341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bfc485d36ada9fd9412730343b874146.jpg","text":"TemporaryFile(/tmp/multipartBody7013362413192970378asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973693775,"filename":"image_15012025_07_09_26_10361.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/240d7a8f90af29ead999820e235a1d79.jpg","text":"TemporaryFile(/tmp/multipartBody8503864702164652973asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973693775,"filename":"image_15012025_07_09_15_10407.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/17d20adeb16e62f7c777b36dcff14983.jpg","text":"TemporaryFile(/tmp/multipartBody5255727831367749870asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973693775,"filename":"image_15012025_07_09_05_9340.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329220283","file1":"1329220186","file0":"1329220108","file4":"1329220477","file5":"1329220578","file3":"1329220382"},"map_files_photo_id_array":[{"photo_id":"1329220578","filename":"file5"},{"photo_id":"1329220283","filename":"file2"},{"photo_id":"1329220477","filename":"file4"},{"photo_id":"1329220186","filename":"file1"},{"photo_id":"1329220108","filename":"file0"},{"photo_id":"1329220382","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329220477":["hashtag1","hashtag2"]},{"1329220108":["hashtag1","hashtag2"]},{"1329220578":["hashtag1","hashtag2"]},{"1329220382":["hashtag1","hashtag2"]},{"1329220283":["hashtag1","hashtag2"]},{"1329220186":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329220477, 1329220108, 1329220578, 1329220382, 1329220283, 1329220186)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.78465676307678 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 15 --only_old 0
2025-01-15 21:41:33.025292
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/09/image_15012025_07_09_55_9387.jpg', '/home/pi/Desktop/images/15012025/07/09/image_15012025_07_10_05_10378.jpg', '/home/pi/Desktop/images/15012025/07/10/image_15012025_07_10_16_10347.jpg', '/home/pi/Desktop/images/15012025/07/10/image_15012025_07_10_25_9475.jpg', '/home/pi/Desktop/images/15012025/07/10/image_15012025_07_10_45_9350.jpg', '/home/pi/Desktop/images/15012025/07/10/image_15012025_07_10_55_10428.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/09/image_15012025_07_09_55_9387.jpg
/home/pi/Desktop/images/15012025/07/09/image_15012025_07_10_05_10378.jpg
/home/pi/Desktop/images/15012025/07/10/image_15012025_07_10_16_10347.jpg
/home/pi/Desktop/images/15012025/07/10/image_15012025_07_10_25_9475.jpg
/home/pi/Desktop/images/15012025/07/10/image_15012025_07_10_45_9350.jpg
/home/pi/Desktop/images/15012025/07/10/image_15012025_07_10_55_10428.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329222167","1329221996","1329222172","1329222169","1329222124","1329221659"],"photo_ids_order":["1329221659","1329221996","1329222124","1329222167","1329222169","1329222172"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5e77bcbd627d8e7d5d681bc2ca95abe3.jpg","text":"TemporaryFile(/tmp/multipartBody5674845055902415216asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973754014,"filename":"image_15012025_07_10_25_9475.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6ab535e07b6e3ccb7849da58faf4e58a.jpg","text":"TemporaryFile(/tmp/multipartBody1302405204166525831asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973754014,"filename":"image_15012025_07_10_05_10378.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/31259d5d917a6fb90bfd706daf8b88f2.jpg","text":"TemporaryFile(/tmp/multipartBody540779377880160306asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973754014,"filename":"image_15012025_07_10_55_10428.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a4752f5e45a9f39ff6fe10ecdf8eae07.jpg","text":"TemporaryFile(/tmp/multipartBody3622206210236608737asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973754014,"filename":"image_15012025_07_10_45_9350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/15fce077c7f305021758122ac8afa03c.jpg","text":"TemporaryFile(/tmp/multipartBody9219438520275307261asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973754014,"filename":"image_15012025_07_10_16_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2126c33bd86dd55a74c846308befeb23.jpg","text":"TemporaryFile(/tmp/multipartBody7044469052419408535asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973754014,"filename":"image_15012025_07_09_55_9387.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329222124","file1":"1329221996","file0":"1329221659","file4":"1329222169","file5":"1329222172","file3":"1329222167"},"map_files_photo_id_array":[{"photo_id":"1329222172","filename":"file5"},{"photo_id":"1329222124","filename":"file2"},{"photo_id":"1329222169","filename":"file4"},{"photo_id":"1329221996","filename":"file1"},{"photo_id":"1329221659","filename":"file0"},{"photo_id":"1329222167","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329222167":["hashtag1","hashtag2"]},{"1329221996":["hashtag1","hashtag2"]},{"1329222172":["hashtag1","hashtag2"]},{"1329222169":["hashtag1","hashtag2"]},{"1329222124":["hashtag1","hashtag2"]},{"1329221659":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329222167, 1329221996, 1329222172, 1329222169, 1329222124, 1329221659)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.950193881988525 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 15 --only_old 0
2025-01-15 21:42:32.413374
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/10/image_15012025_07_11_06_10373.jpg', '/home/pi/Desktop/images/15012025/07/11/image_15012025_07_11_25_10376.jpg', '/home/pi/Desktop/images/15012025/07/11/image_15012025_07_11_35_9441.jpg', '/home/pi/Desktop/images/15012025/07/11/image_15012025_07_11_56_10356.jpg', '/home/pi/Desktop/images/15012025/07/11/image_15012025_07_12_05_9441.jpg', '/home/pi/Desktop/images/15012025/07/12/image_15012025_07_12_26_10370.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/10/image_15012025_07_11_06_10373.jpg
/home/pi/Desktop/images/15012025/07/11/image_15012025_07_11_25_10376.jpg
/home/pi/Desktop/images/15012025/07/11/image_15012025_07_11_35_9441.jpg
/home/pi/Desktop/images/15012025/07/11/image_15012025_07_11_56_10356.jpg
/home/pi/Desktop/images/15012025/07/11/image_15012025_07_12_05_9441.jpg
/home/pi/Desktop/images/15012025/07/12/image_15012025_07_12_26_10370.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6303896903991699 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
2025-01-15 21:42:42.310633
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/10/image_15012025_07_11_06_10373.jpg', '/home/pi/Desktop/images/15012025/07/11/image_15012025_07_11_25_10376.jpg', '/home/pi/Desktop/images/15012025/07/11/image_15012025_07_11_35_9441.jpg', '/home/pi/Desktop/images/15012025/07/11/image_15012025_07_11_56_10356.jpg', '/home/pi/Desktop/images/15012025/07/11/image_15012025_07_12_05_9441.jpg', '/home/pi/Desktop/images/15012025/07/12/image_15012025_07_12_26_10370.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/10/image_15012025_07_11_06_10373.jpg
/home/pi/Desktop/images/15012025/07/11/image_15012025_07_11_25_10376.jpg
/home/pi/Desktop/images/15012025/07/11/image_15012025_07_11_35_9441.jpg
/home/pi/Desktop/images/15012025/07/11/image_15012025_07_11_56_10356.jpg
/home/pi/Desktop/images/15012025/07/11/image_15012025_07_12_05_9441.jpg
/home/pi/Desktop/images/15012025/07/12/image_15012025_07_12_26_10370.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329222671","1329222524","1329222851","1329223039","1329223048","1329222567"],"photo_ids_order":["1329222524","1329222567","1329222671","1329222851","1329223039","1329223048"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4ead45dbeed50be178e625fac9a7ea18.jpg","text":"TemporaryFile(/tmp/multipartBody6469454915563940413asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973823224,"filename":"image_15012025_07_11_35_9441.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b902b45a1b27948806c3187bf313df15.jpg","text":"TemporaryFile(/tmp/multipartBody2950594974258289790asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973823224,"filename":"image_15012025_07_11_06_10373.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/462b568ee883a570aff2dbddf12fc23b.jpg","text":"TemporaryFile(/tmp/multipartBody8551417445855404921asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973823224,"filename":"image_15012025_07_11_56_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e62d3555e53f0c887723b04f5e881c26.jpg","text":"TemporaryFile(/tmp/multipartBody5642599041241253022asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973823224,"filename":"image_15012025_07_12_05_9441.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/966bb4ad629ee9d2f1345cf971df6857.jpg","text":"TemporaryFile(/tmp/multipartBody1612352869598265260asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973823224,"filename":"image_15012025_07_12_26_10370.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0482464759993cf78b002298d73de5e9.jpg","text":"TemporaryFile(/tmp/multipartBody668325285962923140asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973823224,"filename":"image_15012025_07_11_25_10376.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329222671","file1":"1329222567","file0":"1329222524","file4":"1329223039","file5":"1329223048","file3":"1329222851"},"map_files_photo_id_array":[{"photo_id":"1329223048","filename":"file5"},{"photo_id":"1329222671","filename":"file2"},{"photo_id":"1329223039","filename":"file4"},{"photo_id":"1329222567","filename":"file1"},{"photo_id":"1329222524","filename":"file0"},{"photo_id":"1329222851","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329222671":["hashtag1","hashtag2"]},{"1329222524":["hashtag1","hashtag2"]},{"1329222851":["hashtag1","hashtag2"]},{"1329223039":["hashtag1","hashtag2"]},{"1329223048":["hashtag1","hashtag2"]},{"1329222567":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329222671, 1329222524, 1329222851, 1329223039, 1329223048, 1329222567)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.54109191894531 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 15 --only_old 0
2025-01-15 21:43:32.675810
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/12/image_15012025_07_13_05_10354.jpg', '/home/pi/Desktop/images/15012025/07/13/image_15012025_07_13_16_10343.jpg', '/home/pi/Desktop/images/15012025/07/13/image_15012025_07_13_25_9471.jpg', '/home/pi/Desktop/images/15012025/07/13/image_15012025_07_13_35_10352.jpg', '/home/pi/Desktop/images/15012025/07/13/image_15012025_07_13_45_9929.jpg', '/home/pi/Desktop/images/15012025/07/13/image_15012025_07_14_05_9385.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/12/image_15012025_07_13_05_10354.jpg
/home/pi/Desktop/images/15012025/07/13/image_15012025_07_13_16_10343.jpg
/home/pi/Desktop/images/15012025/07/13/image_15012025_07_13_25_9471.jpg
/home/pi/Desktop/images/15012025/07/13/image_15012025_07_13_35_10352.jpg
/home/pi/Desktop/images/15012025/07/13/image_15012025_07_13_45_9929.jpg
/home/pi/Desktop/images/15012025/07/13/image_15012025_07_14_05_9385.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329223259","1329223172","1329223349","1329223195","1329223197","1329223191"],"photo_ids_order":["1329223172","1329223191","1329223195","1329223197","1329223259","1329223349"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cd4428e590205f846a9412763ffd8eef.jpg","text":"TemporaryFile(/tmp/multipartBody2974745260601747229asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973873755,"filename":"image_15012025_07_13_45_9929.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0a6d24e2a10c033c8e202e2a6d151993.jpg","text":"TemporaryFile(/tmp/multipartBody8546088492349662709asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973873755,"filename":"image_15012025_07_13_05_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/42ae335804948b5feaa975e0d5b6ed66.jpg","text":"TemporaryFile(/tmp/multipartBody1292811798575771677asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973873755,"filename":"image_15012025_07_14_05_9385.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8e0847caa0246af4b5ded3ec14931684.jpg","text":"TemporaryFile(/tmp/multipartBody134662400513504069asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973873755,"filename":"image_15012025_07_13_25_9471.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/80ab80465e3da2fd1d77c3b34ca61d8f.jpg","text":"TemporaryFile(/tmp/multipartBody8669586207482983644asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973873755,"filename":"image_15012025_07_13_35_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/84905d9dc3b97b8ad9d72aa8851b206c.jpg","text":"TemporaryFile(/tmp/multipartBody493604784660088131asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973873755,"filename":"image_15012025_07_13_16_10343.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329223195","file1":"1329223191","file0":"1329223172","file4":"1329223259","file5":"1329223349","file3":"1329223197"},"map_files_photo_id_array":[{"photo_id":"1329223349","filename":"file5"},{"photo_id":"1329223195","filename":"file2"},{"photo_id":"1329223259","filename":"file4"},{"photo_id":"1329223191","filename":"file1"},{"photo_id":"1329223172","filename":"file0"},{"photo_id":"1329223197","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329223259":["hashtag1","hashtag2"]},{"1329223172":["hashtag1","hashtag2"]},{"1329223349":["hashtag1","hashtag2"]},{"1329223195":["hashtag1","hashtag2"]},{"1329223197":["hashtag1","hashtag2"]},{"1329223191":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329223259, 1329223172, 1329223349, 1329223195, 1329223197, 1329223191)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.02228879928589 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 15 --only_old 0
2025-01-15 21:44:32.846932
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/14/image_15012025_07_14_15_9912.jpg', '/home/pi/Desktop/images/15012025/07/14/image_15012025_07_14_36_10435.jpg', '/home/pi/Desktop/images/15012025/07/14/image_15012025_07_14_45_9430.jpg', '/home/pi/Desktop/images/15012025/07/15/image_15012025_07_15_15_10341.jpg', '/home/pi/Desktop/images/15012025/07/15/image_15012025_07_15_26_10367.jpg', '/home/pi/Desktop/images/15012025/07/15/image_15012025_07_15_55_9354.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/14/image_15012025_07_14_15_9912.jpg
/home/pi/Desktop/images/15012025/07/14/image_15012025_07_14_36_10435.jpg
/home/pi/Desktop/images/15012025/07/14/image_15012025_07_14_45_9430.jpg
/home/pi/Desktop/images/15012025/07/15/image_15012025_07_15_15_10341.jpg
/home/pi/Desktop/images/15012025/07/15/image_15012025_07_15_26_10367.jpg
/home/pi/Desktop/images/15012025/07/15/image_15012025_07_15_55_9354.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329223503","1329223493","1329223502","1329223485","1329223499","1329223490"],"photo_ids_order":["1329223485","1329223490","1329223493","1329223499","1329223502","1329223503"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7f920a9798a31ade877f364ef1e0cb0b.jpg","text":"TemporaryFile(/tmp/multipartBody6169629177389270204asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973933871,"filename":"image_15012025_07_15_55_9354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c7b2b8dc948f355dafe5154d0357fe4d.jpg","text":"TemporaryFile(/tmp/multipartBody439625505146530857asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973933871,"filename":"image_15012025_07_14_45_9430.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3df3840cd0a0a248208fde72d3cf02cb.jpg","text":"TemporaryFile(/tmp/multipartBody8254812619125909226asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973933871,"filename":"image_15012025_07_15_26_10367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/937c7e171661958ad2465aae086006e3.jpg","text":"TemporaryFile(/tmp/multipartBody6951932621059616263asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973933871,"filename":"image_15012025_07_14_15_9912.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f5995e174ab0d1dd07549129d94628ef.jpg","text":"TemporaryFile(/tmp/multipartBody3730331348394679746asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973933871,"filename":"image_15012025_07_15_15_10341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/da3e0a2f75c23fcb418f20fe370c1b16.jpg","text":"TemporaryFile(/tmp/multipartBody9213622170733398017asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973933871,"filename":"image_15012025_07_14_36_10435.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329223493","file1":"1329223490","file0":"1329223485","file4":"1329223502","file5":"1329223503","file3":"1329223499"},"map_files_photo_id_array":[{"photo_id":"1329223503","filename":"file5"},{"photo_id":"1329223493","filename":"file2"},{"photo_id":"1329223502","filename":"file4"},{"photo_id":"1329223490","filename":"file1"},{"photo_id":"1329223485","filename":"file0"},{"photo_id":"1329223499","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329223503":["hashtag1","hashtag2"]},{"1329223493":["hashtag1","hashtag2"]},{"1329223502":["hashtag1","hashtag2"]},{"1329223485":["hashtag1","hashtag2"]},{"1329223499":["hashtag1","hashtag2"]},{"1329223490":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329223503, 1329223493, 1329223502, 1329223485, 1329223499, 1329223490)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.93558979034424 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 15 --only_old 0
2025-01-15 21:45:33.060209
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/15/image_15012025_07_16_05_10398.jpg', '/home/pi/Desktop/images/15012025/07/16/image_15012025_07_16_16_10366.jpg', '/home/pi/Desktop/images/15012025/07/16/image_15012025_07_16_25_9403.jpg', '/home/pi/Desktop/images/15012025/07/16/image_15012025_07_16_55_9361.jpg', '/home/pi/Desktop/images/15012025/07/17/image_15012025_07_17_25_9339.jpg', '/home/pi/Desktop/images/15012025/07/17/image_15012025_07_17_55_10450.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/15/image_15012025_07_16_05_10398.jpg
/home/pi/Desktop/images/15012025/07/16/image_15012025_07_16_16_10366.jpg
/home/pi/Desktop/images/15012025/07/16/image_15012025_07_16_25_9403.jpg
/home/pi/Desktop/images/15012025/07/16/image_15012025_07_16_55_9361.jpg
/home/pi/Desktop/images/15012025/07/17/image_15012025_07_17_25_9339.jpg
/home/pi/Desktop/images/15012025/07/17/image_15012025_07_17_55_10450.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329223739","1329223546","1329223543","1329223606","1329223557","1329223539"],"photo_ids_order":["1329223539","1329223543","1329223546","1329223557","1329223606","1329223739"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c384a7e59a9f9d7b86fa0add99c2745f.jpg","text":"TemporaryFile(/tmp/multipartBody7588550736966628242asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973994074,"filename":"image_15012025_07_17_55_10450.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/86ce97dcf386fc975642baa03a69970b.jpg","text":"TemporaryFile(/tmp/multipartBody938006189603530220asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973994074,"filename":"image_15012025_07_16_25_9403.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/be38c4a928751f93be8ecdd101248f8c.jpg","text":"TemporaryFile(/tmp/multipartBody1172926278913112692asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973994074,"filename":"image_15012025_07_16_16_10366.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cefbc83a9f79460f5426387db79776b6.jpg","text":"TemporaryFile(/tmp/multipartBody2874701385391769084asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973994074,"filename":"image_15012025_07_17_25_9339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d110279813b06040477c7513ea07b77f.jpg","text":"TemporaryFile(/tmp/multipartBody8338908637071889479asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973994074,"filename":"image_15012025_07_16_55_9361.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6f8de9eeaae1538e8b99f39e2eabec5e.jpg","text":"TemporaryFile(/tmp/multipartBody638457319664936265asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736973994074,"filename":"image_15012025_07_16_05_10398.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329223546","file1":"1329223543","file0":"1329223539","file4":"1329223606","file5":"1329223739","file3":"1329223557"},"map_files_photo_id_array":[{"photo_id":"1329223739","filename":"file5"},{"photo_id":"1329223546","filename":"file2"},{"photo_id":"1329223606","filename":"file4"},{"photo_id":"1329223543","filename":"file1"},{"photo_id":"1329223539","filename":"file0"},{"photo_id":"1329223557","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329223739":["hashtag1","hashtag2"]},{"1329223546":["hashtag1","hashtag2"]},{"1329223543":["hashtag1","hashtag2"]},{"1329223606":["hashtag1","hashtag2"]},{"1329223557":["hashtag1","hashtag2"]},{"1329223539":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329223739, 1329223546, 1329223543, 1329223606, 1329223557, 1329223539)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.24725127220154 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 15 --only_old 0
2025-01-15 21:46:32.319254
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/17/image_15012025_07_18_06_10431.jpg', '/home/pi/Desktop/images/15012025/07/18/image_15012025_07_18_15_9431.jpg', '/home/pi/Desktop/images/15012025/07/18/image_15012025_07_18_26_10364.jpg', '/home/pi/Desktop/images/15012025/07/18/image_15012025_07_18_35_9342.jpg', '/home/pi/Desktop/images/15012025/07/18/image_15012025_07_18_45_10385.jpg', '/home/pi/Desktop/images/15012025/07/18/image_15012025_07_18_56_10340.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/17/image_15012025_07_18_06_10431.jpg
/home/pi/Desktop/images/15012025/07/18/image_15012025_07_18_15_9431.jpg
/home/pi/Desktop/images/15012025/07/18/image_15012025_07_18_26_10364.jpg
/home/pi/Desktop/images/15012025/07/18/image_15012025_07_18_35_9342.jpg
/home/pi/Desktop/images/15012025/07/18/image_15012025_07_18_45_10385.jpg
/home/pi/Desktop/images/15012025/07/18/image_15012025_07_18_56_10340.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.626143217086792 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
2025-01-15 21:46:42.342519
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/17/image_15012025_07_18_06_10431.jpg', '/home/pi/Desktop/images/15012025/07/18/image_15012025_07_18_15_9431.jpg', '/home/pi/Desktop/images/15012025/07/18/image_15012025_07_18_26_10364.jpg', '/home/pi/Desktop/images/15012025/07/18/image_15012025_07_18_35_9342.jpg', '/home/pi/Desktop/images/15012025/07/18/image_15012025_07_18_45_10385.jpg', '/home/pi/Desktop/images/15012025/07/18/image_15012025_07_18_56_10340.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/17/image_15012025_07_18_06_10431.jpg
/home/pi/Desktop/images/15012025/07/18/image_15012025_07_18_15_9431.jpg
/home/pi/Desktop/images/15012025/07/18/image_15012025_07_18_26_10364.jpg
/home/pi/Desktop/images/15012025/07/18/image_15012025_07_18_35_9342.jpg
/home/pi/Desktop/images/15012025/07/18/image_15012025_07_18_45_10385.jpg
/home/pi/Desktop/images/15012025/07/18/image_15012025_07_18_56_10340.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329223993","1329223963","1329223924","1329223977","1329223989","1329223935"],"photo_ids_order":["1329223924","1329223935","1329223963","1329223977","1329223989","1329223993"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/73991dc668718306575055827e4e784d.jpg","text":"TemporaryFile(/tmp/multipartBody7751166069849632944asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974063263,"filename":"image_15012025_07_18_56_10340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8caeff1d42da35d0d7bac3d5bd3d053a.jpg","text":"TemporaryFile(/tmp/multipartBody8619289261776659363asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974063263,"filename":"image_15012025_07_18_26_10364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3086344c4815800466ebc73e3230b8bd.jpg","text":"TemporaryFile(/tmp/multipartBody7338647236985990008asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974063263,"filename":"image_15012025_07_18_06_10431.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b27a601b322545791a5623f8c62dad60.jpg","text":"TemporaryFile(/tmp/multipartBody4610126490015064597asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974063263,"filename":"image_15012025_07_18_35_9342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/eede46bd9cf27b45a59441652aa0d18a.jpg","text":"TemporaryFile(/tmp/multipartBody6445273470868605459asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974063263,"filename":"image_15012025_07_18_45_10385.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5f8d31d6956325353c184e5bfdf53154.jpg","text":"TemporaryFile(/tmp/multipartBody6572908411213767092asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974063263,"filename":"image_15012025_07_18_15_9431.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329223963","file1":"1329223935","file0":"1329223924","file4":"1329223989","file5":"1329223993","file3":"1329223977"},"map_files_photo_id_array":[{"photo_id":"1329223993","filename":"file5"},{"photo_id":"1329223963","filename":"file2"},{"photo_id":"1329223989","filename":"file4"},{"photo_id":"1329223935","filename":"file1"},{"photo_id":"1329223924","filename":"file0"},{"photo_id":"1329223977","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329223993":["hashtag1","hashtag2"]},{"1329223963":["hashtag1","hashtag2"]},{"1329223924":["hashtag1","hashtag2"]},{"1329223977":["hashtag1","hashtag2"]},{"1329223989":["hashtag1","hashtag2"]},{"1329223935":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329223993, 1329223963, 1329223924, 1329223977, 1329223989, 1329223935)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.426602363586426 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 15 --only_old 0
2025-01-15 21:47:32.596089
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/18/image_15012025_07_19_05_9423.jpg', '/home/pi/Desktop/images/15012025/07/19/image_15012025_07_19_15_10364.jpg', '/home/pi/Desktop/images/15012025/07/19/image_15012025_07_19_26_10383.jpg', '/home/pi/Desktop/images/15012025/07/19/image_15012025_07_19_35_9471.jpg', '/home/pi/Desktop/images/15012025/07/19/image_15012025_07_19_46_10350.jpg', '/home/pi/Desktop/images/15012025/07/19/image_15012025_07_19_55_9399.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/18/image_15012025_07_19_05_9423.jpg
/home/pi/Desktop/images/15012025/07/19/image_15012025_07_19_15_10364.jpg
/home/pi/Desktop/images/15012025/07/19/image_15012025_07_19_26_10383.jpg
/home/pi/Desktop/images/15012025/07/19/image_15012025_07_19_35_9471.jpg
/home/pi/Desktop/images/15012025/07/19/image_15012025_07_19_46_10350.jpg
/home/pi/Desktop/images/15012025/07/19/image_15012025_07_19_55_9399.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329224035","1329224058","1329224052","1329224046","1329224055","1329224060"],"photo_ids_order":["1329224035","1329224046","1329224052","1329224055","1329224058","1329224060"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/70893967c03d3474f54f9346cab22502.jpg","text":"TemporaryFile(/tmp/multipartBody6378764919285618710asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974113620,"filename":"image_15012025_07_19_05_9423.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6fe204c840b9f4de5ce557e8c77b6e07.jpg","text":"TemporaryFile(/tmp/multipartBody4837573423857034609asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974113620,"filename":"image_15012025_07_19_46_10350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d59bb23d2212ea276a567bcebc9b1eea.jpg","text":"TemporaryFile(/tmp/multipartBody5434748846948386937asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974113620,"filename":"image_15012025_07_19_26_10383.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2977cc05d1997882f759ec3440f86af9.jpg","text":"TemporaryFile(/tmp/multipartBody3254998304359166636asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974113620,"filename":"image_15012025_07_19_15_10364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0fd00d5c45fd28979f2a5f8b1bfeea62.jpg","text":"TemporaryFile(/tmp/multipartBody8033885236860294873asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974113620,"filename":"image_15012025_07_19_35_9471.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/87cc746b7e5df2d1d4251d20038ef8ec.jpg","text":"TemporaryFile(/tmp/multipartBody1926589333057742072asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974113620,"filename":"image_15012025_07_19_55_9399.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329224052","file1":"1329224046","file0":"1329224035","file4":"1329224058","file5":"1329224060","file3":"1329224055"},"map_files_photo_id_array":[{"photo_id":"1329224060","filename":"file5"},{"photo_id":"1329224052","filename":"file2"},{"photo_id":"1329224058","filename":"file4"},{"photo_id":"1329224046","filename":"file1"},{"photo_id":"1329224035","filename":"file0"},{"photo_id":"1329224055","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329224035":["hashtag1","hashtag2"]},{"1329224058":["hashtag1","hashtag2"]},{"1329224052":["hashtag1","hashtag2"]},{"1329224046":["hashtag1","hashtag2"]},{"1329224055":["hashtag1","hashtag2"]},{"1329224060":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329224035, 1329224058, 1329224052, 1329224046, 1329224055, 1329224060)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.22863960266113 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 15 --only_old 0
2025-01-15 21:48:32.752488
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/19/image_15012025_07_20_05_10335.jpg', '/home/pi/Desktop/images/15012025/07/20/image_15012025_07_20_16_10351.jpg', '/home/pi/Desktop/images/15012025/07/20/image_15012025_07_20_25_9441.jpg', '/home/pi/Desktop/images/15012025/07/20/image_15012025_07_20_35_10381.jpg', '/home/pi/Desktop/images/15012025/07/20/image_15012025_07_20_45_9355.jpg', '/home/pi/Desktop/images/15012025/07/20/image_15012025_07_20_55_10421.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/19/image_15012025_07_20_05_10335.jpg
/home/pi/Desktop/images/15012025/07/20/image_15012025_07_20_16_10351.jpg
/home/pi/Desktop/images/15012025/07/20/image_15012025_07_20_25_9441.jpg
/home/pi/Desktop/images/15012025/07/20/image_15012025_07_20_35_10381.jpg
/home/pi/Desktop/images/15012025/07/20/image_15012025_07_20_45_9355.jpg
/home/pi/Desktop/images/15012025/07/20/image_15012025_07_20_55_10421.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329224072","1329224077","1329224116","1329224085","1329224115","1329224103"],"photo_ids_order":["1329224072","1329224077","1329224085","1329224103","1329224115","1329224116"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dbd49ed269d44b8868aca982676ce1a5.jpg","text":"TemporaryFile(/tmp/multipartBody7635487889856610521asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974173742,"filename":"image_15012025_07_20_05_10335.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e2a0b4e62fd4880d1ffed90b6b07f5d9.jpg","text":"TemporaryFile(/tmp/multipartBody3667261716935149521asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974173742,"filename":"image_15012025_07_20_16_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6b1102597978a8002abdd851387edc7a.jpg","text":"TemporaryFile(/tmp/multipartBody5201669371895067442asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974173742,"filename":"image_15012025_07_20_55_10421.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/14e0055f7cd8264bbaf3811c12100e06.jpg","text":"TemporaryFile(/tmp/multipartBody2705845365760054554asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974173742,"filename":"image_15012025_07_20_25_9441.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a2f48c81a4bbb6e08aa35f39ac085b11.jpg","text":"TemporaryFile(/tmp/multipartBody6694238048819041578asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974173742,"filename":"image_15012025_07_20_45_9355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1c4f4c876098ca2b1075da0b8c1b01f9.jpg","text":"TemporaryFile(/tmp/multipartBody7705198996571626322asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974173742,"filename":"image_15012025_07_20_35_10381.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329224085","file1":"1329224077","file0":"1329224072","file4":"1329224115","file5":"1329224116","file3":"1329224103"},"map_files_photo_id_array":[{"photo_id":"1329224116","filename":"file5"},{"photo_id":"1329224085","filename":"file2"},{"photo_id":"1329224115","filename":"file4"},{"photo_id":"1329224077","filename":"file1"},{"photo_id":"1329224072","filename":"file0"},{"photo_id":"1329224103","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329224072":["hashtag1","hashtag2"]},{"1329224077":["hashtag1","hashtag2"]},{"1329224116":["hashtag1","hashtag2"]},{"1329224085":["hashtag1","hashtag2"]},{"1329224115":["hashtag1","hashtag2"]},{"1329224103":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329224072, 1329224077, 1329224116, 1329224085, 1329224115, 1329224103)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.72251844406128 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 15 --only_old 0
2025-01-15 21:49:32.965871
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/21/image_15012025_07_21_15_9501.jpg', '/home/pi/Desktop/images/15012025/07/21/image_15012025_07_21_25_10350.jpg', '/home/pi/Desktop/images/15012025/07/21/image_15012025_07_21_35_9377.jpg', '/home/pi/Desktop/images/15012025/07/21/image_15012025_07_21_56_10453.jpg', '/home/pi/Desktop/images/15012025/07/21/image_15012025_07_22_05_9375.jpg', '/home/pi/Desktop/images/15012025/07/22/image_15012025_07_22_15_10343.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/21/image_15012025_07_21_15_9501.jpg
/home/pi/Desktop/images/15012025/07/21/image_15012025_07_21_25_10350.jpg
/home/pi/Desktop/images/15012025/07/21/image_15012025_07_21_35_9377.jpg
/home/pi/Desktop/images/15012025/07/21/image_15012025_07_21_56_10453.jpg
/home/pi/Desktop/images/15012025/07/21/image_15012025_07_22_05_9375.jpg
/home/pi/Desktop/images/15012025/07/22/image_15012025_07_22_15_10343.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329224243","1329224134","1329224257","1329224239","1329224169","1329224235"],"photo_ids_order":["1329224134","1329224169","1329224235","1329224239","1329224243","1329224257"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8232c3bf1b0651f6e6bbdfb65b8a29de.jpg","text":"TemporaryFile(/tmp/multipartBody4073752034641877967asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974233960,"filename":"image_15012025_07_22_05_9375.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ff3bb3be81b88f31dc93b853fbe3ce61.jpg","text":"TemporaryFile(/tmp/multipartBody987540682990692230asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974233960,"filename":"image_15012025_07_21_15_9501.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6a312bd4f8b570c9b4e83d6eca645db3.jpg","text":"TemporaryFile(/tmp/multipartBody6947771642971263981asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974233960,"filename":"image_15012025_07_22_15_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/45e5c01e7a50f5d3bda8a1aad482feab.jpg","text":"TemporaryFile(/tmp/multipartBody681853733711246283asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974233960,"filename":"image_15012025_07_21_56_10453.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2c0410f089f168cc33c601e0c4a2c538.jpg","text":"TemporaryFile(/tmp/multipartBody1880823061261027325asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974233960,"filename":"image_15012025_07_21_25_10350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8ec0edd1ee2e6e323fb9179aa4244802.jpg","text":"TemporaryFile(/tmp/multipartBody5907190071689913042asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974233960,"filename":"image_15012025_07_21_35_9377.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329224235","file1":"1329224169","file0":"1329224134","file4":"1329224243","file5":"1329224257","file3":"1329224239"},"map_files_photo_id_array":[{"photo_id":"1329224257","filename":"file5"},{"photo_id":"1329224235","filename":"file2"},{"photo_id":"1329224243","filename":"file4"},{"photo_id":"1329224169","filename":"file1"},{"photo_id":"1329224134","filename":"file0"},{"photo_id":"1329224239","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329224243":["hashtag1","hashtag2"]},{"1329224134":["hashtag1","hashtag2"]},{"1329224257":["hashtag1","hashtag2"]},{"1329224239":["hashtag1","hashtag2"]},{"1329224169":["hashtag1","hashtag2"]},{"1329224235":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329224243, 1329224134, 1329224257, 1329224239, 1329224169, 1329224235)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.23286724090576 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 15 --only_old 0
2025-01-15 21:50:33.072102
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/22/image_15012025_07_22_45_10351.jpg', '/home/pi/Desktop/images/15012025/07/22/image_15012025_07_22_55_9346.jpg', '/home/pi/Desktop/images/15012025/07/22/image_15012025_07_23_05_10365.jpg', '/home/pi/Desktop/images/15012025/07/23/image_15012025_07_23_16_10346.jpg', '/home/pi/Desktop/images/15012025/07/23/image_15012025_07_23_25_9473.jpg', '/home/pi/Desktop/images/15012025/07/23/image_15012025_07_23_46_10334.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/22/image_15012025_07_22_45_10351.jpg
/home/pi/Desktop/images/15012025/07/22/image_15012025_07_22_55_9346.jpg
/home/pi/Desktop/images/15012025/07/22/image_15012025_07_23_05_10365.jpg
/home/pi/Desktop/images/15012025/07/23/image_15012025_07_23_16_10346.jpg
/home/pi/Desktop/images/15012025/07/23/image_15012025_07_23_25_9473.jpg
/home/pi/Desktop/images/15012025/07/23/image_15012025_07_23_46_10334.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6102020740509033 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
2025-01-15 21:50:42.991297
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/22/image_15012025_07_22_45_10351.jpg', '/home/pi/Desktop/images/15012025/07/22/image_15012025_07_22_55_9346.jpg', '/home/pi/Desktop/images/15012025/07/22/image_15012025_07_23_05_10365.jpg', '/home/pi/Desktop/images/15012025/07/23/image_15012025_07_23_16_10346.jpg', '/home/pi/Desktop/images/15012025/07/23/image_15012025_07_23_25_9473.jpg', '/home/pi/Desktop/images/15012025/07/23/image_15012025_07_23_46_10334.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/22/image_15012025_07_22_45_10351.jpg
/home/pi/Desktop/images/15012025/07/22/image_15012025_07_22_55_9346.jpg
/home/pi/Desktop/images/15012025/07/22/image_15012025_07_23_05_10365.jpg
/home/pi/Desktop/images/15012025/07/23/image_15012025_07_23_16_10346.jpg
/home/pi/Desktop/images/15012025/07/23/image_15012025_07_23_25_9473.jpg
/home/pi/Desktop/images/15012025/07/23/image_15012025_07_23_46_10334.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329224482","1329224425","1329224500","1329224454","1329224478","1329224480"],"photo_ids_order":["1329224425","1329224454","1329224478","1329224480","1329224482","1329224500"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/28eda198d1417334bb8d5f3e7071abb9.jpg","text":"TemporaryFile(/tmp/multipartBody1174946955271105691asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974303899,"filename":"image_15012025_07_23_25_9473.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/45fe181b978dda98da49052c9c47246a.jpg","text":"TemporaryFile(/tmp/multipartBody8405899860959187243asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974303899,"filename":"image_15012025_07_22_45_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a6a46669174331faeb677fbab908e354.jpg","text":"TemporaryFile(/tmp/multipartBody4150105896943650635asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974303899,"filename":"image_15012025_07_23_46_10334.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/165ef6b590998027f1d48a75421b0508.jpg","text":"TemporaryFile(/tmp/multipartBody4245379007450902477asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974303899,"filename":"image_15012025_07_22_55_9346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8f4468654685d42b86894f037a1d59ed.jpg","text":"TemporaryFile(/tmp/multipartBody7528233096687392997asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974303899,"filename":"image_15012025_07_23_05_10365.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c496800c9ce5ac4ef392baf54f1c48d4.jpg","text":"TemporaryFile(/tmp/multipartBody3267638631923523266asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974303899,"filename":"image_15012025_07_23_16_10346.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329224478","file1":"1329224454","file0":"1329224425","file4":"1329224482","file5":"1329224500","file3":"1329224480"},"map_files_photo_id_array":[{"photo_id":"1329224500","filename":"file5"},{"photo_id":"1329224478","filename":"file2"},{"photo_id":"1329224482","filename":"file4"},{"photo_id":"1329224454","filename":"file1"},{"photo_id":"1329224425","filename":"file0"},{"photo_id":"1329224480","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329224482":["hashtag1","hashtag2"]},{"1329224425":["hashtag1","hashtag2"]},{"1329224500":["hashtag1","hashtag2"]},{"1329224454":["hashtag1","hashtag2"]},{"1329224478":["hashtag1","hashtag2"]},{"1329224480":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329224482, 1329224425, 1329224500, 1329224454, 1329224478, 1329224480)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.094521284103394 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 15 --only_old 0
2025-01-15 21:51:32.313119
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/23/image_15012025_07_23_55_9360.jpg', '/home/pi/Desktop/images/15012025/07/23/image_15012025_07_24_05_10354.jpg', '/home/pi/Desktop/images/15012025/07/24/image_15012025_07_24_25_9433.jpg', '/home/pi/Desktop/images/15012025/07/24/image_15012025_07_24_36_10351.jpg', '/home/pi/Desktop/images/15012025/07/24/image_15012025_07_24_55_10435.jpg', '/home/pi/Desktop/images/15012025/07/25/image_15012025_07_25_15_9408.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/23/image_15012025_07_23_55_9360.jpg
/home/pi/Desktop/images/15012025/07/23/image_15012025_07_24_05_10354.jpg
/home/pi/Desktop/images/15012025/07/24/image_15012025_07_24_25_9433.jpg
/home/pi/Desktop/images/15012025/07/24/image_15012025_07_24_36_10351.jpg
/home/pi/Desktop/images/15012025/07/24/image_15012025_07_24_55_10435.jpg
/home/pi/Desktop/images/15012025/07/25/image_15012025_07_25_15_9408.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329224516","1329224539","1329224530","1329224509","1329224541","1329224535"],"photo_ids_order":["1329224509","1329224516","1329224530","1329224535","1329224539","1329224541"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/28ddcfe08d4341d57f94d00ba7dd712b.jpg","text":"TemporaryFile(/tmp/multipartBody585085478236313802asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974353315,"filename":"image_15012025_07_24_05_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e73b033adfd3367d346ffe15ccc84fb3.jpg","text":"TemporaryFile(/tmp/multipartBody3495569710902743164asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974353315,"filename":"image_15012025_07_24_55_10435.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/83adb39b70a2cb8bfd53483c35be971f.jpg","text":"TemporaryFile(/tmp/multipartBody1956906566283898996asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974353315,"filename":"image_15012025_07_24_25_9433.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/534572757f6f5b72d261e93df9b1605d.jpg","text":"TemporaryFile(/tmp/multipartBody6120744877853162609asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974353315,"filename":"image_15012025_07_23_55_9360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b4500fb48fe256b20d8a84d85fde991e.jpg","text":"TemporaryFile(/tmp/multipartBody76639333975383448asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974353315,"filename":"image_15012025_07_25_15_9408.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dd5fa94391e229f34128f8769f29d6f4.jpg","text":"TemporaryFile(/tmp/multipartBody7918282793068962454asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974353315,"filename":"image_15012025_07_24_36_10351.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329224530","file1":"1329224516","file0":"1329224509","file4":"1329224539","file5":"1329224541","file3":"1329224535"},"map_files_photo_id_array":[{"photo_id":"1329224541","filename":"file5"},{"photo_id":"1329224530","filename":"file2"},{"photo_id":"1329224539","filename":"file4"},{"photo_id":"1329224516","filename":"file1"},{"photo_id":"1329224509","filename":"file0"},{"photo_id":"1329224535","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329224516":["hashtag1","hashtag2"]},{"1329224539":["hashtag1","hashtag2"]},{"1329224530":["hashtag1","hashtag2"]},{"1329224509":["hashtag1","hashtag2"]},{"1329224541":["hashtag1","hashtag2"]},{"1329224535":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329224516, 1329224539, 1329224530, 1329224509, 1329224541, 1329224535)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.82829666137695 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 15 --only_old 0
2025-01-15 21:52:32.668948
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/25/image_15012025_07_25_25_10359.jpg', '/home/pi/Desktop/images/15012025/07/25/image_15012025_07_25_36_10360.jpg', '/home/pi/Desktop/images/15012025/07/25/image_15012025_07_25_56_10344.jpg', '/home/pi/Desktop/images/15012025/07/26/image_15012025_07_26_35_9352.jpg', '/home/pi/Desktop/images/15012025/07/26/image_15012025_07_26_45_10340.jpg', '/home/pi/Desktop/images/15012025/07/26/image_15012025_07_26_56_10342.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/25/image_15012025_07_25_25_10359.jpg
/home/pi/Desktop/images/15012025/07/25/image_15012025_07_25_36_10360.jpg
/home/pi/Desktop/images/15012025/07/25/image_15012025_07_25_56_10344.jpg
/home/pi/Desktop/images/15012025/07/26/image_15012025_07_26_35_9352.jpg
/home/pi/Desktop/images/15012025/07/26/image_15012025_07_26_45_10340.jpg
/home/pi/Desktop/images/15012025/07/26/image_15012025_07_26_56_10342.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329225160","1329225061","1329224773","1329225261","1329224859","1329224960"],"photo_ids_order":["1329224773","1329224859","1329224960","1329225061","1329225160","1329225261"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4d201c5dfffcd056cb901ab1ef31c885.jpg","text":"TemporaryFile(/tmp/multipartBody6205585522899219652asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974413761,"filename":"image_15012025_07_26_45_10340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6c08d0d4500ae8fbba6523de6784d22e.jpg","text":"TemporaryFile(/tmp/multipartBody6611247257948097525asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974413761,"filename":"image_15012025_07_26_35_9352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0a649c67d112eeae2d4f255d9de42bb2.jpg","text":"TemporaryFile(/tmp/multipartBody2971345514515515765asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974413761,"filename":"image_15012025_07_25_25_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/290c6c656ba8e5072932b5ac747d880f.jpg","text":"TemporaryFile(/tmp/multipartBody5011832423970583969asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974413761,"filename":"image_15012025_07_26_56_10342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a4e46932621033e98338f354910a1c64.jpg","text":"TemporaryFile(/tmp/multipartBody7420690985325423530asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974413761,"filename":"image_15012025_07_25_36_10360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a7422e15c1fff4b63bb053c175cc54ea.jpg","text":"TemporaryFile(/tmp/multipartBody7048175699805675184asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974413761,"filename":"image_15012025_07_25_56_10344.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329224960","file1":"1329224859","file0":"1329224773","file4":"1329225160","file5":"1329225261","file3":"1329225061"},"map_files_photo_id_array":[{"photo_id":"1329225261","filename":"file5"},{"photo_id":"1329224960","filename":"file2"},{"photo_id":"1329225160","filename":"file4"},{"photo_id":"1329224859","filename":"file1"},{"photo_id":"1329224773","filename":"file0"},{"photo_id":"1329225061","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329225160":["hashtag1","hashtag2"]},{"1329225061":["hashtag1","hashtag2"]},{"1329224773":["hashtag1","hashtag2"]},{"1329225261":["hashtag1","hashtag2"]},{"1329224859":["hashtag1","hashtag2"]},{"1329224960":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329225160, 1329225061, 1329224773, 1329225261, 1329224859, 1329224960)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.18289136886597 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 15 --only_old 0
2025-01-15 21:53:32.957224
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/26/image_15012025_07_27_05_9357.jpg', '/home/pi/Desktop/images/15012025/07/27/image_15012025_07_27_15_10337.jpg', '/home/pi/Desktop/images/15012025/07/27/image_15012025_07_27_25_9380.jpg', '/home/pi/Desktop/images/15012025/07/27/image_15012025_07_27_35_10433.jpg', '/home/pi/Desktop/images/15012025/07/27/image_15012025_07_27_46_10346.jpg', '/home/pi/Desktop/images/15012025/07/27/image_15012025_07_27_55_9373.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/26/image_15012025_07_27_05_9357.jpg
/home/pi/Desktop/images/15012025/07/27/image_15012025_07_27_15_10337.jpg
/home/pi/Desktop/images/15012025/07/27/image_15012025_07_27_25_9380.jpg
/home/pi/Desktop/images/15012025/07/27/image_15012025_07_27_35_10433.jpg
/home/pi/Desktop/images/15012025/07/27/image_15012025_07_27_46_10346.jpg
/home/pi/Desktop/images/15012025/07/27/image_15012025_07_27_55_9373.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.5924482345581055 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
2025-01-15 21:53:43.023677
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/26/image_15012025_07_27_05_9357.jpg', '/home/pi/Desktop/images/15012025/07/27/image_15012025_07_27_15_10337.jpg', '/home/pi/Desktop/images/15012025/07/27/image_15012025_07_27_25_9380.jpg', '/home/pi/Desktop/images/15012025/07/27/image_15012025_07_27_35_10433.jpg', '/home/pi/Desktop/images/15012025/07/27/image_15012025_07_27_46_10346.jpg', '/home/pi/Desktop/images/15012025/07/27/image_15012025_07_27_55_9373.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/26/image_15012025_07_27_05_9357.jpg
/home/pi/Desktop/images/15012025/07/27/image_15012025_07_27_15_10337.jpg
/home/pi/Desktop/images/15012025/07/27/image_15012025_07_27_25_9380.jpg
/home/pi/Desktop/images/15012025/07/27/image_15012025_07_27_35_10433.jpg
/home/pi/Desktop/images/15012025/07/27/image_15012025_07_27_46_10346.jpg
/home/pi/Desktop/images/15012025/07/27/image_15012025_07_27_55_9373.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329225886","1329225919","1329225870","1329225878","1329225866","1329225875"],"photo_ids_order":["1329225866","1329225870","1329225875","1329225878","1329225886","1329225919"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/45c0980d695fc9ce9682929b00010778.jpg","text":"TemporaryFile(/tmp/multipartBody3202454437255675689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974483931,"filename":"image_15012025_07_27_46_10346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7ad96869d271c37734501c464ce882b4.jpg","text":"TemporaryFile(/tmp/multipartBody5780359460774738280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974483931,"filename":"image_15012025_07_27_55_9373.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/95fff3283267a97fb6280773aa71fa70.jpg","text":"TemporaryFile(/tmp/multipartBody5892315309511771338asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974483931,"filename":"image_15012025_07_27_15_10337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6039a5edbc655dec6d562b9810d569ca.jpg","text":"TemporaryFile(/tmp/multipartBody3682307749316025517asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974483931,"filename":"image_15012025_07_27_35_10433.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/27a7e851e9e7a0acbfc44da88638e46b.jpg","text":"TemporaryFile(/tmp/multipartBody5794008945572371667asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974483931,"filename":"image_15012025_07_27_05_9357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/08099edc46905fe09803deaae68f3afe.jpg","text":"TemporaryFile(/tmp/multipartBody4294299876707782863asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974483931,"filename":"image_15012025_07_27_25_9380.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329225875","file1":"1329225870","file0":"1329225866","file4":"1329225886","file5":"1329225919","file3":"1329225878"},"map_files_photo_id_array":[{"photo_id":"1329225919","filename":"file5"},{"photo_id":"1329225875","filename":"file2"},{"photo_id":"1329225886","filename":"file4"},{"photo_id":"1329225870","filename":"file1"},{"photo_id":"1329225866","filename":"file0"},{"photo_id":"1329225878","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329225886":["hashtag1","hashtag2"]},{"1329225919":["hashtag1","hashtag2"]},{"1329225870":["hashtag1","hashtag2"]},{"1329225878":["hashtag1","hashtag2"]},{"1329225866":["hashtag1","hashtag2"]},{"1329225875":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329225886, 1329225919, 1329225870, 1329225878, 1329225866, 1329225875)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.44954466819763 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 15 --only_old 0
2025-01-15 21:54:33.154399
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/27/image_15012025_07_28_05_10363.jpg', '/home/pi/Desktop/images/15012025/07/28/image_15012025_07_28_16_10368.jpg', '/home/pi/Desktop/images/15012025/07/28/image_15012025_07_28_25_9414.jpg', '/home/pi/Desktop/images/15012025/07/28/image_15012025_07_28_36_10403.jpg', '/home/pi/Desktop/images/15012025/07/28/image_15012025_07_28_45_9445.jpg', '/home/pi/Desktop/images/15012025/07/28/image_15012025_07_28_55_10371.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/27/image_15012025_07_28_05_10363.jpg
/home/pi/Desktop/images/15012025/07/28/image_15012025_07_28_16_10368.jpg
/home/pi/Desktop/images/15012025/07/28/image_15012025_07_28_25_9414.jpg
/home/pi/Desktop/images/15012025/07/28/image_15012025_07_28_36_10403.jpg
/home/pi/Desktop/images/15012025/07/28/image_15012025_07_28_45_9445.jpg
/home/pi/Desktop/images/15012025/07/28/image_15012025_07_28_55_10371.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329226105","1329225999","1329226178","1329226040","1329225932","1329225929"],"photo_ids_order":["1329225929","1329225932","1329225999","1329226040","1329226105","1329226178"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7ef2e035fe9ef2af8e3572fd83041712.jpg","text":"TemporaryFile(/tmp/multipartBody4372219732483660176asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974534137,"filename":"image_15012025_07_28_45_9445.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/671125e34eaea35d67eaf04e82110756.jpg","text":"TemporaryFile(/tmp/multipartBody1771003231235973724asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974534137,"filename":"image_15012025_07_28_25_9414.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/94051a9023d6e56e1c1e46f7c4ae90b3.jpg","text":"TemporaryFile(/tmp/multipartBody3446167437387254434asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974534137,"filename":"image_15012025_07_28_55_10371.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c92357740650cf4684aef9660ec10de8.jpg","text":"TemporaryFile(/tmp/multipartBody4905682453053330642asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974534137,"filename":"image_15012025_07_28_36_10403.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7861e236feb0a0f66766f93797747e21.jpg","text":"TemporaryFile(/tmp/multipartBody712256625121879863asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974534137,"filename":"image_15012025_07_28_16_10368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ed048d0d39189be00a440337dc1b36f7.jpg","text":"TemporaryFile(/tmp/multipartBody76036396068360083asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974534137,"filename":"image_15012025_07_28_05_10363.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329225999","file1":"1329225932","file0":"1329225929","file4":"1329226105","file5":"1329226178","file3":"1329226040"},"map_files_photo_id_array":[{"photo_id":"1329226178","filename":"file5"},{"photo_id":"1329225999","filename":"file2"},{"photo_id":"1329226105","filename":"file4"},{"photo_id":"1329225932","filename":"file1"},{"photo_id":"1329225929","filename":"file0"},{"photo_id":"1329226040","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329226105":["hashtag1","hashtag2"]},{"1329225999":["hashtag1","hashtag2"]},{"1329226178":["hashtag1","hashtag2"]},{"1329226040":["hashtag1","hashtag2"]},{"1329225932":["hashtag1","hashtag2"]},{"1329225929":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329226105, 1329225999, 1329226178, 1329226040, 1329225932, 1329225929)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 48.09244155883789 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 15 --only_old 0
2025-01-15 21:55:32.385362
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/28/image_15012025_07_29_05_9448.jpg', '/home/pi/Desktop/images/15012025/07/29/image_15012025_07_29_15_10404.jpg', '/home/pi/Desktop/images/15012025/07/29/image_15012025_07_29_26_10361.jpg', '/home/pi/Desktop/images/15012025/07/29/image_15012025_07_29_35_9538.jpg', '/home/pi/Desktop/images/15012025/07/29/image_15012025_07_29_46_10587.jpg', '/home/pi/Desktop/images/15012025/07/29/image_15012025_07_29_55_9345.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/28/image_15012025_07_29_05_9448.jpg
/home/pi/Desktop/images/15012025/07/29/image_15012025_07_29_15_10404.jpg
/home/pi/Desktop/images/15012025/07/29/image_15012025_07_29_26_10361.jpg
/home/pi/Desktop/images/15012025/07/29/image_15012025_07_29_35_9538.jpg
/home/pi/Desktop/images/15012025/07/29/image_15012025_07_29_46_10587.jpg
/home/pi/Desktop/images/15012025/07/29/image_15012025_07_29_55_9345.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329226339","1329226335","1329226361","1329226328","1329226366","1329226351"],"photo_ids_order":["1329226328","1329226335","1329226339","1329226351","1329226361","1329226366"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1f2bceb65cf897a72114f9f6054c3f8a.jpg","text":"TemporaryFile(/tmp/multipartBody4111884241289780447asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974593394,"filename":"image_15012025_07_29_26_10361.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0057296b3fef9db1f992ff3fbfb3b929.jpg","text":"TemporaryFile(/tmp/multipartBody8134722286423729088asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974593394,"filename":"image_15012025_07_29_15_10404.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b810b65594fea0e20cbc5c4c7c09b3b5.jpg","text":"TemporaryFile(/tmp/multipartBody1240835457301101808asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974593394,"filename":"image_15012025_07_29_46_10587.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6902148899ac82f67b5de252bebbbc3b.jpg","text":"TemporaryFile(/tmp/multipartBody2023072012438052304asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974593394,"filename":"image_15012025_07_29_05_9448.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1cc5f21b6de703b142a8303690013eb2.jpg","text":"TemporaryFile(/tmp/multipartBody7163483334386881456asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974593394,"filename":"image_15012025_07_29_55_9345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3faade4c47f4df8a96c2446eeb94028b.jpg","text":"TemporaryFile(/tmp/multipartBody6235198098986549035asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974593394,"filename":"image_15012025_07_29_35_9538.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329226339","file1":"1329226335","file0":"1329226328","file4":"1329226361","file5":"1329226366","file3":"1329226351"},"map_files_photo_id_array":[{"photo_id":"1329226366","filename":"file5"},{"photo_id":"1329226339","filename":"file2"},{"photo_id":"1329226361","filename":"file4"},{"photo_id":"1329226335","filename":"file1"},{"photo_id":"1329226328","filename":"file0"},{"photo_id":"1329226351","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329226339":["hashtag1","hashtag2"]},{"1329226335":["hashtag1","hashtag2"]},{"1329226361":["hashtag1","hashtag2"]},{"1329226328":["hashtag1","hashtag2"]},{"1329226366":["hashtag1","hashtag2"]},{"1329226351":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329226339, 1329226335, 1329226361, 1329226328, 1329226366, 1329226351)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.549283504486084 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 15 --only_old 0
2025-01-15 21:56:32.825508
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/29/image_15012025_07_30_05_10363.jpg', '/home/pi/Desktop/images/15012025/07/30/image_15012025_07_30_16_10362.jpg', '/home/pi/Desktop/images/15012025/07/30/image_15012025_07_30_25_9351.jpg', '/home/pi/Desktop/images/15012025/07/30/image_15012025_07_30_35_10347.jpg', '/home/pi/Desktop/images/15012025/07/30/image_15012025_07_30_45_9363.jpg', '/home/pi/Desktop/images/15012025/07/30/image_15012025_07_30_55_10433.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/29/image_15012025_07_30_05_10363.jpg
/home/pi/Desktop/images/15012025/07/30/image_15012025_07_30_16_10362.jpg
/home/pi/Desktop/images/15012025/07/30/image_15012025_07_30_25_9351.jpg
/home/pi/Desktop/images/15012025/07/30/image_15012025_07_30_35_10347.jpg
/home/pi/Desktop/images/15012025/07/30/image_15012025_07_30_45_9363.jpg
/home/pi/Desktop/images/15012025/07/30/image_15012025_07_30_55_10433.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6250462532043457 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
2025-01-15 21:56:42.712678
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/29/image_15012025_07_30_05_10363.jpg', '/home/pi/Desktop/images/15012025/07/30/image_15012025_07_30_16_10362.jpg', '/home/pi/Desktop/images/15012025/07/30/image_15012025_07_30_25_9351.jpg', '/home/pi/Desktop/images/15012025/07/30/image_15012025_07_30_35_10347.jpg', '/home/pi/Desktop/images/15012025/07/30/image_15012025_07_30_45_9363.jpg', '/home/pi/Desktop/images/15012025/07/30/image_15012025_07_30_55_10433.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/29/image_15012025_07_30_05_10363.jpg
/home/pi/Desktop/images/15012025/07/30/image_15012025_07_30_16_10362.jpg
/home/pi/Desktop/images/15012025/07/30/image_15012025_07_30_25_9351.jpg
/home/pi/Desktop/images/15012025/07/30/image_15012025_07_30_35_10347.jpg
/home/pi/Desktop/images/15012025/07/30/image_15012025_07_30_45_9363.jpg
/home/pi/Desktop/images/15012025/07/30/image_15012025_07_30_55_10433.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329226804","1329226767","1329226782","1329226800","1329226772","1329226802"],"photo_ids_order":["1329226767","1329226772","1329226782","1329226800","1329226802","1329226804"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c7fb7bf90c9d486c6b8192b8c86a4c08.jpg","text":"TemporaryFile(/tmp/multipartBody6871347680163160403asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974663639,"filename":"image_15012025_07_30_55_10433.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/aadb993f8bb253ba486da6c6c38e4473.jpg","text":"TemporaryFile(/tmp/multipartBody2019560539093094306asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974663639,"filename":"image_15012025_07_30_05_10363.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ebc908bb8adbaddd708a22b1edd01f63.jpg","text":"TemporaryFile(/tmp/multipartBody2296319287753380987asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974663639,"filename":"image_15012025_07_30_25_9351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ee316d31ab07000f5aad108072108350.jpg","text":"TemporaryFile(/tmp/multipartBody5759583716938917498asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974663639,"filename":"image_15012025_07_30_35_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/850005b5252f0990234da8bd25998776.jpg","text":"TemporaryFile(/tmp/multipartBody8847810511479839747asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974663639,"filename":"image_15012025_07_30_16_10362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/58e799834b4e1d1e77cdca72924c06f9.jpg","text":"TemporaryFile(/tmp/multipartBody5630537445569344542asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974663639,"filename":"image_15012025_07_30_45_9363.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329226782","file1":"1329226772","file0":"1329226767","file4":"1329226802","file5":"1329226804","file3":"1329226800"},"map_files_photo_id_array":[{"photo_id":"1329226804","filename":"file5"},{"photo_id":"1329226782","filename":"file2"},{"photo_id":"1329226802","filename":"file4"},{"photo_id":"1329226772","filename":"file1"},{"photo_id":"1329226767","filename":"file0"},{"photo_id":"1329226800","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329226804":["hashtag1","hashtag2"]},{"1329226767":["hashtag1","hashtag2"]},{"1329226782":["hashtag1","hashtag2"]},{"1329226800":["hashtag1","hashtag2"]},{"1329226772":["hashtag1","hashtag2"]},{"1329226802":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329226804, 1329226767, 1329226782, 1329226800, 1329226772, 1329226802)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.292943716049194 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 15 --only_old 0
2025-01-15 21:57:33.062556
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/30/image_15012025_07_31_06_10338.jpg', '/home/pi/Desktop/images/15012025/07/31/image_15012025_07_31_15_9422.jpg', '/home/pi/Desktop/images/15012025/07/31/image_15012025_07_31_25_10372.jpg', '/home/pi/Desktop/images/15012025/07/31/image_15012025_07_31_36_10350.jpg', '/home/pi/Desktop/images/15012025/07/31/image_15012025_07_31_45_9403.jpg', '/home/pi/Desktop/images/15012025/07/31/image_15012025_07_31_56_10376.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/30/image_15012025_07_31_06_10338.jpg
/home/pi/Desktop/images/15012025/07/31/image_15012025_07_31_15_9422.jpg
/home/pi/Desktop/images/15012025/07/31/image_15012025_07_31_25_10372.jpg
/home/pi/Desktop/images/15012025/07/31/image_15012025_07_31_36_10350.jpg
/home/pi/Desktop/images/15012025/07/31/image_15012025_07_31_45_9403.jpg
/home/pi/Desktop/images/15012025/07/31/image_15012025_07_31_56_10376.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
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
2025-01-15 21:59:04.052737
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/30/image_15012025_07_31_06_10338.jpg', '/home/pi/Desktop/images/15012025/07/31/image_15012025_07_31_15_9422.jpg', '/home/pi/Desktop/images/15012025/07/31/image_15012025_07_31_25_10372.jpg', '/home/pi/Desktop/images/15012025/07/31/image_15012025_07_31_36_10350.jpg', '/home/pi/Desktop/images/15012025/07/31/image_15012025_07_31_45_9403.jpg', '/home/pi/Desktop/images/15012025/07/31/image_15012025_07_31_56_10376.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/30/image_15012025_07_31_06_10338.jpg
/home/pi/Desktop/images/15012025/07/31/image_15012025_07_31_15_9422.jpg
/home/pi/Desktop/images/15012025/07/31/image_15012025_07_31_25_10372.jpg
/home/pi/Desktop/images/15012025/07/31/image_15012025_07_31_36_10350.jpg
/home/pi/Desktop/images/15012025/07/31/image_15012025_07_31_45_9403.jpg
/home/pi/Desktop/images/15012025/07/31/image_15012025_07_31_56_10376.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329227772","1329227766","1329227786","1329227777","1329227782","1329227761"],"photo_ids_order":["1329227761","1329227766","1329227772","1329227777","1329227782","1329227786"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/74df2876b1d71ce9fda01547bdc19a72.jpg","text":"TemporaryFile(/tmp/multipartBody5669582461782274702asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974805019,"filename":"image_15012025_07_31_25_10372.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/92c6131ebc16904c4c6ab74428f0c104.jpg","text":"TemporaryFile(/tmp/multipartBody1728129231664503170asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974805019,"filename":"image_15012025_07_31_15_9422.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b6ffb7907da97ceae6d798cb40cc66be.jpg","text":"TemporaryFile(/tmp/multipartBody9119211034311353178asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974805019,"filename":"image_15012025_07_31_56_10376.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8c5031338c8654a4111e94ebc9379c81.jpg","text":"TemporaryFile(/tmp/multipartBody8240810513811169594asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974805019,"filename":"image_15012025_07_31_36_10350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2023c7eac927591aed7f083fbf391843.jpg","text":"TemporaryFile(/tmp/multipartBody2442146969757510159asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974805019,"filename":"image_15012025_07_31_45_9403.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d45399b1d48b603581db888c492372fe.jpg","text":"TemporaryFile(/tmp/multipartBody1871587470890455109asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974805019,"filename":"image_15012025_07_31_06_10338.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329227772","file1":"1329227766","file0":"1329227761","file4":"1329227782","file5":"1329227786","file3":"1329227777"},"map_files_photo_id_array":[{"photo_id":"1329227786","filename":"file5"},{"photo_id":"1329227772","filename":"file2"},{"photo_id":"1329227782","filename":"file4"},{"photo_id":"1329227766","filename":"file1"},{"photo_id":"1329227761","filename":"file0"},{"photo_id":"1329227777","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329227772":["hashtag1","hashtag2"]},{"1329227766":["hashtag1","hashtag2"]},{"1329227786":["hashtag1","hashtag2"]},{"1329227777":["hashtag1","hashtag2"]},{"1329227782":["hashtag1","hashtag2"]},{"1329227761":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329227772, 1329227766, 1329227786, 1329227777, 1329227782, 1329227761)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.2664270401001 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 15 --only_old 0
2025-01-15 21:59:52.845986
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/31/image_15012025_07_32_05_9432.jpg', '/home/pi/Desktop/images/15012025/07/32/image_15012025_07_32_15_10427.jpg', '/home/pi/Desktop/images/15012025/07/32/image_15012025_07_32_26_10352.jpg', '/home/pi/Desktop/images/15012025/07/32/image_15012025_07_32_35_9328.jpg', '/home/pi/Desktop/images/15012025/07/32/image_15012025_07_32_45_10371.jpg', '/home/pi/Desktop/images/15012025/07/32/image_15012025_07_32_55_9354.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/31/image_15012025_07_32_05_9432.jpg
/home/pi/Desktop/images/15012025/07/32/image_15012025_07_32_15_10427.jpg
/home/pi/Desktop/images/15012025/07/32/image_15012025_07_32_26_10352.jpg
/home/pi/Desktop/images/15012025/07/32/image_15012025_07_32_35_9328.jpg
/home/pi/Desktop/images/15012025/07/32/image_15012025_07_32_45_10371.jpg
/home/pi/Desktop/images/15012025/07/32/image_15012025_07_32_55_9354.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329227798","1329227802","1329227792","1329227795","1329227804","1329227801"],"photo_ids_order":["1329227792","1329227795","1329227798","1329227801","1329227802","1329227804"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8d329cd968e3008cfdfe0f710775bda6.jpg","text":"TemporaryFile(/tmp/multipartBody4184259928527983951asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974853863,"filename":"image_15012025_07_32_26_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7c2e3adf39ad038f2b1d906d40237edc.jpg","text":"TemporaryFile(/tmp/multipartBody5222827726944651115asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974853863,"filename":"image_15012025_07_32_45_10371.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/10723a62228219ffaab8d138c8607d52.jpg","text":"TemporaryFile(/tmp/multipartBody429812966935327444asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974853863,"filename":"image_15012025_07_32_05_9432.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b8330aa8c929f8648c1eaed018cc4aaf.jpg","text":"TemporaryFile(/tmp/multipartBody4682323236820222709asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974853863,"filename":"image_15012025_07_32_15_10427.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7fdf4ad57bab86ceb931ce71ce232de6.jpg","text":"TemporaryFile(/tmp/multipartBody7772503949798776078asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974853863,"filename":"image_15012025_07_32_55_9354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/daa7a9b7b2166c04cbc13bdf20f3d743.jpg","text":"TemporaryFile(/tmp/multipartBody814877568435137184asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974853863,"filename":"image_15012025_07_32_35_9328.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329227798","file1":"1329227795","file0":"1329227792","file4":"1329227802","file5":"1329227804","file3":"1329227801"},"map_files_photo_id_array":[{"photo_id":"1329227804","filename":"file5"},{"photo_id":"1329227798","filename":"file2"},{"photo_id":"1329227802","filename":"file4"},{"photo_id":"1329227795","filename":"file1"},{"photo_id":"1329227792","filename":"file0"},{"photo_id":"1329227801","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329227798":["hashtag1","hashtag2"]},{"1329227802":["hashtag1","hashtag2"]},{"1329227792":["hashtag1","hashtag2"]},{"1329227795":["hashtag1","hashtag2"]},{"1329227804":["hashtag1","hashtag2"]},{"1329227801":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329227798, 1329227802, 1329227792, 1329227795, 1329227804, 1329227801)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.91917181015015 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
2025-01-15 22:00:43.091981
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/32/image_15012025_07_33_05_10347.jpg', '/home/pi/Desktop/images/15012025/07/33/image_15012025_07_33_16_10336.jpg', '/home/pi/Desktop/images/15012025/07/33/image_15012025_07_33_25_9355.jpg', '/home/pi/Desktop/images/15012025/07/33/image_15012025_07_33_35_10404.jpg', '/home/pi/Desktop/images/15012025/07/33/image_15012025_07_33_46_10368.jpg', '/home/pi/Desktop/images/15012025/07/33/image_15012025_07_33_55_9385.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/32/image_15012025_07_33_05_10347.jpg
/home/pi/Desktop/images/15012025/07/33/image_15012025_07_33_16_10336.jpg
/home/pi/Desktop/images/15012025/07/33/image_15012025_07_33_25_9355.jpg
/home/pi/Desktop/images/15012025/07/33/image_15012025_07_33_35_10404.jpg
/home/pi/Desktop/images/15012025/07/33/image_15012025_07_33_46_10368.jpg
/home/pi/Desktop/images/15012025/07/33/image_15012025_07_33_55_9385.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329227832","1329227835","1329227820","1329227817","1329227837","1329227822"],"photo_ids_order":["1329227817","1329227820","1329227822","1329227832","1329227835","1329227837"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4e3bc022403c0704ffadfe778be3fabb.jpg","text":"TemporaryFile(/tmp/multipartBody9100079261053572208asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974904090,"filename":"image_15012025_07_33_35_10404.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ceb0949214e4a22867f660e414041ec4.jpg","text":"TemporaryFile(/tmp/multipartBody1234039795734661831asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974904090,"filename":"image_15012025_07_33_46_10368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/332d8816216f77f4e66b28c5d37ecf7c.jpg","text":"TemporaryFile(/tmp/multipartBody3875761530533529605asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974904090,"filename":"image_15012025_07_33_16_10336.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/162272da4cb7e37fe93015fa10c57f82.jpg","text":"TemporaryFile(/tmp/multipartBody6746076981529354461asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974904090,"filename":"image_15012025_07_33_05_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/68d42c87bfb87d3b03ba2bed1e1f3886.jpg","text":"TemporaryFile(/tmp/multipartBody4354197012537082323asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974904090,"filename":"image_15012025_07_33_55_9385.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2a9e076c51a510a1f0b24b288deff1da.jpg","text":"TemporaryFile(/tmp/multipartBody3193424473974244103asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974904090,"filename":"image_15012025_07_33_25_9355.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329227822","file1":"1329227820","file0":"1329227817","file4":"1329227835","file5":"1329227837","file3":"1329227832"},"map_files_photo_id_array":[{"photo_id":"1329227837","filename":"file5"},{"photo_id":"1329227822","filename":"file2"},{"photo_id":"1329227835","filename":"file4"},{"photo_id":"1329227820","filename":"file1"},{"photo_id":"1329227817","filename":"file0"},{"photo_id":"1329227832","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329227832":["hashtag1","hashtag2"]},{"1329227835":["hashtag1","hashtag2"]},{"1329227820":["hashtag1","hashtag2"]},{"1329227817":["hashtag1","hashtag2"]},{"1329227837":["hashtag1","hashtag2"]},{"1329227822":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329227832, 1329227835, 1329227820, 1329227817, 1329227837, 1329227822)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.13776731491089 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 15 --only_old 0
2025-01-15 22:01:32.264036
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/33/image_15012025_07_34_05_10366.jpg', '/home/pi/Desktop/images/15012025/07/34/image_15012025_07_34_16_10355.jpg', '/home/pi/Desktop/images/15012025/07/34/image_15012025_07_34_25_9360.jpg', '/home/pi/Desktop/images/15012025/07/34/image_15012025_07_34_35_10354.jpg', '/home/pi/Desktop/images/15012025/07/34/image_15012025_07_34_45_9351.jpg', '/home/pi/Desktop/images/15012025/07/34/image_15012025_07_34_55_10346.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/33/image_15012025_07_34_05_10366.jpg
/home/pi/Desktop/images/15012025/07/34/image_15012025_07_34_16_10355.jpg
/home/pi/Desktop/images/15012025/07/34/image_15012025_07_34_25_9360.jpg
/home/pi/Desktop/images/15012025/07/34/image_15012025_07_34_35_10354.jpg
/home/pi/Desktop/images/15012025/07/34/image_15012025_07_34_45_9351.jpg
/home/pi/Desktop/images/15012025/07/34/image_15012025_07_34_55_10346.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6185507774353027 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
2025-01-15 22:01:42.352280
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/33/image_15012025_07_34_05_10366.jpg', '/home/pi/Desktop/images/15012025/07/34/image_15012025_07_34_16_10355.jpg', '/home/pi/Desktop/images/15012025/07/34/image_15012025_07_34_25_9360.jpg', '/home/pi/Desktop/images/15012025/07/34/image_15012025_07_34_35_10354.jpg', '/home/pi/Desktop/images/15012025/07/34/image_15012025_07_34_45_9351.jpg', '/home/pi/Desktop/images/15012025/07/34/image_15012025_07_34_55_10346.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/33/image_15012025_07_34_05_10366.jpg
/home/pi/Desktop/images/15012025/07/34/image_15012025_07_34_16_10355.jpg
/home/pi/Desktop/images/15012025/07/34/image_15012025_07_34_25_9360.jpg
/home/pi/Desktop/images/15012025/07/34/image_15012025_07_34_35_10354.jpg
/home/pi/Desktop/images/15012025/07/34/image_15012025_07_34_45_9351.jpg
/home/pi/Desktop/images/15012025/07/34/image_15012025_07_34_55_10346.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329227883","1329227867","1329227876","1329227890","1329227893","1329227880"],"photo_ids_order":["1329227867","1329227876","1329227880","1329227883","1329227890","1329227893"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3617c8fedf542d719e403abe8a2d1415.jpg","text":"TemporaryFile(/tmp/multipartBody5107114594771515553asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974963281,"filename":"image_15012025_07_34_35_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a90fb827b502eaa24ccd0835276aab7b.jpg","text":"TemporaryFile(/tmp/multipartBody4290623704916799777asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974963281,"filename":"image_15012025_07_34_05_10366.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d63079ee4185592d611f7e3190f2bd07.jpg","text":"TemporaryFile(/tmp/multipartBody6489519001834797477asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974963281,"filename":"image_15012025_07_34_16_10355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a88da9848d7c56433f111be2c447a57a.jpg","text":"TemporaryFile(/tmp/multipartBody6535110573848924884asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974963281,"filename":"image_15012025_07_34_45_9351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/84643c31b8ba71063b8709217508bdb0.jpg","text":"TemporaryFile(/tmp/multipartBody1607321397087541304asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974963281,"filename":"image_15012025_07_34_55_10346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3a7215f4412fd7e1dbd717a38f280654.jpg","text":"TemporaryFile(/tmp/multipartBody6888003594599940542asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736974963281,"filename":"image_15012025_07_34_25_9360.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329227880","file1":"1329227876","file0":"1329227867","file4":"1329227890","file5":"1329227893","file3":"1329227883"},"map_files_photo_id_array":[{"photo_id":"1329227893","filename":"file5"},{"photo_id":"1329227880","filename":"file2"},{"photo_id":"1329227890","filename":"file4"},{"photo_id":"1329227876","filename":"file1"},{"photo_id":"1329227867","filename":"file0"},{"photo_id":"1329227883","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329227883":["hashtag1","hashtag2"]},{"1329227867":["hashtag1","hashtag2"]},{"1329227876":["hashtag1","hashtag2"]},{"1329227890":["hashtag1","hashtag2"]},{"1329227893":["hashtag1","hashtag2"]},{"1329227880":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329227883, 1329227867, 1329227876, 1329227890, 1329227893, 1329227880)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.359418869018555 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 15 --only_old 0
2025-01-15 22:02:32.479330
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/34/image_15012025_07_35_05_10334.jpg', '/home/pi/Desktop/images/15012025/07/35/image_15012025_07_35_15_9498.jpg', '/home/pi/Desktop/images/15012025/07/35/image_15012025_07_35_25_10349.jpg', '/home/pi/Desktop/images/15012025/07/35/image_15012025_07_35_36_10343.jpg', '/home/pi/Desktop/images/15012025/07/35/image_15012025_07_35_45_9336.jpg', '/home/pi/Desktop/images/15012025/07/35/image_15012025_07_35_55_10352.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/34/image_15012025_07_35_05_10334.jpg
/home/pi/Desktop/images/15012025/07/35/image_15012025_07_35_15_9498.jpg
/home/pi/Desktop/images/15012025/07/35/image_15012025_07_35_25_10349.jpg
/home/pi/Desktop/images/15012025/07/35/image_15012025_07_35_36_10343.jpg
/home/pi/Desktop/images/15012025/07/35/image_15012025_07_35_45_9336.jpg
/home/pi/Desktop/images/15012025/07/35/image_15012025_07_35_55_10352.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329227907","1329227901","1329227921","1329227918","1329227920","1329227911"],"photo_ids_order":["1329227901","1329227907","1329227911","1329227918","1329227920","1329227921"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/db592d150891ee02e650395ddeac878e.jpg","text":"TemporaryFile(/tmp/multipartBody6433657839385866604asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975013497,"filename":"image_15012025_07_35_15_9498.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e67ef2ee05dfb771e7fe55bd2f33e7b1.jpg","text":"TemporaryFile(/tmp/multipartBody6175093744723141070asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975013497,"filename":"image_15012025_07_35_05_10334.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ad93f9897a8aa69c8eee2381719f4c83.jpg","text":"TemporaryFile(/tmp/multipartBody5035400769300602261asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975013497,"filename":"image_15012025_07_35_55_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/57d71866e5e9fbf8a14e5509d2e628ce.jpg","text":"TemporaryFile(/tmp/multipartBody5156632709444240326asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975013497,"filename":"image_15012025_07_35_36_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cf6f307bfac56ce2379e642cd44cc189.jpg","text":"TemporaryFile(/tmp/multipartBody3157896876100011654asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975013497,"filename":"image_15012025_07_35_45_9336.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/440775207d308c9d1c68a823d084767f.jpg","text":"TemporaryFile(/tmp/multipartBody8900764177627988462asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975013497,"filename":"image_15012025_07_35_25_10349.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329227911","file1":"1329227907","file0":"1329227901","file4":"1329227920","file5":"1329227921","file3":"1329227918"},"map_files_photo_id_array":[{"photo_id":"1329227921","filename":"file5"},{"photo_id":"1329227911","filename":"file2"},{"photo_id":"1329227920","filename":"file4"},{"photo_id":"1329227907","filename":"file1"},{"photo_id":"1329227901","filename":"file0"},{"photo_id":"1329227918","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329227907":["hashtag1","hashtag2"]},{"1329227901":["hashtag1","hashtag2"]},{"1329227921":["hashtag1","hashtag2"]},{"1329227918":["hashtag1","hashtag2"]},{"1329227920":["hashtag1","hashtag2"]},{"1329227911":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329227907, 1329227901, 1329227921, 1329227918, 1329227920, 1329227911)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.765310764312744 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 15 --only_old 0
2025-01-15 22:03:32.813660
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/35/image_15012025_07_36_06_10367.jpg', '/home/pi/Desktop/images/15012025/07/36/image_15012025_07_36_15_9338.jpg', '/home/pi/Desktop/images/15012025/07/36/image_15012025_07_36_25_10371.jpg', '/home/pi/Desktop/images/15012025/07/36/image_15012025_07_36_35_9374.jpg', '/home/pi/Desktop/images/15012025/07/36/image_15012025_07_36_45_10345.jpg', '/home/pi/Desktop/images/15012025/07/36/image_15012025_07_36_56_10343.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/35/image_15012025_07_36_06_10367.jpg
/home/pi/Desktop/images/15012025/07/36/image_15012025_07_36_15_9338.jpg
/home/pi/Desktop/images/15012025/07/36/image_15012025_07_36_25_10371.jpg
/home/pi/Desktop/images/15012025/07/36/image_15012025_07_36_35_9374.jpg
/home/pi/Desktop/images/15012025/07/36/image_15012025_07_36_45_10345.jpg
/home/pi/Desktop/images/15012025/07/36/image_15012025_07_36_56_10343.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329228342","1329228239","1329228134","1329227993","1329228571","1329228450"],"photo_ids_order":["1329227993","1329228134","1329228239","1329228342","1329228450","1329228571"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f1345ec5d6da39d2e1bd73429d7d32ea.jpg","text":"TemporaryFile(/tmp/multipartBody6248562641952702411asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975073828,"filename":"image_15012025_07_36_35_9374.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cd331cb8fb49853fe281d710b2e82e0d.jpg","text":"TemporaryFile(/tmp/multipartBody7924971072720801175asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975073828,"filename":"image_15012025_07_36_25_10371.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e50dbb455b5d852745bfca94b7687523.jpg","text":"TemporaryFile(/tmp/multipartBody4754077284667752787asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975073828,"filename":"image_15012025_07_36_15_9338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2917e282158d19d0396659593a018cb0.jpg","text":"TemporaryFile(/tmp/multipartBody4200735947599504832asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975073828,"filename":"image_15012025_07_36_06_10367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/84767227e9219d7a58449dd99c3a0838.jpg","text":"TemporaryFile(/tmp/multipartBody4761860309827997371asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975073828,"filename":"image_15012025_07_36_56_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9b84e2be54ec1eced1a6c6bac141e9b5.jpg","text":"TemporaryFile(/tmp/multipartBody8280968452399585441asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975073828,"filename":"image_15012025_07_36_45_10345.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329228239","file1":"1329228134","file0":"1329227993","file4":"1329228450","file5":"1329228571","file3":"1329228342"},"map_files_photo_id_array":[{"photo_id":"1329228571","filename":"file5"},{"photo_id":"1329228239","filename":"file2"},{"photo_id":"1329228450","filename":"file4"},{"photo_id":"1329228134","filename":"file1"},{"photo_id":"1329227993","filename":"file0"},{"photo_id":"1329228342","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329228342":["hashtag1","hashtag2"]},{"1329228239":["hashtag1","hashtag2"]},{"1329228134":["hashtag1","hashtag2"]},{"1329227993":["hashtag1","hashtag2"]},{"1329228571":["hashtag1","hashtag2"]},{"1329228450":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329228342, 1329228239, 1329228134, 1329227993, 1329228571, 1329228450)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.57721161842346 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 15 --only_old 0
2025-01-15 22:04:32.883573
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/36/image_15012025_07_37_05_9350.jpg', '/home/pi/Desktop/images/15012025/07/37/image_15012025_07_37_15_10373.jpg', '/home/pi/Desktop/images/15012025/07/37/image_15012025_07_37_26_10376.jpg', '/home/pi/Desktop/images/15012025/07/37/image_15012025_07_37_35_9516.jpg', '/home/pi/Desktop/images/15012025/07/37/image_15012025_07_37_45_10344.jpg', '/home/pi/Desktop/images/15012025/07/37/image_15012025_07_37_55_9346.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/36/image_15012025_07_37_05_9350.jpg
/home/pi/Desktop/images/15012025/07/37/image_15012025_07_37_15_10373.jpg
/home/pi/Desktop/images/15012025/07/37/image_15012025_07_37_26_10376.jpg
/home/pi/Desktop/images/15012025/07/37/image_15012025_07_37_35_9516.jpg
/home/pi/Desktop/images/15012025/07/37/image_15012025_07_37_45_10344.jpg
/home/pi/Desktop/images/15012025/07/37/image_15012025_07_37_55_9346.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6056654453277588 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
2025-01-15 22:04:42.813747
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/36/image_15012025_07_37_05_9350.jpg', '/home/pi/Desktop/images/15012025/07/37/image_15012025_07_37_15_10373.jpg', '/home/pi/Desktop/images/15012025/07/37/image_15012025_07_37_26_10376.jpg', '/home/pi/Desktop/images/15012025/07/37/image_15012025_07_37_35_9516.jpg', '/home/pi/Desktop/images/15012025/07/37/image_15012025_07_37_45_10344.jpg', '/home/pi/Desktop/images/15012025/07/37/image_15012025_07_37_55_9346.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/36/image_15012025_07_37_05_9350.jpg
/home/pi/Desktop/images/15012025/07/37/image_15012025_07_37_15_10373.jpg
/home/pi/Desktop/images/15012025/07/37/image_15012025_07_37_26_10376.jpg
/home/pi/Desktop/images/15012025/07/37/image_15012025_07_37_35_9516.jpg
/home/pi/Desktop/images/15012025/07/37/image_15012025_07_37_45_10344.jpg
/home/pi/Desktop/images/15012025/07/37/image_15012025_07_37_55_9346.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329229463","1329228890","1329229186","1329229411","1329229458","1329228675"],"photo_ids_order":["1329228675","1329228890","1329229186","1329229411","1329229458","1329229463"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0f4d9a964754f456f9ed5785db6e7f63.jpg","text":"TemporaryFile(/tmp/multipartBody8328134231297372562asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975143724,"filename":"image_15012025_07_37_55_9346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/96eb7bd830c3de463a4a9053b6351614.jpg","text":"TemporaryFile(/tmp/multipartBody7445389052879960178asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975143724,"filename":"image_15012025_07_37_15_10373.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/23d795b99aec820002a53f322a8eb0dd.jpg","text":"TemporaryFile(/tmp/multipartBody4933937864435621544asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975143724,"filename":"image_15012025_07_37_26_10376.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6c95f78e707d9e0ecd7e95ffd2ba6e02.jpg","text":"TemporaryFile(/tmp/multipartBody5478969484884028933asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975143724,"filename":"image_15012025_07_37_35_9516.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6b34169f572d30a00fac1947d8b62018.jpg","text":"TemporaryFile(/tmp/multipartBody726024946378780420asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975143724,"filename":"image_15012025_07_37_45_10344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/59914de1e2f5015c3aba036cbf5fe0f1.jpg","text":"TemporaryFile(/tmp/multipartBody914027230048508918asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975143724,"filename":"image_15012025_07_37_05_9350.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329229186","file1":"1329228890","file0":"1329228675","file4":"1329229458","file5":"1329229463","file3":"1329229411"},"map_files_photo_id_array":[{"photo_id":"1329229463","filename":"file5"},{"photo_id":"1329229186","filename":"file2"},{"photo_id":"1329229458","filename":"file4"},{"photo_id":"1329228890","filename":"file1"},{"photo_id":"1329228675","filename":"file0"},{"photo_id":"1329229411","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329229463":["hashtag1","hashtag2"]},{"1329228890":["hashtag1","hashtag2"]},{"1329229186":["hashtag1","hashtag2"]},{"1329229411":["hashtag1","hashtag2"]},{"1329229458":["hashtag1","hashtag2"]},{"1329228675":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329229463, 1329228890, 1329229186, 1329229411, 1329229458, 1329228675)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.8249831199646 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 15 --only_old 0
2025-01-15 22:05:33.244809
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/37/image_15012025_07_38_05_10419.jpg', '/home/pi/Desktop/images/15012025/07/38/image_15012025_07_38_16_10427.jpg', '/home/pi/Desktop/images/15012025/07/38/image_15012025_07_38_25_9363.jpg', '/home/pi/Desktop/images/15012025/07/38/image_15012025_07_38_35_10351.jpg', '/home/pi/Desktop/images/15012025/07/38/image_15012025_07_38_46_10351.jpg', '/home/pi/Desktop/images/15012025/07/38/image_15012025_07_38_55_9358.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/37/image_15012025_07_38_05_10419.jpg
/home/pi/Desktop/images/15012025/07/38/image_15012025_07_38_16_10427.jpg
/home/pi/Desktop/images/15012025/07/38/image_15012025_07_38_25_9363.jpg
/home/pi/Desktop/images/15012025/07/38/image_15012025_07_38_35_10351.jpg
/home/pi/Desktop/images/15012025/07/38/image_15012025_07_38_46_10351.jpg
/home/pi/Desktop/images/15012025/07/38/image_15012025_07_38_55_9358.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329229664","1329229744","1329229995","1329229971","1329229557","1329229908"],"photo_ids_order":["1329229557","1329229664","1329229744","1329229908","1329229971","1329229995"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/44d2a4b227cb81f7833b3447a978abf2.jpg","text":"TemporaryFile(/tmp/multipartBody2121159144860570840asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975194253,"filename":"image_15012025_07_38_16_10427.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4fe7b58553449754deeed649edc1da67.jpg","text":"TemporaryFile(/tmp/multipartBody8243913102544786185asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975194253,"filename":"image_15012025_07_38_25_9363.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7c053852fc18d7140b2ddc3110104f8b.jpg","text":"TemporaryFile(/tmp/multipartBody5345302814865640509asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975194253,"filename":"image_15012025_07_38_55_9358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9711735ddcd6136ec01dab8402c8a6ab.jpg","text":"TemporaryFile(/tmp/multipartBody5776990853945081199asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975194253,"filename":"image_15012025_07_38_46_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ee5a394b64a0a57fbf773a67febb85a3.jpg","text":"TemporaryFile(/tmp/multipartBody2652419415844121322asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975194253,"filename":"image_15012025_07_38_05_10419.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e2f7464fecdb1adc9892929fd8dc8fe1.jpg","text":"TemporaryFile(/tmp/multipartBody7394802833880655099asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975194253,"filename":"image_15012025_07_38_35_10351.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329229744","file1":"1329229664","file0":"1329229557","file4":"1329229971","file5":"1329229995","file3":"1329229908"},"map_files_photo_id_array":[{"photo_id":"1329229995","filename":"file5"},{"photo_id":"1329229744","filename":"file2"},{"photo_id":"1329229971","filename":"file4"},{"photo_id":"1329229664","filename":"file1"},{"photo_id":"1329229557","filename":"file0"},{"photo_id":"1329229908","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329229664":["hashtag1","hashtag2"]},{"1329229744":["hashtag1","hashtag2"]},{"1329229995":["hashtag1","hashtag2"]},{"1329229971":["hashtag1","hashtag2"]},{"1329229557":["hashtag1","hashtag2"]},{"1329229908":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329229664, 1329229744, 1329229995, 1329229971, 1329229557, 1329229908)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.191855907440186 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 15 --only_old 0
2025-01-15 22:06:32.374049
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/38/image_15012025_07_39_05_10375.jpg', '/home/pi/Desktop/images/15012025/07/39/image_15012025_07_39_15_9343.jpg', '/home/pi/Desktop/images/15012025/07/39/image_15012025_07_39_25_10456.jpg', '/home/pi/Desktop/images/15012025/07/39/image_15012025_07_39_45_9356.jpg', '/home/pi/Desktop/images/15012025/07/39/image_15012025_07_39_55_10448.jpg', '/home/pi/Desktop/images/15012025/07/41/image_15012025_07_41_25_9425.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/38/image_15012025_07_39_05_10375.jpg
/home/pi/Desktop/images/15012025/07/39/image_15012025_07_39_15_9343.jpg
/home/pi/Desktop/images/15012025/07/39/image_15012025_07_39_25_10456.jpg
/home/pi/Desktop/images/15012025/07/39/image_15012025_07_39_45_9356.jpg
/home/pi/Desktop/images/15012025/07/39/image_15012025_07_39_55_10448.jpg
/home/pi/Desktop/images/15012025/07/41/image_15012025_07_41_25_9425.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329230297","1329230270","1329230258","1329230293","1329230299","1329230277"],"photo_ids_order":["1329230258","1329230270","1329230277","1329230293","1329230297","1329230299"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bbe022e59e1c382416e504c13ba46200.jpg","text":"TemporaryFile(/tmp/multipartBody4593167997454937094asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975254123,"filename":"image_15012025_07_39_55_10448.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a4c12d341e54f1a90b9cbe2585fa0b45.jpg","text":"TemporaryFile(/tmp/multipartBody4375299447833904700asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975254123,"filename":"image_15012025_07_39_15_9343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6b2a72cdeb5d5a33e55cf381c977eca0.jpg","text":"TemporaryFile(/tmp/multipartBody5081224675115110079asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975254123,"filename":"image_15012025_07_39_05_10375.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5453d54c67080cfc3931dd7a29c16105.jpg","text":"TemporaryFile(/tmp/multipartBody4138053738251540523asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975254123,"filename":"image_15012025_07_39_45_9356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ecaf29a4be9abe37aa8dd787560e59ac.jpg","text":"TemporaryFile(/tmp/multipartBody6693359190674584794asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975254123,"filename":"image_15012025_07_41_25_9425.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/17c68d4dc189c5b98125bdcdbf932186.jpg","text":"TemporaryFile(/tmp/multipartBody5212214895144299230asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975254123,"filename":"image_15012025_07_39_25_10456.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329230277","file1":"1329230270","file0":"1329230258","file4":"1329230297","file5":"1329230299","file3":"1329230293"},"map_files_photo_id_array":[{"photo_id":"1329230299","filename":"file5"},{"photo_id":"1329230277","filename":"file2"},{"photo_id":"1329230297","filename":"file4"},{"photo_id":"1329230270","filename":"file1"},{"photo_id":"1329230258","filename":"file0"},{"photo_id":"1329230293","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329230297":["hashtag1","hashtag2"]},{"1329230270":["hashtag1","hashtag2"]},{"1329230258":["hashtag1","hashtag2"]},{"1329230293":["hashtag1","hashtag2"]},{"1329230299":["hashtag1","hashtag2"]},{"1329230277":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329230297, 1329230270, 1329230258, 1329230293, 1329230299, 1329230277)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.275628089904785 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 15 --only_old 0
2025-01-15 22:07:32.847230
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/41/image_15012025_07_41_36_10346.jpg', '/home/pi/Desktop/images/15012025/07/41/image_15012025_07_41_45_9453.jpg', '/home/pi/Desktop/images/15012025/07/41/image_15012025_07_41_55_10428.jpg', '/home/pi/Desktop/images/15012025/07/41/image_15012025_07_42_06_10346.jpg', '/home/pi/Desktop/images/15012025/07/42/image_15012025_07_42_35_9350.jpg', '/home/pi/Desktop/images/15012025/07/42/image_15012025_07_42_45_10376.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/41/image_15012025_07_41_36_10346.jpg
/home/pi/Desktop/images/15012025/07/41/image_15012025_07_41_45_9453.jpg
/home/pi/Desktop/images/15012025/07/41/image_15012025_07_41_55_10428.jpg
/home/pi/Desktop/images/15012025/07/41/image_15012025_07_42_06_10346.jpg
/home/pi/Desktop/images/15012025/07/42/image_15012025_07_42_35_9350.jpg
/home/pi/Desktop/images/15012025/07/42/image_15012025_07_42_45_10376.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329230378","1329230393","1329230387","1329230359","1329230391","1329230370"],"photo_ids_order":["1329230359","1329230370","1329230378","1329230387","1329230391","1329230393"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/de5ba723745efa2023610715652c6784.jpg","text":"TemporaryFile(/tmp/multipartBody3260185866971309524asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975313867,"filename":"image_15012025_07_41_55_10428.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2ff11813994fdedf9ff570639e889f51.jpg","text":"TemporaryFile(/tmp/multipartBody5936731497470395574asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975313867,"filename":"image_15012025_07_42_45_10376.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ba9601f0e31976f1289b64664277ff40.jpg","text":"TemporaryFile(/tmp/multipartBody22125938530743438asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975313867,"filename":"image_15012025_07_42_06_10346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0a0fc272cf0c42e866f8381278aa98ca.jpg","text":"TemporaryFile(/tmp/multipartBody5501557995032757289asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975313867,"filename":"image_15012025_07_41_36_10346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8f2a128707fd62294380724884048222.jpg","text":"TemporaryFile(/tmp/multipartBody7165068626564287572asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975313867,"filename":"image_15012025_07_42_35_9350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c4b9049447972fb104fc85a7bdf1e317.jpg","text":"TemporaryFile(/tmp/multipartBody6266399181736690087asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975313867,"filename":"image_15012025_07_41_45_9453.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329230378","file1":"1329230370","file0":"1329230359","file4":"1329230391","file5":"1329230393","file3":"1329230387"},"map_files_photo_id_array":[{"photo_id":"1329230393","filename":"file5"},{"photo_id":"1329230378","filename":"file2"},{"photo_id":"1329230391","filename":"file4"},{"photo_id":"1329230370","filename":"file1"},{"photo_id":"1329230359","filename":"file0"},{"photo_id":"1329230387","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329230378":["hashtag1","hashtag2"]},{"1329230393":["hashtag1","hashtag2"]},{"1329230387":["hashtag1","hashtag2"]},{"1329230359":["hashtag1","hashtag2"]},{"1329230391":["hashtag1","hashtag2"]},{"1329230370":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329230378, 1329230393, 1329230387, 1329230359, 1329230391, 1329230370)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.28964948654175 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 15 --only_old 0
2025-01-15 22:08:33.015758
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/42/image_15012025_07_42_56_10350.jpg', '/home/pi/Desktop/images/15012025/07/42/image_15012025_07_43_05_9461.jpg', '/home/pi/Desktop/images/15012025/07/43/image_15012025_07_43_15_10391.jpg', '/home/pi/Desktop/images/15012025/07/43/image_15012025_07_43_25_9713.jpg', '/home/pi/Desktop/images/15012025/07/43/image_15012025_07_43_35_10357.jpg', '/home/pi/Desktop/images/15012025/07/43/image_15012025_07_43_45_9412.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/42/image_15012025_07_42_56_10350.jpg
/home/pi/Desktop/images/15012025/07/42/image_15012025_07_43_05_9461.jpg
/home/pi/Desktop/images/15012025/07/43/image_15012025_07_43_15_10391.jpg
/home/pi/Desktop/images/15012025/07/43/image_15012025_07_43_25_9713.jpg
/home/pi/Desktop/images/15012025/07/43/image_15012025_07_43_35_10357.jpg
/home/pi/Desktop/images/15012025/07/43/image_15012025_07_43_45_9412.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329230465","1329230459","1329230450","1329230447","1329230420","1329230425"],"photo_ids_order":["1329230420","1329230425","1329230447","1329230450","1329230459","1329230465"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/61fb14289c552c3486cf16bc6ef404b1.jpg","text":"TemporaryFile(/tmp/multipartBody8308611516250589412asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975374007,"filename":"image_15012025_07_43_45_9412.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4482cb9c2f29322d3d1a7291754c9d24.jpg","text":"TemporaryFile(/tmp/multipartBody6121547083302194993asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975374007,"filename":"image_15012025_07_43_35_10357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4a23b9951c750779e440c61e023d789c.jpg","text":"TemporaryFile(/tmp/multipartBody9217970485941911601asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975374007,"filename":"image_15012025_07_43_25_9713.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a810d6d5ad80e62dcf81d95e5c35d2df.jpg","text":"TemporaryFile(/tmp/multipartBody6581701903401369338asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975374007,"filename":"image_15012025_07_43_15_10391.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7252c1032a66949d0e12d9288e995401.jpg","text":"TemporaryFile(/tmp/multipartBody5031057467598826709asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975374007,"filename":"image_15012025_07_42_56_10350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a24b9f0d8dcd3ce12d0150238cc8ab10.jpg","text":"TemporaryFile(/tmp/multipartBody866211837781990162asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975374007,"filename":"image_15012025_07_43_05_9461.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329230447","file1":"1329230425","file0":"1329230420","file4":"1329230459","file5":"1329230465","file3":"1329230450"},"map_files_photo_id_array":[{"photo_id":"1329230465","filename":"file5"},{"photo_id":"1329230447","filename":"file2"},{"photo_id":"1329230459","filename":"file4"},{"photo_id":"1329230425","filename":"file1"},{"photo_id":"1329230420","filename":"file0"},{"photo_id":"1329230450","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329230465":["hashtag1","hashtag2"]},{"1329230459":["hashtag1","hashtag2"]},{"1329230450":["hashtag1","hashtag2"]},{"1329230447":["hashtag1","hashtag2"]},{"1329230420":["hashtag1","hashtag2"]},{"1329230425":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329230465, 1329230459, 1329230450, 1329230447, 1329230420, 1329230425)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 48.835845947265625 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 15 --only_old 0
2025-01-15 22:09:33.167682
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/43/image_15012025_07_43_55_10357.jpg', '/home/pi/Desktop/images/15012025/07/43/image_15012025_07_44_06_10348.jpg', '/home/pi/Desktop/images/15012025/07/44/image_15012025_07_44_15_9394.jpg', '/home/pi/Desktop/images/15012025/07/44/image_15012025_07_44_25_10433.jpg', '/home/pi/Desktop/images/15012025/07/44/image_15012025_07_44_36_10371.jpg', '/home/pi/Desktop/images/15012025/07/44/image_15012025_07_44_56_10369.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/43/image_15012025_07_43_55_10357.jpg
/home/pi/Desktop/images/15012025/07/43/image_15012025_07_44_06_10348.jpg
/home/pi/Desktop/images/15012025/07/44/image_15012025_07_44_15_9394.jpg
/home/pi/Desktop/images/15012025/07/44/image_15012025_07_44_25_10433.jpg
/home/pi/Desktop/images/15012025/07/44/image_15012025_07_44_36_10371.jpg
/home/pi/Desktop/images/15012025/07/44/image_15012025_07_44_56_10369.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6281068325042725 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
2025-01-15 22:09:43.522518
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/43/image_15012025_07_43_55_10357.jpg', '/home/pi/Desktop/images/15012025/07/43/image_15012025_07_44_06_10348.jpg', '/home/pi/Desktop/images/15012025/07/44/image_15012025_07_44_15_9394.jpg', '/home/pi/Desktop/images/15012025/07/44/image_15012025_07_44_25_10433.jpg', '/home/pi/Desktop/images/15012025/07/44/image_15012025_07_44_36_10371.jpg', '/home/pi/Desktop/images/15012025/07/44/image_15012025_07_44_56_10369.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/43/image_15012025_07_43_55_10357.jpg
/home/pi/Desktop/images/15012025/07/43/image_15012025_07_44_06_10348.jpg
/home/pi/Desktop/images/15012025/07/44/image_15012025_07_44_15_9394.jpg
/home/pi/Desktop/images/15012025/07/44/image_15012025_07_44_25_10433.jpg
/home/pi/Desktop/images/15012025/07/44/image_15012025_07_44_36_10371.jpg
/home/pi/Desktop/images/15012025/07/44/image_15012025_07_44_56_10369.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329230517","1329230492","1329230501","1329230512","1329230503","1329230487"],"photo_ids_order":["1329230487","1329230492","1329230501","1329230503","1329230512","1329230517"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6eeaebe22032af1d65f3ed1ab0a74c24.jpg","text":"TemporaryFile(/tmp/multipartBody4257944208640572666asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975444441,"filename":"image_15012025_07_44_56_10369.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/777bbcf13528604ae07d1f19d6dc5e5c.jpg","text":"TemporaryFile(/tmp/multipartBody3290624270346537736asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975444441,"filename":"image_15012025_07_44_06_10348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1bb2fc5dc68be432f1931720982e42da.jpg","text":"TemporaryFile(/tmp/multipartBody8196834374690724331asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975444441,"filename":"image_15012025_07_44_15_9394.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/934ee8ebd2e799831849dbe17063ccf0.jpg","text":"TemporaryFile(/tmp/multipartBody684137655478498160asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975444441,"filename":"image_15012025_07_44_36_10371.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a8013590d594e638962dd7656201db5f.jpg","text":"TemporaryFile(/tmp/multipartBody3123453822733239631asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975444441,"filename":"image_15012025_07_44_25_10433.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ea6bcd8df5e3e76ffafb136beb9b21bb.jpg","text":"TemporaryFile(/tmp/multipartBody3323144428439766144asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975444441,"filename":"image_15012025_07_43_55_10357.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329230501","file1":"1329230492","file0":"1329230487","file4":"1329230512","file5":"1329230517","file3":"1329230503"},"map_files_photo_id_array":[{"photo_id":"1329230517","filename":"file5"},{"photo_id":"1329230501","filename":"file2"},{"photo_id":"1329230512","filename":"file4"},{"photo_id":"1329230492","filename":"file1"},{"photo_id":"1329230487","filename":"file0"},{"photo_id":"1329230503","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329230517":["hashtag1","hashtag2"]},{"1329230492":["hashtag1","hashtag2"]},{"1329230501":["hashtag1","hashtag2"]},{"1329230512":["hashtag1","hashtag2"]},{"1329230503":["hashtag1","hashtag2"]},{"1329230487":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329230517, 1329230492, 1329230501, 1329230512, 1329230503, 1329230487)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.15866684913635 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 15 --only_old 0
2025-01-15 22:10:32.473512
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/44/image_15012025_07_45_05_9420.jpg', '/home/pi/Desktop/images/15012025/07/45/image_15012025_07_45_15_10363.jpg', '/home/pi/Desktop/images/15012025/07/45/image_15012025_07_45_35_9359.jpg', '/home/pi/Desktop/images/15012025/07/45/image_15012025_07_45_45_10347.jpg', '/home/pi/Desktop/images/15012025/07/45/image_15012025_07_45_56_10341.jpg', '/home/pi/Desktop/images/15012025/07/45/image_15012025_07_46_05_9413.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/44/image_15012025_07_45_05_9420.jpg
/home/pi/Desktop/images/15012025/07/45/image_15012025_07_45_15_10363.jpg
/home/pi/Desktop/images/15012025/07/45/image_15012025_07_45_35_9359.jpg
/home/pi/Desktop/images/15012025/07/45/image_15012025_07_45_45_10347.jpg
/home/pi/Desktop/images/15012025/07/45/image_15012025_07_45_56_10341.jpg
/home/pi/Desktop/images/15012025/07/45/image_15012025_07_46_05_9413.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329230672","1329230666","1329230540","1329230734","1329230707","1329230580"],"photo_ids_order":["1329230540","1329230580","1329230666","1329230672","1329230707","1329230734"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d03610fe5586fc5d50fce65356720bc2.jpg","text":"TemporaryFile(/tmp/multipartBody5479844470984607397asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975493475,"filename":"image_15012025_07_45_45_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cd5863e1c2aa1570e6abe341891db18b.jpg","text":"TemporaryFile(/tmp/multipartBody3849497685686364647asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975493475,"filename":"image_15012025_07_45_35_9359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8985d479778201d40a2a4a93261e5206.jpg","text":"TemporaryFile(/tmp/multipartBody5729377922952482804asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975493475,"filename":"image_15012025_07_45_05_9420.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4bb78e90b8d5fc8ad897f7dd80bf7f3c.jpg","text":"TemporaryFile(/tmp/multipartBody6599242039616977374asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975493475,"filename":"image_15012025_07_46_05_9413.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d376146c181a2fc241df94c9b16c46bd.jpg","text":"TemporaryFile(/tmp/multipartBody5153390549570871847asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975493475,"filename":"image_15012025_07_45_56_10341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3f2e3d0c2efeb91d25dd7b2f5f4c14e1.jpg","text":"TemporaryFile(/tmp/multipartBody3265001669510762912asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975493475,"filename":"image_15012025_07_45_15_10363.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329230666","file1":"1329230580","file0":"1329230540","file4":"1329230707","file5":"1329230734","file3":"1329230672"},"map_files_photo_id_array":[{"photo_id":"1329230734","filename":"file5"},{"photo_id":"1329230666","filename":"file2"},{"photo_id":"1329230707","filename":"file4"},{"photo_id":"1329230580","filename":"file1"},{"photo_id":"1329230540","filename":"file0"},{"photo_id":"1329230672","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329230672":["hashtag1","hashtag2"]},{"1329230666":["hashtag1","hashtag2"]},{"1329230540":["hashtag1","hashtag2"]},{"1329230734":["hashtag1","hashtag2"]},{"1329230707":["hashtag1","hashtag2"]},{"1329230580":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329230672, 1329230666, 1329230540, 1329230734, 1329230707, 1329230580)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.21246886253357 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 15 --only_old 0
2025-01-15 22:11:32.643720
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/46/image_15012025_07_46_16_10367.jpg', '/home/pi/Desktop/images/15012025/07/46/image_15012025_07_46_25_9450.jpg', '/home/pi/Desktop/images/15012025/07/46/image_15012025_07_46_35_10351.jpg', '/home/pi/Desktop/images/15012025/07/46/image_15012025_07_46_46_10354.jpg', '/home/pi/Desktop/images/15012025/07/46/image_15012025_07_46_55_9362.jpg', '/home/pi/Desktop/images/15012025/07/46/image_15012025_07_47_05_10354.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/46/image_15012025_07_46_16_10367.jpg
/home/pi/Desktop/images/15012025/07/46/image_15012025_07_46_25_9450.jpg
/home/pi/Desktop/images/15012025/07/46/image_15012025_07_46_35_10351.jpg
/home/pi/Desktop/images/15012025/07/46/image_15012025_07_46_46_10354.jpg
/home/pi/Desktop/images/15012025/07/46/image_15012025_07_46_55_9362.jpg
/home/pi/Desktop/images/15012025/07/46/image_15012025_07_47_05_10354.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329230777","1329230771","1329230773","1329230782","1329230793","1329230775"],"photo_ids_order":["1329230771","1329230773","1329230775","1329230777","1329230782","1329230793"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8a6ee2177fa0f5a24cca2878e6675f4e.jpg","text":"TemporaryFile(/tmp/multipartBody6167128313325538138asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975553639,"filename":"image_15012025_07_46_46_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/02e3eb0881afdeda020826280dc64299.jpg","text":"TemporaryFile(/tmp/multipartBody4515963539718889053asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975553639,"filename":"image_15012025_07_46_16_10367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fb16be06de54c1b2c1251978902ad9dd.jpg","text":"TemporaryFile(/tmp/multipartBody8597119107135575584asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975553639,"filename":"image_15012025_07_46_25_9450.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/52091944ae34aeaba39a34d6a01ad87f.jpg","text":"TemporaryFile(/tmp/multipartBody4104686174760816633asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975553639,"filename":"image_15012025_07_46_55_9362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/87f9e798919b52dd740c8b03daf22bb3.jpg","text":"TemporaryFile(/tmp/multipartBody6037940281946349557asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975553639,"filename":"image_15012025_07_47_05_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d100ade5183b0bf218fe868f3984fec5.jpg","text":"TemporaryFile(/tmp/multipartBody4642354132192997244asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975553639,"filename":"image_15012025_07_46_35_10351.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329230775","file1":"1329230773","file0":"1329230771","file4":"1329230782","file5":"1329230793","file3":"1329230777"},"map_files_photo_id_array":[{"photo_id":"1329230793","filename":"file5"},{"photo_id":"1329230775","filename":"file2"},{"photo_id":"1329230782","filename":"file4"},{"photo_id":"1329230773","filename":"file1"},{"photo_id":"1329230771","filename":"file0"},{"photo_id":"1329230777","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329230777":["hashtag1","hashtag2"]},{"1329230771":["hashtag1","hashtag2"]},{"1329230773":["hashtag1","hashtag2"]},{"1329230782":["hashtag1","hashtag2"]},{"1329230793":["hashtag1","hashtag2"]},{"1329230775":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329230777, 1329230771, 1329230773, 1329230782, 1329230793, 1329230775)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.92631554603577 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 15 --only_old 0
2025-01-15 22:12:32.834986
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/47/image_15012025_07_47_15_9472.jpg', '/home/pi/Desktop/images/15012025/07/47/image_15012025_07_47_25_10388.jpg', '/home/pi/Desktop/images/15012025/07/47/image_15012025_07_47_36_10349.jpg', '/home/pi/Desktop/images/15012025/07/47/image_15012025_07_47_55_10353.jpg', '/home/pi/Desktop/images/15012025/07/47/image_15012025_07_48_05_9348.jpg', '/home/pi/Desktop/images/15012025/07/48/image_15012025_07_48_15_10399.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/47/image_15012025_07_47_15_9472.jpg
/home/pi/Desktop/images/15012025/07/47/image_15012025_07_47_25_10388.jpg
/home/pi/Desktop/images/15012025/07/47/image_15012025_07_47_36_10349.jpg
/home/pi/Desktop/images/15012025/07/47/image_15012025_07_47_55_10353.jpg
/home/pi/Desktop/images/15012025/07/47/image_15012025_07_48_05_9348.jpg
/home/pi/Desktop/images/15012025/07/48/image_15012025_07_48_15_10399.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.633493185043335 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
2025-01-15 22:12:42.761239
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/47/image_15012025_07_47_15_9472.jpg', '/home/pi/Desktop/images/15012025/07/47/image_15012025_07_47_25_10388.jpg', '/home/pi/Desktop/images/15012025/07/47/image_15012025_07_47_36_10349.jpg', '/home/pi/Desktop/images/15012025/07/47/image_15012025_07_47_55_10353.jpg', '/home/pi/Desktop/images/15012025/07/47/image_15012025_07_48_05_9348.jpg', '/home/pi/Desktop/images/15012025/07/48/image_15012025_07_48_15_10399.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/47/image_15012025_07_47_15_9472.jpg
/home/pi/Desktop/images/15012025/07/47/image_15012025_07_47_25_10388.jpg
/home/pi/Desktop/images/15012025/07/47/image_15012025_07_47_36_10349.jpg
/home/pi/Desktop/images/15012025/07/47/image_15012025_07_47_55_10353.jpg
/home/pi/Desktop/images/15012025/07/47/image_15012025_07_48_05_9348.jpg
/home/pi/Desktop/images/15012025/07/48/image_15012025_07_48_15_10399.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329230823","1329230843","1329230819","1329230833","1329230815","1329230826"],"photo_ids_order":["1329230815","1329230819","1329230823","1329230826","1329230833","1329230843"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/66ba5f1ada12d524b6e15bcb91d34932.jpg","text":"TemporaryFile(/tmp/multipartBody3639750396984338803asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975623695,"filename":"image_15012025_07_47_36_10349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8148745c6346a8f0810e15f4b893cd8b.jpg","text":"TemporaryFile(/tmp/multipartBody7771785819930505885asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975623695,"filename":"image_15012025_07_48_15_10399.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a6624d4adfd9c8e5279adb681cb82bc6.jpg","text":"TemporaryFile(/tmp/multipartBody6187310295445718845asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975623695,"filename":"image_15012025_07_47_25_10388.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c02bf1c9d62af0943c69c58c36b23286.jpg","text":"TemporaryFile(/tmp/multipartBody5286614940106951104asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975623695,"filename":"image_15012025_07_48_05_9348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/585a180694d151373701e92d9b693f91.jpg","text":"TemporaryFile(/tmp/multipartBody3374826337279540545asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975623695,"filename":"image_15012025_07_47_15_9472.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f6525f8e0a253ee6f00bd7c55b965f6d.jpg","text":"TemporaryFile(/tmp/multipartBody89985389578347835asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975623695,"filename":"image_15012025_07_47_55_10353.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329230823","file1":"1329230819","file0":"1329230815","file4":"1329230833","file5":"1329230843","file3":"1329230826"},"map_files_photo_id_array":[{"photo_id":"1329230843","filename":"file5"},{"photo_id":"1329230823","filename":"file2"},{"photo_id":"1329230833","filename":"file4"},{"photo_id":"1329230819","filename":"file1"},{"photo_id":"1329230815","filename":"file0"},{"photo_id":"1329230826","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329230823":["hashtag1","hashtag2"]},{"1329230843":["hashtag1","hashtag2"]},{"1329230819":["hashtag1","hashtag2"]},{"1329230833":["hashtag1","hashtag2"]},{"1329230815":["hashtag1","hashtag2"]},{"1329230826":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329230823, 1329230843, 1329230819, 1329230833, 1329230815, 1329230826)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.47725009918213 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 15 --only_old 0
2025-01-15 22:13:32.963956
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/48/image_15012025_07_48_26_10365.jpg', '/home/pi/Desktop/images/15012025/07/48/image_15012025_07_48_35_9413.jpg', '/home/pi/Desktop/images/15012025/07/48/image_15012025_07_48_45_10378.jpg', '/home/pi/Desktop/images/15012025/07/48/image_15012025_07_48_56_10363.jpg', '/home/pi/Desktop/images/15012025/07/48/image_15012025_07_49_05_9425.jpg', '/home/pi/Desktop/images/15012025/07/49/image_15012025_07_49_16_10424.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/48/image_15012025_07_48_26_10365.jpg
/home/pi/Desktop/images/15012025/07/48/image_15012025_07_48_35_9413.jpg
/home/pi/Desktop/images/15012025/07/48/image_15012025_07_48_45_10378.jpg
/home/pi/Desktop/images/15012025/07/48/image_15012025_07_48_56_10363.jpg
/home/pi/Desktop/images/15012025/07/48/image_15012025_07_49_05_9425.jpg
/home/pi/Desktop/images/15012025/07/49/image_15012025_07_49_16_10424.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329230903","1329230906","1329230909","1329230900","1329230911","1329230898"],"photo_ids_order":["1329230898","1329230900","1329230903","1329230906","1329230909","1329230911"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d8ab6ae33eebc60634c03091af3c2070.jpg","text":"TemporaryFile(/tmp/multipartBody7373257309474875992asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975673984,"filename":"image_15012025_07_48_45_10378.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4e7c075407415316104c591039dee88e.jpg","text":"TemporaryFile(/tmp/multipartBody8100695846803863456asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975673984,"filename":"image_15012025_07_48_56_10363.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b390f35709fc09be6a703a4f52d07586.jpg","text":"TemporaryFile(/tmp/multipartBody4592077275051678745asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975673984,"filename":"image_15012025_07_49_05_9425.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0cb6e41c529b48de7300895a99039368.jpg","text":"TemporaryFile(/tmp/multipartBody4363294709078105884asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975673984,"filename":"image_15012025_07_48_35_9413.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/65138d11fbdb736676bd46171a946074.jpg","text":"TemporaryFile(/tmp/multipartBody3677854394620575503asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975673984,"filename":"image_15012025_07_49_16_10424.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/22310ee8aa25e976b94040a1c05be974.jpg","text":"TemporaryFile(/tmp/multipartBody7894003854269189481asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975673984,"filename":"image_15012025_07_48_26_10365.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329230903","file1":"1329230900","file0":"1329230898","file4":"1329230909","file5":"1329230911","file3":"1329230906"},"map_files_photo_id_array":[{"photo_id":"1329230911","filename":"file5"},{"photo_id":"1329230903","filename":"file2"},{"photo_id":"1329230909","filename":"file4"},{"photo_id":"1329230900","filename":"file1"},{"photo_id":"1329230898","filename":"file0"},{"photo_id":"1329230906","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329230903":["hashtag1","hashtag2"]},{"1329230906":["hashtag1","hashtag2"]},{"1329230909":["hashtag1","hashtag2"]},{"1329230900":["hashtag1","hashtag2"]},{"1329230911":["hashtag1","hashtag2"]},{"1329230898":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329230903, 1329230906, 1329230909, 1329230900, 1329230911, 1329230898)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.86099982261658 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 15 --only_old 0
2025-01-15 22:14:33.077697
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/49/image_15012025_07_49_25_9425.jpg', '/home/pi/Desktop/images/15012025/07/49/image_15012025_07_49_35_10391.jpg', '/home/pi/Desktop/images/15012025/07/49/image_15012025_07_49_46_10337.jpg', '/home/pi/Desktop/images/15012025/07/49/image_15012025_07_49_55_9351.jpg', '/home/pi/Desktop/images/15012025/07/49/image_15012025_07_50_05_10377.jpg', '/home/pi/Desktop/images/15012025/07/50/image_15012025_07_50_15_9467.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/49/image_15012025_07_49_25_9425.jpg
/home/pi/Desktop/images/15012025/07/49/image_15012025_07_49_35_10391.jpg
/home/pi/Desktop/images/15012025/07/49/image_15012025_07_49_46_10337.jpg
/home/pi/Desktop/images/15012025/07/49/image_15012025_07_49_55_9351.jpg
/home/pi/Desktop/images/15012025/07/49/image_15012025_07_50_05_10377.jpg
/home/pi/Desktop/images/15012025/07/50/image_15012025_07_50_15_9467.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329230942","1329230930","1329230933","1329230926","1329230941","1329230943"],"photo_ids_order":["1329230926","1329230930","1329230933","1329230941","1329230942","1329230943"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fcb61ec1a2437ccc1ce5ba7de9d64b12.jpg","text":"TemporaryFile(/tmp/multipartBody3670686314585625617asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975734097,"filename":"image_15012025_07_50_05_10377.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bb3c6b6ed5cbbbd6a61b5ead8a78bd7d.jpg","text":"TemporaryFile(/tmp/multipartBody5538205117490196908asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975734097,"filename":"image_15012025_07_49_35_10391.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1a8d80e1a4c344277bc7c62176d83b08.jpg","text":"TemporaryFile(/tmp/multipartBody6877839597114417687asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975734097,"filename":"image_15012025_07_49_46_10337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1c0e45b21f8bb24aff4a70b2a80ac40f.jpg","text":"TemporaryFile(/tmp/multipartBody6529731271920443874asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975734097,"filename":"image_15012025_07_49_25_9425.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/88221a8604d6a76ae6acc5519d29de1b.jpg","text":"TemporaryFile(/tmp/multipartBody7384429880302759704asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975734097,"filename":"image_15012025_07_49_55_9351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6577c16d175d76587b69a15962b727b2.jpg","text":"TemporaryFile(/tmp/multipartBody6085334650221797011asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975734097,"filename":"image_15012025_07_50_15_9467.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329230933","file1":"1329230930","file0":"1329230926","file4":"1329230942","file5":"1329230943","file3":"1329230941"},"map_files_photo_id_array":[{"photo_id":"1329230943","filename":"file5"},{"photo_id":"1329230933","filename":"file2"},{"photo_id":"1329230942","filename":"file4"},{"photo_id":"1329230930","filename":"file1"},{"photo_id":"1329230926","filename":"file0"},{"photo_id":"1329230941","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329230942":["hashtag1","hashtag2"]},{"1329230930":["hashtag1","hashtag2"]},{"1329230933":["hashtag1","hashtag2"]},{"1329230926":["hashtag1","hashtag2"]},{"1329230941":["hashtag1","hashtag2"]},{"1329230943":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329230942, 1329230930, 1329230933, 1329230926, 1329230941, 1329230943)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.675535440444946 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 15 --only_old 0
2025-01-15 22:15:32.384450
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/50/image_15012025_07_50_25_10363.jpg', '/home/pi/Desktop/images/15012025/07/50/image_15012025_07_50_36_10364.jpg', '/home/pi/Desktop/images/15012025/07/50/image_15012025_07_50_45_9392.jpg', '/home/pi/Desktop/images/15012025/07/50/image_15012025_07_50_55_10376.jpg', '/home/pi/Desktop/images/15012025/07/50/image_15012025_07_51_06_10350.jpg', '/home/pi/Desktop/images/15012025/07/51/image_15012025_07_51_15_9435.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/50/image_15012025_07_50_25_10363.jpg
/home/pi/Desktop/images/15012025/07/50/image_15012025_07_50_36_10364.jpg
/home/pi/Desktop/images/15012025/07/50/image_15012025_07_50_45_9392.jpg
/home/pi/Desktop/images/15012025/07/50/image_15012025_07_50_55_10376.jpg
/home/pi/Desktop/images/15012025/07/50/image_15012025_07_51_06_10350.jpg
/home/pi/Desktop/images/15012025/07/51/image_15012025_07_51_15_9435.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329230987","1329230963","1329231040","1329230956","1329230970","1329230958"],"photo_ids_order":["1329230956","1329230958","1329230963","1329230970","1329230987","1329231040"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b6f0ef1dbb3e7ae305ecf1829c9dae1c.jpg","text":"TemporaryFile(/tmp/multipartBody7965056507546562757asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975793387,"filename":"image_15012025_07_51_06_10350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/982ec784fec1cbadc52d7c17da11cb35.jpg","text":"TemporaryFile(/tmp/multipartBody7709682826492388603asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975793387,"filename":"image_15012025_07_50_45_9392.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/794ac0ced7ff2dd75f199b302d9313b6.jpg","text":"TemporaryFile(/tmp/multipartBody3387542638271210117asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975793387,"filename":"image_15012025_07_51_15_9435.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1fee31ee34fabefad3642394828fd509.jpg","text":"TemporaryFile(/tmp/multipartBody295650641025721963asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975793387,"filename":"image_15012025_07_50_25_10363.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0e8e97f796c6b026c51e7e3d511641d9.jpg","text":"TemporaryFile(/tmp/multipartBody3999480033229193633asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975793387,"filename":"image_15012025_07_50_55_10376.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/20b6bdd03977f0d95c7524d0d5e04010.jpg","text":"TemporaryFile(/tmp/multipartBody626763359081822964asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975793387,"filename":"image_15012025_07_50_36_10364.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329230963","file1":"1329230958","file0":"1329230956","file4":"1329230987","file5":"1329231040","file3":"1329230970"},"map_files_photo_id_array":[{"photo_id":"1329231040","filename":"file5"},{"photo_id":"1329230963","filename":"file2"},{"photo_id":"1329230987","filename":"file4"},{"photo_id":"1329230958","filename":"file1"},{"photo_id":"1329230956","filename":"file0"},{"photo_id":"1329230970","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329230987":["hashtag1","hashtag2"]},{"1329230963":["hashtag1","hashtag2"]},{"1329231040":["hashtag1","hashtag2"]},{"1329230956":["hashtag1","hashtag2"]},{"1329230970":["hashtag1","hashtag2"]},{"1329230958":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329230987, 1329230963, 1329231040, 1329230956, 1329230970, 1329230958)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.409165143966675 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 15 --only_old 0
2025-01-15 22:16:32.736649
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/51/image_15012025_07_51_26_10390.jpg', '/home/pi/Desktop/images/15012025/07/51/image_15012025_07_51_35_9394.jpg', '/home/pi/Desktop/images/15012025/07/51/image_15012025_07_51_45_10355.jpg', '/home/pi/Desktop/images/15012025/07/51/image_15012025_07_51_56_10371.jpg', '/home/pi/Desktop/images/15012025/07/51/image_15012025_07_52_05_9372.jpg', '/home/pi/Desktop/images/15012025/07/52/image_15012025_07_52_15_10342.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/51/image_15012025_07_51_26_10390.jpg
/home/pi/Desktop/images/15012025/07/51/image_15012025_07_51_35_9394.jpg
/home/pi/Desktop/images/15012025/07/51/image_15012025_07_51_45_10355.jpg
/home/pi/Desktop/images/15012025/07/51/image_15012025_07_51_56_10371.jpg
/home/pi/Desktop/images/15012025/07/51/image_15012025_07_52_05_9372.jpg
/home/pi/Desktop/images/15012025/07/52/image_15012025_07_52_15_10342.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.606748104095459 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
2025-01-15 22:16:42.736914
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/51/image_15012025_07_51_26_10390.jpg', '/home/pi/Desktop/images/15012025/07/51/image_15012025_07_51_35_9394.jpg', '/home/pi/Desktop/images/15012025/07/51/image_15012025_07_51_45_10355.jpg', '/home/pi/Desktop/images/15012025/07/51/image_15012025_07_51_56_10371.jpg', '/home/pi/Desktop/images/15012025/07/51/image_15012025_07_52_05_9372.jpg', '/home/pi/Desktop/images/15012025/07/52/image_15012025_07_52_15_10342.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/51/image_15012025_07_51_26_10390.jpg
/home/pi/Desktop/images/15012025/07/51/image_15012025_07_51_35_9394.jpg
/home/pi/Desktop/images/15012025/07/51/image_15012025_07_51_45_10355.jpg
/home/pi/Desktop/images/15012025/07/51/image_15012025_07_51_56_10371.jpg
/home/pi/Desktop/images/15012025/07/51/image_15012025_07_52_05_9372.jpg
/home/pi/Desktop/images/15012025/07/52/image_15012025_07_52_15_10342.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329231454","1329231448","1329231376","1329231445","1329231411","1329231380"],"photo_ids_order":["1329231376","1329231380","1329231411","1329231445","1329231448","1329231454"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d50d7ac9e9b7f946bee56c657280ee95.jpg","text":"TemporaryFile(/tmp/multipartBody8797500128716530912asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975863682,"filename":"image_15012025_07_52_15_10342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a2df82a280ec3d4f8911cba59c557557.jpg","text":"TemporaryFile(/tmp/multipartBody1207291523284088245asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975863682,"filename":"image_15012025_07_52_05_9372.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/764bd80c95c35dbc00beac10885ca320.jpg","text":"TemporaryFile(/tmp/multipartBody815101557502606003asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975863682,"filename":"image_15012025_07_51_26_10390.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a0b313bc6ef2191cfb0148479be36291.jpg","text":"TemporaryFile(/tmp/multipartBody1441256636994512459asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975863682,"filename":"image_15012025_07_51_56_10371.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dfa7fa7d84f94ca4878c64a59e982a85.jpg","text":"TemporaryFile(/tmp/multipartBody1705007932018335563asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975863682,"filename":"image_15012025_07_51_45_10355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b79c841e2cf3ac6cc72c703a37d025fb.jpg","text":"TemporaryFile(/tmp/multipartBody4656625718642644596asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975863682,"filename":"image_15012025_07_51_35_9394.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329231411","file1":"1329231380","file0":"1329231376","file4":"1329231448","file5":"1329231454","file3":"1329231445"},"map_files_photo_id_array":[{"photo_id":"1329231454","filename":"file5"},{"photo_id":"1329231411","filename":"file2"},{"photo_id":"1329231448","filename":"file4"},{"photo_id":"1329231380","filename":"file1"},{"photo_id":"1329231376","filename":"file0"},{"photo_id":"1329231445","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329231454":["hashtag1","hashtag2"]},{"1329231448":["hashtag1","hashtag2"]},{"1329231376":["hashtag1","hashtag2"]},{"1329231445":["hashtag1","hashtag2"]},{"1329231411":["hashtag1","hashtag2"]},{"1329231380":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329231454, 1329231448, 1329231376, 1329231445, 1329231411, 1329231380)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.256505727767944 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 15 --only_old 0
2025-01-15 22:17:32.934900
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/52/image_15012025_07_52_25_9347.jpg', '/home/pi/Desktop/images/15012025/07/52/image_15012025_07_52_36_10962.jpg', '/home/pi/Desktop/images/15012025/07/52/image_15012025_07_52_45_9365.jpg', '/home/pi/Desktop/images/15012025/07/52/image_15012025_07_52_55_10346.jpg', '/home/pi/Desktop/images/15012025/07/52/image_15012025_07_53_05_9439.jpg', '/home/pi/Desktop/images/15012025/07/53/image_15012025_07_53_15_10411.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/52/image_15012025_07_52_25_9347.jpg
/home/pi/Desktop/images/15012025/07/52/image_15012025_07_52_36_10962.jpg
/home/pi/Desktop/images/15012025/07/52/image_15012025_07_52_45_9365.jpg
/home/pi/Desktop/images/15012025/07/52/image_15012025_07_52_55_10346.jpg
/home/pi/Desktop/images/15012025/07/52/image_15012025_07_53_05_9439.jpg
/home/pi/Desktop/images/15012025/07/53/image_15012025_07_53_15_10411.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329231497","1329231485","1329231503","1329231466","1329231468","1329231501"],"photo_ids_order":["1329231466","1329231468","1329231485","1329231497","1329231501","1329231503"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/746e002a3b9d03e27ac297b48208fbb9.jpg","text":"TemporaryFile(/tmp/multipartBody4087896437943485697asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975913927,"filename":"image_15012025_07_52_55_10346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9b6fb92f63ff21fb1945c46d4f47c610.jpg","text":"TemporaryFile(/tmp/multipartBody4574447552346863644asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975913927,"filename":"image_15012025_07_52_45_9365.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1a483f6efd2e3d69c47a0c30df7b2c6a.jpg","text":"TemporaryFile(/tmp/multipartBody3455009751832098683asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975913927,"filename":"image_15012025_07_53_15_10411.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/715b1cf00b38d3d1874e29d0f7f9d308.jpg","text":"TemporaryFile(/tmp/multipartBody8995815123990402586asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975913927,"filename":"image_15012025_07_52_25_9347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/56108d8ff4b15f95b2badcd0212ec52a.jpg","text":"TemporaryFile(/tmp/multipartBody4383895850735890051asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975913927,"filename":"image_15012025_07_52_36_10962.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/773ad33720f1d07c66c5c7ae52ad753f.jpg","text":"TemporaryFile(/tmp/multipartBody322882948283628138asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975913927,"filename":"image_15012025_07_53_05_9439.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329231485","file1":"1329231468","file0":"1329231466","file4":"1329231501","file5":"1329231503","file3":"1329231497"},"map_files_photo_id_array":[{"photo_id":"1329231503","filename":"file5"},{"photo_id":"1329231485","filename":"file2"},{"photo_id":"1329231501","filename":"file4"},{"photo_id":"1329231468","filename":"file1"},{"photo_id":"1329231466","filename":"file0"},{"photo_id":"1329231497","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329231497":["hashtag1","hashtag2"]},{"1329231485":["hashtag1","hashtag2"]},{"1329231503":["hashtag1","hashtag2"]},{"1329231466":["hashtag1","hashtag2"]},{"1329231468":["hashtag1","hashtag2"]},{"1329231501":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329231497, 1329231485, 1329231503, 1329231466, 1329231468, 1329231501)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.04686212539673 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 15 --only_old 0
2025-01-15 22:18:33.142998
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/53/image_15012025_07_53_26_10369.jpg', '/home/pi/Desktop/images/15012025/07/53/image_15012025_07_53_35_9329.jpg', '/home/pi/Desktop/images/15012025/07/53/image_15012025_07_53_45_10336.jpg', '/home/pi/Desktop/images/15012025/07/53/image_15012025_07_53_55_9464.jpg', '/home/pi/Desktop/images/15012025/07/53/image_15012025_07_54_05_10340.jpg', '/home/pi/Desktop/images/15012025/07/54/image_15012025_07_54_16_10337.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/53/image_15012025_07_53_26_10369.jpg
/home/pi/Desktop/images/15012025/07/53/image_15012025_07_53_35_9329.jpg
/home/pi/Desktop/images/15012025/07/53/image_15012025_07_53_45_10336.jpg
/home/pi/Desktop/images/15012025/07/53/image_15012025_07_53_55_9464.jpg
/home/pi/Desktop/images/15012025/07/53/image_15012025_07_54_05_10340.jpg
/home/pi/Desktop/images/15012025/07/54/image_15012025_07_54_16_10337.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329231581","1329231569","1329231583","1329231565","1329231582","1329231576"],"photo_ids_order":["1329231565","1329231569","1329231576","1329231581","1329231582","1329231583"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/da1ba10dbdeccfcc5462541816dceaea.jpg","text":"TemporaryFile(/tmp/multipartBody5278239189541912498asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975974166,"filename":"image_15012025_07_53_55_9464.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4fa87d2935f1f985339977468a69baf2.jpg","text":"TemporaryFile(/tmp/multipartBody1395685230844069940asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975974166,"filename":"image_15012025_07_53_35_9329.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7a2b5025a033d7f02121765310b76281.jpg","text":"TemporaryFile(/tmp/multipartBody1577199831160262836asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975974166,"filename":"image_15012025_07_54_16_10337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fa90c3564fb070e2d1ac036df68081aa.jpg","text":"TemporaryFile(/tmp/multipartBody6143980912900135538asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975974166,"filename":"image_15012025_07_53_26_10369.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/94925c6d3b18fa0db2d366fd2435674c.jpg","text":"TemporaryFile(/tmp/multipartBody2565680516614449106asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975974166,"filename":"image_15012025_07_54_05_10340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bc116b9afe014894534fb4be295b6b42.jpg","text":"TemporaryFile(/tmp/multipartBody2172043897909271631asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736975974166,"filename":"image_15012025_07_53_45_10336.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329231576","file1":"1329231569","file0":"1329231565","file4":"1329231582","file5":"1329231583","file3":"1329231581"},"map_files_photo_id_array":[{"photo_id":"1329231583","filename":"file5"},{"photo_id":"1329231576","filename":"file2"},{"photo_id":"1329231582","filename":"file4"},{"photo_id":"1329231569","filename":"file1"},{"photo_id":"1329231565","filename":"file0"},{"photo_id":"1329231581","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329231581":["hashtag1","hashtag2"]},{"1329231569":["hashtag1","hashtag2"]},{"1329231583":["hashtag1","hashtag2"]},{"1329231565":["hashtag1","hashtag2"]},{"1329231582":["hashtag1","hashtag2"]},{"1329231576":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329231581, 1329231569, 1329231583, 1329231565, 1329231582, 1329231576)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.32011699676514 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 15 --only_old 0
2025-01-15 22:19:32.383388
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/54/image_15012025_07_54_25_9366.jpg', '/home/pi/Desktop/images/15012025/07/54/image_15012025_07_54_35_10356.jpg', '/home/pi/Desktop/images/15012025/07/54/image_15012025_07_54_46_10363.jpg', '/home/pi/Desktop/images/15012025/07/54/image_15012025_07_54_55_9421.jpg', '/home/pi/Desktop/images/15012025/07/54/image_15012025_07_55_05_10361.jpg', '/home/pi/Desktop/images/15012025/07/55/image_15012025_07_55_16_10356.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/54/image_15012025_07_54_25_9366.jpg
/home/pi/Desktop/images/15012025/07/54/image_15012025_07_54_35_10356.jpg
/home/pi/Desktop/images/15012025/07/54/image_15012025_07_54_46_10363.jpg
/home/pi/Desktop/images/15012025/07/54/image_15012025_07_54_55_9421.jpg
/home/pi/Desktop/images/15012025/07/54/image_15012025_07_55_05_10361.jpg
/home/pi/Desktop/images/15012025/07/55/image_15012025_07_55_16_10356.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329231616","1329231597","1329231606","1329231600","1329231618","1329231603"],"photo_ids_order":["1329231597","1329231600","1329231603","1329231606","1329231616","1329231618"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5ba688f320e0ec86128f7361cacf29ab.jpg","text":"TemporaryFile(/tmp/multipartBody8304041627612969562asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976033473,"filename":"image_15012025_07_55_05_10361.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fb89aa638bfad4cce5aeffbfec8fb9ab.jpg","text":"TemporaryFile(/tmp/multipartBody4989461543077615286asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976033473,"filename":"image_15012025_07_54_25_9366.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7322924e8af394c1b111f4e35f44067f.jpg","text":"TemporaryFile(/tmp/multipartBody6996559623856865913asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976033473,"filename":"image_15012025_07_54_55_9421.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/82de8b1a8a8e74244a11c5ff87a56df0.jpg","text":"TemporaryFile(/tmp/multipartBody7471245996764935420asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976033473,"filename":"image_15012025_07_54_35_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5439057dd4ba27d41395ef92bd1085aa.jpg","text":"TemporaryFile(/tmp/multipartBody7446606731796465381asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976033473,"filename":"image_15012025_07_55_16_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d64c6b873ea96c90905867a6f51fc6cb.jpg","text":"TemporaryFile(/tmp/multipartBody6666140566707604477asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976033473,"filename":"image_15012025_07_54_46_10363.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329231603","file1":"1329231600","file0":"1329231597","file4":"1329231616","file5":"1329231618","file3":"1329231606"},"map_files_photo_id_array":[{"photo_id":"1329231618","filename":"file5"},{"photo_id":"1329231603","filename":"file2"},{"photo_id":"1329231616","filename":"file4"},{"photo_id":"1329231600","filename":"file1"},{"photo_id":"1329231597","filename":"file0"},{"photo_id":"1329231606","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329231616":["hashtag1","hashtag2"]},{"1329231597":["hashtag1","hashtag2"]},{"1329231606":["hashtag1","hashtag2"]},{"1329231600":["hashtag1","hashtag2"]},{"1329231618":["hashtag1","hashtag2"]},{"1329231603":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329231616, 1329231597, 1329231606, 1329231600, 1329231618, 1329231603)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.128283977508545 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 15 --only_old 0
2025-01-15 22:20:32.571145
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/55/image_15012025_07_55_25_9365.jpg', '/home/pi/Desktop/images/15012025/07/55/image_15012025_07_55_35_10333.jpg', '/home/pi/Desktop/images/15012025/07/55/image_15012025_07_55_46_10361.jpg', '/home/pi/Desktop/images/15012025/07/55/image_15012025_07_55_55_9346.jpg', '/home/pi/Desktop/images/15012025/07/55/image_15012025_07_56_05_10332.jpg', '/home/pi/Desktop/images/15012025/07/56/image_15012025_07_56_15_9351.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/55/image_15012025_07_55_25_9365.jpg
/home/pi/Desktop/images/15012025/07/55/image_15012025_07_55_35_10333.jpg
/home/pi/Desktop/images/15012025/07/55/image_15012025_07_55_46_10361.jpg
/home/pi/Desktop/images/15012025/07/55/image_15012025_07_55_55_9346.jpg
/home/pi/Desktop/images/15012025/07/55/image_15012025_07_56_05_10332.jpg
/home/pi/Desktop/images/15012025/07/56/image_15012025_07_56_15_9351.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329231689","1329231737","1329231685","1329231669","1329231837","1329231822"],"photo_ids_order":["1329231669","1329231685","1329231689","1329231737","1329231822","1329231837"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/07fd4740dec84a070205eb4a8a078475.jpg","text":"TemporaryFile(/tmp/multipartBody1450164739781805289asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976093607,"filename":"image_15012025_07_55_46_10361.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fa8367f06d5ca155b7274bfe775c3d43.jpg","text":"TemporaryFile(/tmp/multipartBody5324232302725194544asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976093607,"filename":"image_15012025_07_55_55_9346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/179b409b8d089265dcf72aecae88856c.jpg","text":"TemporaryFile(/tmp/multipartBody7270403156844182205asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976093607,"filename":"image_15012025_07_55_35_10333.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/692c2476e3d2627ac2977bd3678b8796.jpg","text":"TemporaryFile(/tmp/multipartBody7680638900477500843asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976093607,"filename":"image_15012025_07_55_25_9365.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4345e24ff3d6953a40e4f58d74b8e8ba.jpg","text":"TemporaryFile(/tmp/multipartBody3410399929565734794asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976093607,"filename":"image_15012025_07_56_15_9351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/13d12eee3a507d32d8efec3a6d32a3e4.jpg","text":"TemporaryFile(/tmp/multipartBody4066608413385300425asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976093607,"filename":"image_15012025_07_56_05_10332.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329231689","file1":"1329231685","file0":"1329231669","file4":"1329231822","file5":"1329231837","file3":"1329231737"},"map_files_photo_id_array":[{"photo_id":"1329231837","filename":"file5"},{"photo_id":"1329231689","filename":"file2"},{"photo_id":"1329231822","filename":"file4"},{"photo_id":"1329231685","filename":"file1"},{"photo_id":"1329231669","filename":"file0"},{"photo_id":"1329231737","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329231689":["hashtag1","hashtag2"]},{"1329231737":["hashtag1","hashtag2"]},{"1329231685":["hashtag1","hashtag2"]},{"1329231669":["hashtag1","hashtag2"]},{"1329231837":["hashtag1","hashtag2"]},{"1329231822":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329231689, 1329231737, 1329231685, 1329231669, 1329231837, 1329231822)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.59446597099304 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 15 --only_old 0
2025-01-15 22:21:32.858869
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/56/image_15012025_07_56_25_10421.jpg', '/home/pi/Desktop/images/15012025/07/56/image_15012025_07_56_36_10347.jpg', '/home/pi/Desktop/images/15012025/07/56/image_15012025_07_56_45_9389.jpg', '/home/pi/Desktop/images/15012025/07/56/image_15012025_07_56_55_10359.jpg', '/home/pi/Desktop/images/15012025/07/56/image_15012025_07_57_06_10336.jpg', '/home/pi/Desktop/images/15012025/07/57/image_15012025_07_57_15_9347.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/56/image_15012025_07_56_25_10421.jpg
/home/pi/Desktop/images/15012025/07/56/image_15012025_07_56_36_10347.jpg
/home/pi/Desktop/images/15012025/07/56/image_15012025_07_56_45_9389.jpg
/home/pi/Desktop/images/15012025/07/56/image_15012025_07_56_55_10359.jpg
/home/pi/Desktop/images/15012025/07/56/image_15012025_07_57_06_10336.jpg
/home/pi/Desktop/images/15012025/07/57/image_15012025_07_57_15_9347.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6258304119110107 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
2025-01-15 22:21:42.771720
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/56/image_15012025_07_56_25_10421.jpg', '/home/pi/Desktop/images/15012025/07/56/image_15012025_07_56_36_10347.jpg', '/home/pi/Desktop/images/15012025/07/56/image_15012025_07_56_45_9389.jpg', '/home/pi/Desktop/images/15012025/07/56/image_15012025_07_56_55_10359.jpg', '/home/pi/Desktop/images/15012025/07/56/image_15012025_07_57_06_10336.jpg', '/home/pi/Desktop/images/15012025/07/57/image_15012025_07_57_15_9347.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/56/image_15012025_07_56_25_10421.jpg
/home/pi/Desktop/images/15012025/07/56/image_15012025_07_56_36_10347.jpg
/home/pi/Desktop/images/15012025/07/56/image_15012025_07_56_45_9389.jpg
/home/pi/Desktop/images/15012025/07/56/image_15012025_07_56_55_10359.jpg
/home/pi/Desktop/images/15012025/07/56/image_15012025_07_57_06_10336.jpg
/home/pi/Desktop/images/15012025/07/57/image_15012025_07_57_15_9347.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329232297","1329232090","1329232972","1329232780","1329232620","1329232481"],"photo_ids_order":["1329232090","1329232297","1329232481","1329232620","1329232780","1329232972"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/089983f138fc5177b970f0cc34cb0621.jpg","text":"TemporaryFile(/tmp/multipartBody2607516035822213237asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976163680,"filename":"image_15012025_07_56_36_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bab82a7e0208b07150fb63952ae57a45.jpg","text":"TemporaryFile(/tmp/multipartBody1755117664029845060asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976163680,"filename":"image_15012025_07_56_25_10421.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/868f34e42ca48d4ce4d910b9218fcb34.jpg","text":"TemporaryFile(/tmp/multipartBody7288493574598357985asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976163680,"filename":"image_15012025_07_57_15_9347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/655432a651be14da86f14ad2d668e269.jpg","text":"TemporaryFile(/tmp/multipartBody5878306337991894399asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976163680,"filename":"image_15012025_07_57_06_10336.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bd8b70b1810d3ee7e3cb9d6d01f4056b.jpg","text":"TemporaryFile(/tmp/multipartBody8138033953131603733asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976163680,"filename":"image_15012025_07_56_55_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/223a512d5767280127802700657e90ad.jpg","text":"TemporaryFile(/tmp/multipartBody2523862024668845561asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976163680,"filename":"image_15012025_07_56_45_9389.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329232481","file1":"1329232297","file0":"1329232090","file4":"1329232780","file5":"1329232972","file3":"1329232620"},"map_files_photo_id_array":[{"photo_id":"1329232972","filename":"file5"},{"photo_id":"1329232481","filename":"file2"},{"photo_id":"1329232780","filename":"file4"},{"photo_id":"1329232297","filename":"file1"},{"photo_id":"1329232090","filename":"file0"},{"photo_id":"1329232620","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329232297":["hashtag1","hashtag2"]},{"1329232090":["hashtag1","hashtag2"]},{"1329232972":["hashtag1","hashtag2"]},{"1329232780":["hashtag1","hashtag2"]},{"1329232620":["hashtag1","hashtag2"]},{"1329232481":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329232297, 1329232090, 1329232972, 1329232780, 1329232620, 1329232481)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 55.12637686729431 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
2025-01-15 22:22:43.028832
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/57/image_15012025_07_57_25_10365.jpg', '/home/pi/Desktop/images/15012025/07/57/image_15012025_07_57_36_10398.jpg', '/home/pi/Desktop/images/15012025/07/57/image_15012025_07_57_45_9525.jpg', '/home/pi/Desktop/images/15012025/07/57/image_15012025_07_57_56_10348.jpg', '/home/pi/Desktop/images/15012025/07/57/image_15012025_07_58_05_9501.jpg', '/home/pi/Desktop/images/15012025/07/58/image_15012025_07_58_16_10342.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/57/image_15012025_07_57_25_10365.jpg
/home/pi/Desktop/images/15012025/07/57/image_15012025_07_57_36_10398.jpg
/home/pi/Desktop/images/15012025/07/57/image_15012025_07_57_45_9525.jpg
/home/pi/Desktop/images/15012025/07/57/image_15012025_07_57_56_10348.jpg
/home/pi/Desktop/images/15012025/07/57/image_15012025_07_58_05_9501.jpg
/home/pi/Desktop/images/15012025/07/58/image_15012025_07_58_16_10342.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329233092","1329233026","1329233049","1329233034","1329233037","1329233042"],"photo_ids_order":["1329233026","1329233034","1329233037","1329233042","1329233049","1329233092"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8fe0212ee0d7e2cde17c3b0553049f8c.jpg","text":"TemporaryFile(/tmp/multipartBody2364091291051502927asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976224031,"filename":"image_15012025_07_58_16_10342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/424e7e1f0db48c3073947cbdc50be398.jpg","text":"TemporaryFile(/tmp/multipartBody355593046393407487asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976224031,"filename":"image_15012025_07_57_25_10365.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b4263f0f1a1b94e3b91bc31a3f5f98a9.jpg","text":"TemporaryFile(/tmp/multipartBody7432857861009378605asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976224031,"filename":"image_15012025_07_58_05_9501.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/75aad748f33d53cc954c6926ad65e421.jpg","text":"TemporaryFile(/tmp/multipartBody6361886916281997262asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976224031,"filename":"image_15012025_07_57_36_10398.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/371e3c3a7f7d63ae9a61de6d296f8375.jpg","text":"TemporaryFile(/tmp/multipartBody7489719874891680880asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976224031,"filename":"image_15012025_07_57_45_9525.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6cbe5182d86dc1a2f3484d1d719deef7.jpg","text":"TemporaryFile(/tmp/multipartBody4917627995198640900asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976224031,"filename":"image_15012025_07_57_56_10348.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329233037","file1":"1329233034","file0":"1329233026","file4":"1329233049","file5":"1329233092","file3":"1329233042"},"map_files_photo_id_array":[{"photo_id":"1329233092","filename":"file5"},{"photo_id":"1329233037","filename":"file2"},{"photo_id":"1329233049","filename":"file4"},{"photo_id":"1329233034","filename":"file1"},{"photo_id":"1329233026","filename":"file0"},{"photo_id":"1329233042","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329233092":["hashtag1","hashtag2"]},{"1329233026":["hashtag1","hashtag2"]},{"1329233049":["hashtag1","hashtag2"]},{"1329233034":["hashtag1","hashtag2"]},{"1329233037":["hashtag1","hashtag2"]},{"1329233042":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329233092, 1329233026, 1329233049, 1329233034, 1329233037, 1329233042)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.41923236846924 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 15 --only_old 0
2025-01-15 22:23:33.221436
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/58/image_15012025_07_58_25_9365.jpg', '/home/pi/Desktop/images/15012025/07/58/image_15012025_07_58_35_10353.jpg', '/home/pi/Desktop/images/15012025/07/58/image_15012025_07_58_46_10427.jpg', '/home/pi/Desktop/images/15012025/07/58/image_15012025_07_58_55_9401.jpg', '/home/pi/Desktop/images/15012025/07/58/image_15012025_07_59_05_10329.jpg', '/home/pi/Desktop/images/15012025/07/59/image_15012025_07_59_15_9426.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/58/image_15012025_07_58_25_9365.jpg
/home/pi/Desktop/images/15012025/07/58/image_15012025_07_58_35_10353.jpg
/home/pi/Desktop/images/15012025/07/58/image_15012025_07_58_46_10427.jpg
/home/pi/Desktop/images/15012025/07/58/image_15012025_07_58_55_9401.jpg
/home/pi/Desktop/images/15012025/07/58/image_15012025_07_59_05_10329.jpg
/home/pi/Desktop/images/15012025/07/59/image_15012025_07_59_15_9426.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329233452","1329233391","1329233442","1329233384","1329233387","1329233336"],"photo_ids_order":["1329233336","1329233384","1329233387","1329233391","1329233442","1329233452"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ced9fc6d1a190e98675eb7f3cf882d20.jpg","text":"TemporaryFile(/tmp/multipartBody5269127998565567834asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976274242,"filename":"image_15012025_07_59_15_9426.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/81e5cf2ecfb73a4f5ff6f0edffa65aec.jpg","text":"TemporaryFile(/tmp/multipartBody8723433058872745262asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976274242,"filename":"image_15012025_07_58_55_9401.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2ada9df90e66f0942c601e9514958d9c.jpg","text":"TemporaryFile(/tmp/multipartBody6727498600571241000asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976274242,"filename":"image_15012025_07_59_05_10329.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cf7a45cb62ee7e351eb74b1b0842f987.jpg","text":"TemporaryFile(/tmp/multipartBody2207007652670654804asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976274242,"filename":"image_15012025_07_58_35_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fdc527011d008035d7d5fff5708fbb43.jpg","text":"TemporaryFile(/tmp/multipartBody3250510186059746634asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976274242,"filename":"image_15012025_07_58_46_10427.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cc7e30a35b8377bbc2442ed079b99f3d.jpg","text":"TemporaryFile(/tmp/multipartBody67443278593127729asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976274242,"filename":"image_15012025_07_58_25_9365.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329233387","file1":"1329233384","file0":"1329233336","file4":"1329233442","file5":"1329233452","file3":"1329233391"},"map_files_photo_id_array":[{"photo_id":"1329233452","filename":"file5"},{"photo_id":"1329233387","filename":"file2"},{"photo_id":"1329233442","filename":"file4"},{"photo_id":"1329233384","filename":"file1"},{"photo_id":"1329233336","filename":"file0"},{"photo_id":"1329233391","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329233452":["hashtag1","hashtag2"]},{"1329233391":["hashtag1","hashtag2"]},{"1329233442":["hashtag1","hashtag2"]},{"1329233384":["hashtag1","hashtag2"]},{"1329233387":["hashtag1","hashtag2"]},{"1329233336":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329233452, 1329233391, 1329233442, 1329233384, 1329233387, 1329233336)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.460731983184814 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 15 --only_old 0
2025-01-15 22:24:32.479840
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/59/image_15012025_07_59_25_10429.jpg', '/home/pi/Desktop/images/15012025/07/59/image_15012025_07_59_36_10349.jpg', '/home/pi/Desktop/images/15012025/07/59/image_15012025_07_59_45_9440.jpg', '/home/pi/Desktop/images/15012025/07/59/image_15012025_07_59_55_10354.jpg', '/home/pi/Desktop/images/15012025/08/00/image_15012025_08_00_15_10070.jpg', '/home/pi/Desktop/images/15012025/08/00/image_15012025_08_00_26_10381.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/59/image_15012025_07_59_25_10429.jpg
/home/pi/Desktop/images/15012025/07/59/image_15012025_07_59_36_10349.jpg
/home/pi/Desktop/images/15012025/07/59/image_15012025_07_59_45_9440.jpg
/home/pi/Desktop/images/15012025/07/59/image_15012025_07_59_55_10354.jpg
/home/pi/Desktop/images/15012025/08/00/image_15012025_08_00_15_10070.jpg
/home/pi/Desktop/images/15012025/08/00/image_15012025_08_00_26_10381.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.631366491317749 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
2025-01-15 22:24:42.380769
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/07/59/image_15012025_07_59_25_10429.jpg', '/home/pi/Desktop/images/15012025/07/59/image_15012025_07_59_36_10349.jpg', '/home/pi/Desktop/images/15012025/07/59/image_15012025_07_59_45_9440.jpg', '/home/pi/Desktop/images/15012025/07/59/image_15012025_07_59_55_10354.jpg', '/home/pi/Desktop/images/15012025/08/00/image_15012025_08_00_15_10070.jpg', '/home/pi/Desktop/images/15012025/08/00/image_15012025_08_00_26_10381.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/07/59/image_15012025_07_59_25_10429.jpg
/home/pi/Desktop/images/15012025/07/59/image_15012025_07_59_36_10349.jpg
/home/pi/Desktop/images/15012025/07/59/image_15012025_07_59_45_9440.jpg
/home/pi/Desktop/images/15012025/07/59/image_15012025_07_59_55_10354.jpg
/home/pi/Desktop/images/15012025/08/00/image_15012025_08_00_15_10070.jpg
/home/pi/Desktop/images/15012025/08/00/image_15012025_08_00_26_10381.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329233503","1329233498","1329233477","1329233501","1329233491","1329233494"],"photo_ids_order":["1329233477","1329233491","1329233494","1329233498","1329233501","1329233503"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5045f2ee42fb399551a37b4831dc4d94.jpg","text":"TemporaryFile(/tmp/multipartBody8478260738145203752asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976343371,"filename":"image_15012025_08_00_26_10381.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8661294ca5cc5e50b6e97796bf24c12d.jpg","text":"TemporaryFile(/tmp/multipartBody7260879382754401179asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976343371,"filename":"image_15012025_07_59_55_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dcfa00079fc78c412dc03aa705b5f816.jpg","text":"TemporaryFile(/tmp/multipartBody2635290610462288340asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976343371,"filename":"image_15012025_07_59_25_10429.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0fcee905ea6fdf529513382893b65bab.jpg","text":"TemporaryFile(/tmp/multipartBody6936928112167955129asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976343371,"filename":"image_15012025_08_00_15_10070.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e87d22035dbade9871c96ff2030cc979.jpg","text":"TemporaryFile(/tmp/multipartBody1032109922522495044asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976343371,"filename":"image_15012025_07_59_36_10349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/08bb5a0cd750ef3054d8bf80e1dd690e.jpg","text":"TemporaryFile(/tmp/multipartBody5681212463264018694asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976343371,"filename":"image_15012025_07_59_45_9440.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329233494","file1":"1329233491","file0":"1329233477","file4":"1329233501","file5":"1329233503","file3":"1329233498"},"map_files_photo_id_array":[{"photo_id":"1329233503","filename":"file5"},{"photo_id":"1329233494","filename":"file2"},{"photo_id":"1329233501","filename":"file4"},{"photo_id":"1329233491","filename":"file1"},{"photo_id":"1329233477","filename":"file0"},{"photo_id":"1329233498","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329233503":["hashtag1","hashtag2"]},{"1329233498":["hashtag1","hashtag2"]},{"1329233477":["hashtag1","hashtag2"]},{"1329233501":["hashtag1","hashtag2"]},{"1329233491":["hashtag1","hashtag2"]},{"1329233494":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329233503, 1329233498, 1329233477, 1329233501, 1329233491, 1329233494)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 48.37036108970642 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 15 --only_old 0
2025-01-15 22:25:32.670419
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/00/image_15012025_08_00_36_10397.jpg', '/home/pi/Desktop/images/15012025/08/00/image_15012025_08_00_46_9328.jpg', '/home/pi/Desktop/images/15012025/08/00/image_15012025_08_00_56_10349.jpg', '/home/pi/Desktop/images/15012025/08/00/image_15012025_08_01_06_10400.jpg', '/home/pi/Desktop/images/15012025/08/01/image_15012025_08_01_16_9351.jpg', '/home/pi/Desktop/images/15012025/08/01/image_15012025_08_01_26_10496.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/00/image_15012025_08_00_36_10397.jpg
/home/pi/Desktop/images/15012025/08/00/image_15012025_08_00_46_9328.jpg
/home/pi/Desktop/images/15012025/08/00/image_15012025_08_00_56_10349.jpg
/home/pi/Desktop/images/15012025/08/00/image_15012025_08_01_06_10400.jpg
/home/pi/Desktop/images/15012025/08/01/image_15012025_08_01_16_9351.jpg
/home/pi/Desktop/images/15012025/08/01/image_15012025_08_01_26_10496.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329233611","1329233670","1329233649","1329233634","1329233684","1329233564"],"photo_ids_order":["1329233564","1329233611","1329233634","1329233649","1329233670","1329233684"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5104d3f63d06e34af99c1498ff03fd46.jpg","text":"TemporaryFile(/tmp/multipartBody1549551434872416603asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976393675,"filename":"image_15012025_08_00_46_9328.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/047320b190b3eea18b857155b86b7623.jpg","text":"TemporaryFile(/tmp/multipartBody399074430081122684asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976393675,"filename":"image_15012025_08_01_16_9351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/907042779d37f93c274ad3a093dac909.jpg","text":"TemporaryFile(/tmp/multipartBody4199345150489104141asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976393675,"filename":"image_15012025_08_01_06_10400.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/74df5261ed7cb37baee2481b369437f0.jpg","text":"TemporaryFile(/tmp/multipartBody571731418681441732asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976393675,"filename":"image_15012025_08_00_56_10349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/76a4b2f53a41567aca6dce06ce7d81c0.jpg","text":"TemporaryFile(/tmp/multipartBody2091628806056306180asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976393675,"filename":"image_15012025_08_01_26_10496.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5d3f4d4f4e4134f9a18f81f923d562f1.jpg","text":"TemporaryFile(/tmp/multipartBody3141539731112795046asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976393675,"filename":"image_15012025_08_00_36_10397.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329233634","file1":"1329233611","file0":"1329233564","file4":"1329233670","file5":"1329233684","file3":"1329233649"},"map_files_photo_id_array":[{"photo_id":"1329233684","filename":"file5"},{"photo_id":"1329233634","filename":"file2"},{"photo_id":"1329233670","filename":"file4"},{"photo_id":"1329233611","filename":"file1"},{"photo_id":"1329233564","filename":"file0"},{"photo_id":"1329233649","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329233611":["hashtag1","hashtag2"]},{"1329233670":["hashtag1","hashtag2"]},{"1329233649":["hashtag1","hashtag2"]},{"1329233634":["hashtag1","hashtag2"]},{"1329233684":["hashtag1","hashtag2"]},{"1329233564":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329233611, 1329233670, 1329233649, 1329233634, 1329233684, 1329233564)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.288634061813354 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 15 --only_old 0
2025-01-15 22:26:32.766758
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/01/image_15012025_08_01_35_9335.jpg', '/home/pi/Desktop/images/15012025/08/01/image_15012025_08_01_46_10506.jpg', '/home/pi/Desktop/images/15012025/08/01/image_15012025_08_01_55_9462.jpg', '/home/pi/Desktop/images/15012025/08/01/image_15012025_08_02_06_10347.jpg', '/home/pi/Desktop/images/15012025/08/02/image_15012025_08_02_16_10441.jpg', '/home/pi/Desktop/images/15012025/08/02/image_15012025_08_02_26_9431.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/01/image_15012025_08_01_35_9335.jpg
/home/pi/Desktop/images/15012025/08/01/image_15012025_08_01_46_10506.jpg
/home/pi/Desktop/images/15012025/08/01/image_15012025_08_01_55_9462.jpg
/home/pi/Desktop/images/15012025/08/01/image_15012025_08_02_06_10347.jpg
/home/pi/Desktop/images/15012025/08/02/image_15012025_08_02_16_10441.jpg
/home/pi/Desktop/images/15012025/08/02/image_15012025_08_02_26_9431.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329233740","1329233713","1329233742","1329233736","1329233721","1329233711"],"photo_ids_order":["1329233711","1329233713","1329233721","1329233736","1329233740","1329233742"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5881be6d480a87ec1dbc1695b963e59a.jpg","text":"TemporaryFile(/tmp/multipartBody4413354080633981132asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976453809,"filename":"image_15012025_08_02_16_10441.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c82acf13058a103cc764e7c3ab63e634.jpg","text":"TemporaryFile(/tmp/multipartBody3109161470168124514asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976453809,"filename":"image_15012025_08_01_46_10506.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5e7a11621c433670a1a4671205b7c6b2.jpg","text":"TemporaryFile(/tmp/multipartBody504722998742043795asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976453809,"filename":"image_15012025_08_02_26_9431.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b9178acc5c2992e963449aeebe2b691c.jpg","text":"TemporaryFile(/tmp/multipartBody1337409493150043762asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976453809,"filename":"image_15012025_08_02_06_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/426e460d025f195911a36b9b5828bc25.jpg","text":"TemporaryFile(/tmp/multipartBody2061999581194674458asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976453809,"filename":"image_15012025_08_01_55_9462.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b83781b30e7a1abc7862537cb1b2a665.jpg","text":"TemporaryFile(/tmp/multipartBody1280548458821568940asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976453809,"filename":"image_15012025_08_01_35_9335.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329233721","file1":"1329233713","file0":"1329233711","file4":"1329233740","file5":"1329233742","file3":"1329233736"},"map_files_photo_id_array":[{"photo_id":"1329233742","filename":"file5"},{"photo_id":"1329233721","filename":"file2"},{"photo_id":"1329233740","filename":"file4"},{"photo_id":"1329233713","filename":"file1"},{"photo_id":"1329233711","filename":"file0"},{"photo_id":"1329233736","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329233740":["hashtag1","hashtag2"]},{"1329233713":["hashtag1","hashtag2"]},{"1329233742":["hashtag1","hashtag2"]},{"1329233736":["hashtag1","hashtag2"]},{"1329233721":["hashtag1","hashtag2"]},{"1329233711":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329233740, 1329233713, 1329233742, 1329233736, 1329233721, 1329233711)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.78651404380798 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 15 --only_old 0
2025-01-15 22:27:33.003498
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/02/image_15012025_08_02_36_10460.jpg', '/home/pi/Desktop/images/15012025/08/02/image_15012025_08_02_45_9332.jpg', '/home/pi/Desktop/images/15012025/08/02/image_15012025_08_02_56_10408.jpg', '/home/pi/Desktop/images/15012025/08/02/image_15012025_08_03_06_10350.jpg', '/home/pi/Desktop/images/15012025/08/03/image_15012025_08_03_16_9342.jpg', '/home/pi/Desktop/images/15012025/08/03/image_15012025_08_03_26_10427.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/02/image_15012025_08_02_36_10460.jpg
/home/pi/Desktop/images/15012025/08/02/image_15012025_08_02_45_9332.jpg
/home/pi/Desktop/images/15012025/08/02/image_15012025_08_02_56_10408.jpg
/home/pi/Desktop/images/15012025/08/02/image_15012025_08_03_06_10350.jpg
/home/pi/Desktop/images/15012025/08/03/image_15012025_08_03_16_9342.jpg
/home/pi/Desktop/images/15012025/08/03/image_15012025_08_03_26_10427.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329233788","1329233773","1329233767","1329233789","1329233782","1329233770"],"photo_ids_order":["1329233767","1329233770","1329233773","1329233782","1329233788","1329233789"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a4e26e03f6c267254e2910647022a91d.jpg","text":"TemporaryFile(/tmp/multipartBody4007669692609392309asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976513999,"filename":"image_15012025_08_03_16_9342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6ef0cb043ee5bf8fd5eb6210411f067f.jpg","text":"TemporaryFile(/tmp/multipartBody5217677187661187507asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976513999,"filename":"image_15012025_08_02_56_10408.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/737e2bb49ded20281b9937da4b46fcc1.jpg","text":"TemporaryFile(/tmp/multipartBody2432946054235187723asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976513999,"filename":"image_15012025_08_02_36_10460.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/26eaf1df4c6c625001a13940bce115ef.jpg","text":"TemporaryFile(/tmp/multipartBody9163790465742222141asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976513999,"filename":"image_15012025_08_03_26_10427.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f704f284e93f397d60f5e7d599d1f617.jpg","text":"TemporaryFile(/tmp/multipartBody6669252797808565035asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976513999,"filename":"image_15012025_08_03_06_10350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e3c5efa65f2f7a0636a84a136d67dc4a.jpg","text":"TemporaryFile(/tmp/multipartBody1678000111609195641asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976513999,"filename":"image_15012025_08_02_45_9332.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329233773","file1":"1329233770","file0":"1329233767","file4":"1329233788","file5":"1329233789","file3":"1329233782"},"map_files_photo_id_array":[{"photo_id":"1329233789","filename":"file5"},{"photo_id":"1329233773","filename":"file2"},{"photo_id":"1329233788","filename":"file4"},{"photo_id":"1329233770","filename":"file1"},{"photo_id":"1329233767","filename":"file0"},{"photo_id":"1329233782","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329233788":["hashtag1","hashtag2"]},{"1329233773":["hashtag1","hashtag2"]},{"1329233767":["hashtag1","hashtag2"]},{"1329233789":["hashtag1","hashtag2"]},{"1329233782":["hashtag1","hashtag2"]},{"1329233770":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329233788, 1329233773, 1329233767, 1329233789, 1329233782, 1329233770)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.57022523880005 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 15 --only_old 0
2025-01-15 22:28:32.251843
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/03/image_15012025_08_03_36_10338.jpg', '/home/pi/Desktop/images/15012025/08/03/image_15012025_08_03_46_9356.jpg', '/home/pi/Desktop/images/15012025/08/03/image_15012025_08_03_56_10430.jpg', '/home/pi/Desktop/images/15012025/08/03/image_15012025_08_04_05_9363.jpg', '/home/pi/Desktop/images/15012025/08/04/image_15012025_08_04_16_10345.jpg', '/home/pi/Desktop/images/15012025/08/04/image_15012025_08_04_26_10362.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/03/image_15012025_08_03_36_10338.jpg
/home/pi/Desktop/images/15012025/08/03/image_15012025_08_03_46_9356.jpg
/home/pi/Desktop/images/15012025/08/03/image_15012025_08_03_56_10430.jpg
/home/pi/Desktop/images/15012025/08/03/image_15012025_08_04_05_9363.jpg
/home/pi/Desktop/images/15012025/08/04/image_15012025_08_04_16_10345.jpg
/home/pi/Desktop/images/15012025/08/04/image_15012025_08_04_26_10362.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6134142875671387 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
2025-01-15 22:28:42.173705
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/03/image_15012025_08_03_36_10338.jpg', '/home/pi/Desktop/images/15012025/08/03/image_15012025_08_03_46_9356.jpg', '/home/pi/Desktop/images/15012025/08/03/image_15012025_08_03_56_10430.jpg', '/home/pi/Desktop/images/15012025/08/03/image_15012025_08_04_05_9363.jpg', '/home/pi/Desktop/images/15012025/08/04/image_15012025_08_04_16_10345.jpg', '/home/pi/Desktop/images/15012025/08/04/image_15012025_08_04_26_10362.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/03/image_15012025_08_03_36_10338.jpg
/home/pi/Desktop/images/15012025/08/03/image_15012025_08_03_46_9356.jpg
/home/pi/Desktop/images/15012025/08/03/image_15012025_08_03_56_10430.jpg
/home/pi/Desktop/images/15012025/08/03/image_15012025_08_04_05_9363.jpg
/home/pi/Desktop/images/15012025/08/04/image_15012025_08_04_16_10345.jpg
/home/pi/Desktop/images/15012025/08/04/image_15012025_08_04_26_10362.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329233872","1329233845","1329233875","1329233836","1329233811","1329233822"],"photo_ids_order":["1329233811","1329233822","1329233836","1329233845","1329233872","1329233875"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d74b12e50447d7325c5768fbdb808cf0.jpg","text":"TemporaryFile(/tmp/multipartBody432979354704309094asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976583100,"filename":"image_15012025_08_04_16_10345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fd8e8145307d659c71495455d854bbcc.jpg","text":"TemporaryFile(/tmp/multipartBody597441777104478929asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976583100,"filename":"image_15012025_08_04_05_9363.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cd3fca379d33f723a683646b32033be1.jpg","text":"TemporaryFile(/tmp/multipartBody4513110877183227646asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976583100,"filename":"image_15012025_08_04_26_10362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/79a7be6c007be5d326cb7808305d29c3.jpg","text":"TemporaryFile(/tmp/multipartBody6294170213295320077asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976583100,"filename":"image_15012025_08_03_56_10430.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8f32675d76965671fac3c1b35551ae32.jpg","text":"TemporaryFile(/tmp/multipartBody7683163707503538651asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976583100,"filename":"image_15012025_08_03_36_10338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4d91f07f226fcf17023b445fee97cc62.jpg","text":"TemporaryFile(/tmp/multipartBody4157614795336269705asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976583100,"filename":"image_15012025_08_03_46_9356.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329233836","file1":"1329233822","file0":"1329233811","file4":"1329233872","file5":"1329233875","file3":"1329233845"},"map_files_photo_id_array":[{"photo_id":"1329233875","filename":"file5"},{"photo_id":"1329233836","filename":"file2"},{"photo_id":"1329233872","filename":"file4"},{"photo_id":"1329233822","filename":"file1"},{"photo_id":"1329233811","filename":"file0"},{"photo_id":"1329233845","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329233872":["hashtag1","hashtag2"]},{"1329233845":["hashtag1","hashtag2"]},{"1329233875":["hashtag1","hashtag2"]},{"1329233836":["hashtag1","hashtag2"]},{"1329233811":["hashtag1","hashtag2"]},{"1329233822":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329233872, 1329233845, 1329233875, 1329233836, 1329233811, 1329233822)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.09013819694519 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 15 --only_old 0
2025-01-15 22:29:32.686833
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/04/image_15012025_08_04_35_9322.jpg', '/home/pi/Desktop/images/15012025/08/04/image_15012025_08_04_46_10497.jpg', '/home/pi/Desktop/images/15012025/08/04/image_15012025_08_04_56_10359.jpg', '/home/pi/Desktop/images/15012025/08/04/image_15012025_08_05_06_9354.jpg', '/home/pi/Desktop/images/15012025/08/05/image_15012025_08_05_16_10492.jpg', '/home/pi/Desktop/images/15012025/08/05/image_15012025_08_05_26_9374.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/04/image_15012025_08_04_35_9322.jpg
/home/pi/Desktop/images/15012025/08/04/image_15012025_08_04_46_10497.jpg
/home/pi/Desktop/images/15012025/08/04/image_15012025_08_04_56_10359.jpg
/home/pi/Desktop/images/15012025/08/04/image_15012025_08_05_06_9354.jpg
/home/pi/Desktop/images/15012025/08/05/image_15012025_08_05_16_10492.jpg
/home/pi/Desktop/images/15012025/08/05/image_15012025_08_05_26_9374.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329233947","1329233929","1329233923","1329233934","1329233916","1329233939"],"photo_ids_order":["1329233916","1329233923","1329233929","1329233934","1329233939","1329233947"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b11e592d07e604b0946ca484ba8ad6a8.jpg","text":"TemporaryFile(/tmp/multipartBody1256756577212596784asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976633715,"filename":"image_15012025_08_05_26_9374.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7268922473a2593bea8c42df3d7bb546.jpg","text":"TemporaryFile(/tmp/multipartBody6844594995245656056asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976633715,"filename":"image_15012025_08_04_56_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/518dbdb13419099a2a887d9c97bfdaed.jpg","text":"TemporaryFile(/tmp/multipartBody1813025627317098617asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976633715,"filename":"image_15012025_08_04_46_10497.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a46c3100906df483ce26fb8475ead10e.jpg","text":"TemporaryFile(/tmp/multipartBody5235688517939995093asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976633715,"filename":"image_15012025_08_05_06_9354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5f97d4faebc3d2e3eec048b4671fe2db.jpg","text":"TemporaryFile(/tmp/multipartBody8144051064026169192asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976633715,"filename":"image_15012025_08_04_35_9322.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8d104f773b0aef51e112a91d325ac964.jpg","text":"TemporaryFile(/tmp/multipartBody7796785399931186328asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976633715,"filename":"image_15012025_08_05_16_10492.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329233929","file1":"1329233923","file0":"1329233916","file4":"1329233939","file5":"1329233947","file3":"1329233934"},"map_files_photo_id_array":[{"photo_id":"1329233947","filename":"file5"},{"photo_id":"1329233929","filename":"file2"},{"photo_id":"1329233939","filename":"file4"},{"photo_id":"1329233923","filename":"file1"},{"photo_id":"1329233916","filename":"file0"},{"photo_id":"1329233934","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329233947":["hashtag1","hashtag2"]},{"1329233929":["hashtag1","hashtag2"]},{"1329233923":["hashtag1","hashtag2"]},{"1329233934":["hashtag1","hashtag2"]},{"1329233916":["hashtag1","hashtag2"]},{"1329233939":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329233947, 1329233929, 1329233923, 1329233934, 1329233916, 1329233939)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.39654755592346 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 15 --only_old 0
2025-01-15 22:30:32.953527
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/05/image_15012025_08_05_36_10418.jpg', '/home/pi/Desktop/images/15012025/08/05/image_15012025_08_05_46_10362.jpg', '/home/pi/Desktop/images/15012025/08/05/image_15012025_08_05_56_9342.jpg', '/home/pi/Desktop/images/15012025/08/05/image_15012025_08_06_06_10420.jpg', '/home/pi/Desktop/images/15012025/08/06/image_15012025_08_06_15_9325.jpg', '/home/pi/Desktop/images/15012025/08/06/image_15012025_08_06_26_10360.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/05/image_15012025_08_05_36_10418.jpg
/home/pi/Desktop/images/15012025/08/05/image_15012025_08_05_46_10362.jpg
/home/pi/Desktop/images/15012025/08/05/image_15012025_08_05_56_9342.jpg
/home/pi/Desktop/images/15012025/08/05/image_15012025_08_06_06_10420.jpg
/home/pi/Desktop/images/15012025/08/06/image_15012025_08_06_15_9325.jpg
/home/pi/Desktop/images/15012025/08/06/image_15012025_08_06_26_10360.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329234159","1329234158","1329234035","1329234137","1329234104","1329234088"],"photo_ids_order":["1329234035","1329234088","1329234104","1329234137","1329234158","1329234159"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f04b2a10d191f4c73dce4d8d38e83e56.jpg","text":"TemporaryFile(/tmp/multipartBody3790018832340741763asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976693959,"filename":"image_15012025_08_06_26_10360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/80eb83bf5fcb3154d95e93f4beaaecb7.jpg","text":"TemporaryFile(/tmp/multipartBody8043972214198538262asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976693959,"filename":"image_15012025_08_06_15_9325.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/17ece1990b433a6193653a531380f2ad.jpg","text":"TemporaryFile(/tmp/multipartBody2811205797818581216asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976693959,"filename":"image_15012025_08_05_36_10418.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6e4f77a688444c01856efb5898d5ff1c.jpg","text":"TemporaryFile(/tmp/multipartBody882533163983225683asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976693959,"filename":"image_15012025_08_06_06_10420.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/45d180840dcf456b4e888d0922fe7b88.jpg","text":"TemporaryFile(/tmp/multipartBody4368114588080487831asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976693959,"filename":"image_15012025_08_05_56_9342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/94f6d3d70e9f230303270f6ffb8667b5.jpg","text":"TemporaryFile(/tmp/multipartBody4700356640430449231asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976693959,"filename":"image_15012025_08_05_46_10362.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329234104","file1":"1329234088","file0":"1329234035","file4":"1329234158","file5":"1329234159","file3":"1329234137"},"map_files_photo_id_array":[{"photo_id":"1329234159","filename":"file5"},{"photo_id":"1329234104","filename":"file2"},{"photo_id":"1329234158","filename":"file4"},{"photo_id":"1329234088","filename":"file1"},{"photo_id":"1329234035","filename":"file0"},{"photo_id":"1329234137","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329234159":["hashtag1","hashtag2"]},{"1329234158":["hashtag1","hashtag2"]},{"1329234035":["hashtag1","hashtag2"]},{"1329234137":["hashtag1","hashtag2"]},{"1329234104":["hashtag1","hashtag2"]},{"1329234088":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329234159, 1329234158, 1329234035, 1329234137, 1329234104, 1329234088)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.26129770278931 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 15 --only_old 0
2025-01-15 22:31:33.153753
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/06/image_15012025_08_06_36_10364.jpg', '/home/pi/Desktop/images/15012025/08/06/image_15012025_08_06_45_9333.jpg', '/home/pi/Desktop/images/15012025/08/06/image_15012025_08_06_56_10340.jpg', '/home/pi/Desktop/images/15012025/08/06/image_15012025_08_07_06_10467.jpg', '/home/pi/Desktop/images/15012025/08/07/image_15012025_08_07_16_9419.jpg', '/home/pi/Desktop/images/15012025/08/07/image_15012025_08_07_26_10446.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/06/image_15012025_08_06_36_10364.jpg
/home/pi/Desktop/images/15012025/08/06/image_15012025_08_06_45_9333.jpg
/home/pi/Desktop/images/15012025/08/06/image_15012025_08_06_56_10340.jpg
/home/pi/Desktop/images/15012025/08/06/image_15012025_08_07_06_10467.jpg
/home/pi/Desktop/images/15012025/08/07/image_15012025_08_07_16_9419.jpg
/home/pi/Desktop/images/15012025/08/07/image_15012025_08_07_26_10446.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329234226","1329234237","1329234231","1329234207","1329234239","1329234241"],"photo_ids_order":["1329234207","1329234226","1329234231","1329234237","1329234239","1329234241"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5bb1714807adaabaf182cff153294c0c.jpg","text":"TemporaryFile(/tmp/multipartBody2147630049382505101asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976754160,"filename":"image_15012025_08_06_45_9333.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e9c233f6ae827c0b10fe1ac25b9dc917.jpg","text":"TemporaryFile(/tmp/multipartBody5737907585641224279asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976754160,"filename":"image_15012025_08_07_06_10467.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e4e809a92535b939954edf86383c208e.jpg","text":"TemporaryFile(/tmp/multipartBody7941730884653207567asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976754160,"filename":"image_15012025_08_06_56_10340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b8529d46683aac8b6760bb4bb4e937f0.jpg","text":"TemporaryFile(/tmp/multipartBody7797846346079164469asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976754160,"filename":"image_15012025_08_06_36_10364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d1dca5743772cfaa8250b60a8f14470c.jpg","text":"TemporaryFile(/tmp/multipartBody2325939948179072085asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976754160,"filename":"image_15012025_08_07_16_9419.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c26f3bb7de84caa6fe5989eb03359756.jpg","text":"TemporaryFile(/tmp/multipartBody4941295579940630263asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976754160,"filename":"image_15012025_08_07_26_10446.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329234231","file1":"1329234226","file0":"1329234207","file4":"1329234239","file5":"1329234241","file3":"1329234237"},"map_files_photo_id_array":[{"photo_id":"1329234241","filename":"file5"},{"photo_id":"1329234231","filename":"file2"},{"photo_id":"1329234239","filename":"file4"},{"photo_id":"1329234226","filename":"file1"},{"photo_id":"1329234207","filename":"file0"},{"photo_id":"1329234237","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329234226":["hashtag1","hashtag2"]},{"1329234237":["hashtag1","hashtag2"]},{"1329234231":["hashtag1","hashtag2"]},{"1329234207":["hashtag1","hashtag2"]},{"1329234239":["hashtag1","hashtag2"]},{"1329234241":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329234226, 1329234237, 1329234231, 1329234207, 1329234239, 1329234241)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.82682704925537 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 15 --only_old 0
2025-01-15 22:32:32.338034
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/07/image_15012025_08_07_36_9334.jpg', '/home/pi/Desktop/images/15012025/08/07/image_15012025_08_07_46_10344.jpg', '/home/pi/Desktop/images/15012025/08/07/image_15012025_08_07_56_10350.jpg', '/home/pi/Desktop/images/15012025/08/07/image_15012025_08_08_06_9348.jpg', '/home/pi/Desktop/images/15012025/08/08/image_15012025_08_08_16_10397.jpg', '/home/pi/Desktop/images/15012025/08/08/image_15012025_08_08_26_10346.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/07/image_15012025_08_07_36_9334.jpg
/home/pi/Desktop/images/15012025/08/07/image_15012025_08_07_46_10344.jpg
/home/pi/Desktop/images/15012025/08/07/image_15012025_08_07_56_10350.jpg
/home/pi/Desktop/images/15012025/08/07/image_15012025_08_08_06_9348.jpg
/home/pi/Desktop/images/15012025/08/08/image_15012025_08_08_16_10397.jpg
/home/pi/Desktop/images/15012025/08/08/image_15012025_08_08_26_10346.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.652860164642334 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
2025-01-15 22:32:42.277947
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/07/image_15012025_08_07_36_9334.jpg', '/home/pi/Desktop/images/15012025/08/07/image_15012025_08_07_46_10344.jpg', '/home/pi/Desktop/images/15012025/08/07/image_15012025_08_07_56_10350.jpg', '/home/pi/Desktop/images/15012025/08/07/image_15012025_08_08_06_9348.jpg', '/home/pi/Desktop/images/15012025/08/08/image_15012025_08_08_16_10397.jpg', '/home/pi/Desktop/images/15012025/08/08/image_15012025_08_08_26_10346.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/07/image_15012025_08_07_36_9334.jpg
/home/pi/Desktop/images/15012025/08/07/image_15012025_08_07_46_10344.jpg
/home/pi/Desktop/images/15012025/08/07/image_15012025_08_07_56_10350.jpg
/home/pi/Desktop/images/15012025/08/07/image_15012025_08_08_06_9348.jpg
/home/pi/Desktop/images/15012025/08/08/image_15012025_08_08_16_10397.jpg
/home/pi/Desktop/images/15012025/08/08/image_15012025_08_08_26_10346.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329234445","1329234681","1329234816","1329234810","1329234599","1329234260"],"photo_ids_order":["1329234260","1329234445","1329234599","1329234681","1329234810","1329234816"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d06f4c6c6082340a14dcbe299fc4d260.jpg","text":"TemporaryFile(/tmp/multipartBody4357930104817240227asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976823222,"filename":"image_15012025_08_07_46_10344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f66f084c97940322a045efb245bafc38.jpg","text":"TemporaryFile(/tmp/multipartBody8227675763157754072asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976823222,"filename":"image_15012025_08_08_06_9348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ea9f19dc125b847e36e048dc12b20248.jpg","text":"TemporaryFile(/tmp/multipartBody2540057960330058132asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976823222,"filename":"image_15012025_08_08_26_10346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3d90f7b40d3f7c9f82bcd979599f8406.jpg","text":"TemporaryFile(/tmp/multipartBody7757940489532476092asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976823222,"filename":"image_15012025_08_08_16_10397.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/62a969f65cb042b9554b2ca1dc9e5bb2.jpg","text":"TemporaryFile(/tmp/multipartBody224796265116079681asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976823222,"filename":"image_15012025_08_07_56_10350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8177a4407d2eb9a3107387be8a3ca926.jpg","text":"TemporaryFile(/tmp/multipartBody7615164747375983593asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976823222,"filename":"image_15012025_08_07_36_9334.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329234599","file1":"1329234445","file0":"1329234260","file4":"1329234810","file5":"1329234816","file3":"1329234681"},"map_files_photo_id_array":[{"photo_id":"1329234816","filename":"file5"},{"photo_id":"1329234599","filename":"file2"},{"photo_id":"1329234810","filename":"file4"},{"photo_id":"1329234445","filename":"file1"},{"photo_id":"1329234260","filename":"file0"},{"photo_id":"1329234681","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329234445":["hashtag1","hashtag2"]},{"1329234681":["hashtag1","hashtag2"]},{"1329234816":["hashtag1","hashtag2"]},{"1329234810":["hashtag1","hashtag2"]},{"1329234599":["hashtag1","hashtag2"]},{"1329234260":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329234445, 1329234681, 1329234816, 1329234810, 1329234599, 1329234260)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.75365209579468 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 15 --only_old 0
2025-01-15 22:33:32.545410
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/08/image_15012025_08_08_36_9339.jpg', '/home/pi/Desktop/images/15012025/08/08/image_15012025_08_08_46_10393.jpg', '/home/pi/Desktop/images/15012025/08/08/image_15012025_08_08_55_9374.jpg', '/home/pi/Desktop/images/15012025/08/08/image_15012025_08_09_06_10349.jpg', '/home/pi/Desktop/images/15012025/08/09/image_15012025_08_09_16_10404.jpg', '/home/pi/Desktop/images/15012025/08/09/image_15012025_08_09_26_9355.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/08/image_15012025_08_08_36_9339.jpg
/home/pi/Desktop/images/15012025/08/08/image_15012025_08_08_46_10393.jpg
/home/pi/Desktop/images/15012025/08/08/image_15012025_08_08_55_9374.jpg
/home/pi/Desktop/images/15012025/08/08/image_15012025_08_09_06_10349.jpg
/home/pi/Desktop/images/15012025/08/09/image_15012025_08_09_16_10404.jpg
/home/pi/Desktop/images/15012025/08/09/image_15012025_08_09_26_9355.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329234867","1329234858","1329234869","1329235054","1329234902","1329235045"],"photo_ids_order":["1329234858","1329234867","1329234869","1329234902","1329235045","1329235054"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/154636cdf0c3c6a7d8b6f2d196b5cb8c.jpg","text":"TemporaryFile(/tmp/multipartBody7332701360240922668asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976873556,"filename":"image_15012025_08_08_46_10393.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8b250672534f5d7179bdfd5fda44072e.jpg","text":"TemporaryFile(/tmp/multipartBody5473443178094168599asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976873556,"filename":"image_15012025_08_08_36_9339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ca269b0909380046046efa08f7ed9887.jpg","text":"TemporaryFile(/tmp/multipartBody1585183571982766864asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976873556,"filename":"image_15012025_08_08_55_9374.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/80ded7e5bfe17476ff1a0e877176cde6.jpg","text":"TemporaryFile(/tmp/multipartBody6216034129021782523asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976873556,"filename":"image_15012025_08_09_26_9355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7b3f19380e9c46190773186da7ab0e5f.jpg","text":"TemporaryFile(/tmp/multipartBody3718890582952845384asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976873556,"filename":"image_15012025_08_09_06_10349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1a13324221ad683d8b3fcee36a4f859c.jpg","text":"TemporaryFile(/tmp/multipartBody1311605487407041562asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976873556,"filename":"image_15012025_08_09_16_10404.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329234869","file1":"1329234867","file0":"1329234858","file4":"1329235045","file5":"1329235054","file3":"1329234902"},"map_files_photo_id_array":[{"photo_id":"1329235054","filename":"file5"},{"photo_id":"1329234869","filename":"file2"},{"photo_id":"1329235045","filename":"file4"},{"photo_id":"1329234867","filename":"file1"},{"photo_id":"1329234858","filename":"file0"},{"photo_id":"1329234902","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329234867":["hashtag1","hashtag2"]},{"1329234858":["hashtag1","hashtag2"]},{"1329234869":["hashtag1","hashtag2"]},{"1329235054":["hashtag1","hashtag2"]},{"1329234902":["hashtag1","hashtag2"]},{"1329235045":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329234867, 1329234858, 1329234869, 1329235054, 1329234902, 1329235045)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.48156118392944 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 15 --only_old 0
2025-01-15 22:34:32.753421
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/09/image_15012025_08_09_36_10359.jpg', '/home/pi/Desktop/images/15012025/08/09/image_15012025_08_09_46_10477.jpg', '/home/pi/Desktop/images/15012025/08/09/image_15012025_08_09_56_9343.jpg', '/home/pi/Desktop/images/15012025/08/09/image_15012025_08_10_06_10360.jpg', '/home/pi/Desktop/images/15012025/08/10/image_15012025_08_10_15_9337.jpg', '/home/pi/Desktop/images/15012025/08/10/image_15012025_08_10_26_10373.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/09/image_15012025_08_09_36_10359.jpg
/home/pi/Desktop/images/15012025/08/09/image_15012025_08_09_46_10477.jpg
/home/pi/Desktop/images/15012025/08/09/image_15012025_08_09_56_9343.jpg
/home/pi/Desktop/images/15012025/08/09/image_15012025_08_10_06_10360.jpg
/home/pi/Desktop/images/15012025/08/10/image_15012025_08_10_15_9337.jpg
/home/pi/Desktop/images/15012025/08/10/image_15012025_08_10_26_10373.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329235143","1329235140","1329235136","1329235145","1329235133","1329235147"],"photo_ids_order":["1329235133","1329235136","1329235140","1329235143","1329235145","1329235147"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f80ea785af22f55e893b8670c61f74f7.jpg","text":"TemporaryFile(/tmp/multipartBody3993704892877476870asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976933769,"filename":"image_15012025_08_10_06_10360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8960dac169b3113cb63f1c9a1ea2bd28.jpg","text":"TemporaryFile(/tmp/multipartBody7232148229628214707asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976933769,"filename":"image_15012025_08_09_56_9343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6e739dd639326bccc930ce69e63ad602.jpg","text":"TemporaryFile(/tmp/multipartBody7028670491136681768asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976933769,"filename":"image_15012025_08_09_46_10477.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9a3438dca30771aceed1d90911e40be7.jpg","text":"TemporaryFile(/tmp/multipartBody1649656113756275386asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976933769,"filename":"image_15012025_08_10_15_9337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b3301974bb3ac280cc9b36e6f0f9d3ba.jpg","text":"TemporaryFile(/tmp/multipartBody3802491412051546482asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976933769,"filename":"image_15012025_08_09_36_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3d8542f2d3e731d334fcda5def87e137.jpg","text":"TemporaryFile(/tmp/multipartBody4026861521687050050asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976933769,"filename":"image_15012025_08_10_26_10373.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329235140","file1":"1329235136","file0":"1329235133","file4":"1329235145","file5":"1329235147","file3":"1329235143"},"map_files_photo_id_array":[{"photo_id":"1329235147","filename":"file5"},{"photo_id":"1329235140","filename":"file2"},{"photo_id":"1329235145","filename":"file4"},{"photo_id":"1329235136","filename":"file1"},{"photo_id":"1329235133","filename":"file0"},{"photo_id":"1329235143","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329235143":["hashtag1","hashtag2"]},{"1329235140":["hashtag1","hashtag2"]},{"1329235136":["hashtag1","hashtag2"]},{"1329235145":["hashtag1","hashtag2"]},{"1329235133":["hashtag1","hashtag2"]},{"1329235147":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329235143, 1329235140, 1329235136, 1329235145, 1329235133, 1329235147)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.886229515075684 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 15 --only_old 0
2025-01-15 22:35:33.070699
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/10/image_15012025_08_10_36_10423.jpg', '/home/pi/Desktop/images/15012025/08/10/image_15012025_08_10_46_9343.jpg', '/home/pi/Desktop/images/15012025/08/10/image_15012025_08_10_56_10347.jpg', '/home/pi/Desktop/images/15012025/08/10/image_15012025_08_11_06_10358.jpg', '/home/pi/Desktop/images/15012025/08/11/image_15012025_08_11_26_10428.jpg', '/home/pi/Desktop/images/15012025/08/11/image_15012025_08_11_35_9412.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/10/image_15012025_08_10_36_10423.jpg
/home/pi/Desktop/images/15012025/08/10/image_15012025_08_10_46_9343.jpg
/home/pi/Desktop/images/15012025/08/10/image_15012025_08_10_56_10347.jpg
/home/pi/Desktop/images/15012025/08/10/image_15012025_08_11_06_10358.jpg
/home/pi/Desktop/images/15012025/08/11/image_15012025_08_11_26_10428.jpg
/home/pi/Desktop/images/15012025/08/11/image_15012025_08_11_35_9412.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329235341","1329235290","1329235340","1329235331","1329235309","1329235260"],"photo_ids_order":["1329235260","1329235290","1329235309","1329235331","1329235340","1329235341"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/308faac8d55d108f46ff526377d9533d.jpg","text":"TemporaryFile(/tmp/multipartBody3565889712379253902asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976994067,"filename":"image_15012025_08_11_35_9412.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f245f8b404828611962af94d34cc09b6.jpg","text":"TemporaryFile(/tmp/multipartBody5336398082864621698asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976994067,"filename":"image_15012025_08_10_46_9343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6fad0a9943572c55fc6d0664d27ac4f2.jpg","text":"TemporaryFile(/tmp/multipartBody6486308092762458847asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976994067,"filename":"image_15012025_08_11_26_10428.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/88a526d612066612ce86ba5a92f6cc0b.jpg","text":"TemporaryFile(/tmp/multipartBody2909813019638905887asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976994067,"filename":"image_15012025_08_11_06_10358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2dcba5f4b3e975492dd00b231d32e21e.jpg","text":"TemporaryFile(/tmp/multipartBody4495270223534769461asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976994067,"filename":"image_15012025_08_10_56_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cb2b3e8f282da00aab7deaf720debb65.jpg","text":"TemporaryFile(/tmp/multipartBody2491830433610080787asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736976994067,"filename":"image_15012025_08_10_36_10423.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329235309","file1":"1329235290","file0":"1329235260","file4":"1329235340","file5":"1329235341","file3":"1329235331"},"map_files_photo_id_array":[{"photo_id":"1329235341","filename":"file5"},{"photo_id":"1329235309","filename":"file2"},{"photo_id":"1329235340","filename":"file4"},{"photo_id":"1329235290","filename":"file1"},{"photo_id":"1329235260","filename":"file0"},{"photo_id":"1329235331","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329235341":["hashtag1","hashtag2"]},{"1329235290":["hashtag1","hashtag2"]},{"1329235340":["hashtag1","hashtag2"]},{"1329235331":["hashtag1","hashtag2"]},{"1329235309":["hashtag1","hashtag2"]},{"1329235260":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329235341, 1329235290, 1329235340, 1329235331, 1329235309, 1329235260)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.109848499298096 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 15 --only_old 0
2025-01-15 22:36:33.154382
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/11/image_15012025_08_11_46_10356.jpg', '/home/pi/Desktop/images/15012025/08/11/image_15012025_08_11_56_10406.jpg', '/home/pi/Desktop/images/15012025/08/11/image_15012025_08_12_06_9387.jpg', '/home/pi/Desktop/images/15012025/08/12/image_15012025_08_12_16_10416.jpg', '/home/pi/Desktop/images/15012025/08/12/image_15012025_08_12_25_9366.jpg', '/home/pi/Desktop/images/15012025/08/12/image_15012025_08_12_36_10338.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/11/image_15012025_08_11_46_10356.jpg
/home/pi/Desktop/images/15012025/08/11/image_15012025_08_11_56_10406.jpg
/home/pi/Desktop/images/15012025/08/11/image_15012025_08_12_06_9387.jpg
/home/pi/Desktop/images/15012025/08/12/image_15012025_08_12_16_10416.jpg
/home/pi/Desktop/images/15012025/08/12/image_15012025_08_12_25_9366.jpg
/home/pi/Desktop/images/15012025/08/12/image_15012025_08_12_36_10338.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329235370","1329235373","1329235361","1329235375","1329235378","1329235354"],"photo_ids_order":["1329235354","1329235361","1329235370","1329235373","1329235375","1329235378"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c2559d52a33c077451d99d0e42b543cb.jpg","text":"TemporaryFile(/tmp/multipartBody5098750519253306247asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977054142,"filename":"image_15012025_08_12_06_9387.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fa000f77ad86dc5cf54d87b172a84380.jpg","text":"TemporaryFile(/tmp/multipartBody5788336337622622609asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977054142,"filename":"image_15012025_08_12_16_10416.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/998ec19b031a44d93ca92ea08808ff3d.jpg","text":"TemporaryFile(/tmp/multipartBody529062976229835868asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977054142,"filename":"image_15012025_08_11_56_10406.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9aa4b2adf19731a6c8350d1c2f51f1bd.jpg","text":"TemporaryFile(/tmp/multipartBody1933690634068387752asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977054142,"filename":"image_15012025_08_12_25_9366.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d73a37d7a20e0a63ae1f4e7ebb17d7d6.jpg","text":"TemporaryFile(/tmp/multipartBody4388547779333445357asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977054142,"filename":"image_15012025_08_12_36_10338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/743b1fc760f765bfdce1bc0c03f44b5a.jpg","text":"TemporaryFile(/tmp/multipartBody1224617328591154692asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977054142,"filename":"image_15012025_08_11_46_10356.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329235370","file1":"1329235361","file0":"1329235354","file4":"1329235375","file5":"1329235378","file3":"1329235373"},"map_files_photo_id_array":[{"photo_id":"1329235378","filename":"file5"},{"photo_id":"1329235370","filename":"file2"},{"photo_id":"1329235375","filename":"file4"},{"photo_id":"1329235361","filename":"file1"},{"photo_id":"1329235354","filename":"file0"},{"photo_id":"1329235373","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329235370":["hashtag1","hashtag2"]},{"1329235373":["hashtag1","hashtag2"]},{"1329235361":["hashtag1","hashtag2"]},{"1329235375":["hashtag1","hashtag2"]},{"1329235378":["hashtag1","hashtag2"]},{"1329235354":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329235370, 1329235373, 1329235361, 1329235375, 1329235378, 1329235354)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.96715235710144 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 15 --only_old 0
2025-01-15 22:37:32.338723
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/12/image_15012025_08_12_46_10405.jpg', '/home/pi/Desktop/images/15012025/08/12/image_15012025_08_12_55_9357.jpg', '/home/pi/Desktop/images/15012025/08/12/image_15012025_08_13_06_10353.jpg', '/home/pi/Desktop/images/15012025/08/13/image_15012025_08_13_16_10433.jpg', '/home/pi/Desktop/images/15012025/08/13/image_15012025_08_13_26_9457.jpg', '/home/pi/Desktop/images/15012025/08/13/image_15012025_08_13_36_10442.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/12/image_15012025_08_12_46_10405.jpg
/home/pi/Desktop/images/15012025/08/12/image_15012025_08_12_55_9357.jpg
/home/pi/Desktop/images/15012025/08/12/image_15012025_08_13_06_10353.jpg
/home/pi/Desktop/images/15012025/08/13/image_15012025_08_13_16_10433.jpg
/home/pi/Desktop/images/15012025/08/13/image_15012025_08_13_26_9457.jpg
/home/pi/Desktop/images/15012025/08/13/image_15012025_08_13_36_10442.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6150732040405273 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
2025-01-15 22:37:42.259846
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/12/image_15012025_08_12_46_10405.jpg', '/home/pi/Desktop/images/15012025/08/12/image_15012025_08_12_55_9357.jpg', '/home/pi/Desktop/images/15012025/08/12/image_15012025_08_13_06_10353.jpg', '/home/pi/Desktop/images/15012025/08/13/image_15012025_08_13_16_10433.jpg', '/home/pi/Desktop/images/15012025/08/13/image_15012025_08_13_26_9457.jpg', '/home/pi/Desktop/images/15012025/08/13/image_15012025_08_13_36_10442.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/12/image_15012025_08_12_46_10405.jpg
/home/pi/Desktop/images/15012025/08/12/image_15012025_08_12_55_9357.jpg
/home/pi/Desktop/images/15012025/08/12/image_15012025_08_13_06_10353.jpg
/home/pi/Desktop/images/15012025/08/13/image_15012025_08_13_16_10433.jpg
/home/pi/Desktop/images/15012025/08/13/image_15012025_08_13_26_9457.jpg
/home/pi/Desktop/images/15012025/08/13/image_15012025_08_13_36_10442.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329235433","1329235415","1329235418","1329235427","1329235435","1329235423"],"photo_ids_order":["1329235415","1329235418","1329235423","1329235427","1329235433","1329235435"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6bb919eeda5e53391f5e8a6c0bb93e1c.jpg","text":"TemporaryFile(/tmp/multipartBody6524461376704485658asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977123177,"filename":"image_15012025_08_13_26_9457.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/eabc090f62465741f2289443b0cc6271.jpg","text":"TemporaryFile(/tmp/multipartBody4654562129135892529asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977123177,"filename":"image_15012025_08_12_46_10405.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/37481c72a7647052fad00d5be512cf57.jpg","text":"TemporaryFile(/tmp/multipartBody5082179345082769203asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977123177,"filename":"image_15012025_08_12_55_9357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1edc099d3d68f06661a7b07af1369be9.jpg","text":"TemporaryFile(/tmp/multipartBody5751182644603029438asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977123177,"filename":"image_15012025_08_13_16_10433.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/475fb8a8c0f314cb286adde9dbd7042f.jpg","text":"TemporaryFile(/tmp/multipartBody6272130014629645655asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977123177,"filename":"image_15012025_08_13_36_10442.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d81a0f626226c8d0640d25220116babc.jpg","text":"TemporaryFile(/tmp/multipartBody3026661081626908962asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977123177,"filename":"image_15012025_08_13_06_10353.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329235423","file1":"1329235418","file0":"1329235415","file4":"1329235433","file5":"1329235435","file3":"1329235427"},"map_files_photo_id_array":[{"photo_id":"1329235435","filename":"file5"},{"photo_id":"1329235423","filename":"file2"},{"photo_id":"1329235433","filename":"file4"},{"photo_id":"1329235418","filename":"file1"},{"photo_id":"1329235415","filename":"file0"},{"photo_id":"1329235427","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329235433":["hashtag1","hashtag2"]},{"1329235415":["hashtag1","hashtag2"]},{"1329235418":["hashtag1","hashtag2"]},{"1329235427":["hashtag1","hashtag2"]},{"1329235435":["hashtag1","hashtag2"]},{"1329235423":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329235433, 1329235415, 1329235418, 1329235427, 1329235435, 1329235423)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.915709018707275 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 15 --only_old 0
2025-01-15 22:38:32.691758
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/13/image_15012025_08_13_45_9340.jpg', '/home/pi/Desktop/images/15012025/08/13/image_15012025_08_13_56_10336.jpg', '/home/pi/Desktop/images/15012025/08/13/image_15012025_08_14_06_10451.jpg', '/home/pi/Desktop/images/15012025/08/14/image_15012025_08_14_16_9384.jpg', '/home/pi/Desktop/images/15012025/08/14/image_15012025_08_14_26_10468.jpg', '/home/pi/Desktop/images/15012025/08/14/image_15012025_08_14_46_10401.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/13/image_15012025_08_13_45_9340.jpg
/home/pi/Desktop/images/15012025/08/13/image_15012025_08_13_56_10336.jpg
/home/pi/Desktop/images/15012025/08/13/image_15012025_08_14_06_10451.jpg
/home/pi/Desktop/images/15012025/08/14/image_15012025_08_14_16_9384.jpg
/home/pi/Desktop/images/15012025/08/14/image_15012025_08_14_26_10468.jpg
/home/pi/Desktop/images/15012025/08/14/image_15012025_08_14_46_10401.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329235449","1329235464","1329235472","1329235460","1329235474","1329235468"],"photo_ids_order":["1329235449","1329235460","1329235464","1329235468","1329235472","1329235474"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0c2935d05c24f8783648980d4024d0e4.jpg","text":"TemporaryFile(/tmp/multipartBody8995795126194865739asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977173702,"filename":"image_15012025_08_13_45_9340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/19dc9fde76c9865321dd7cf9e1083e62.jpg","text":"TemporaryFile(/tmp/multipartBody8559489139382154910asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977173702,"filename":"image_15012025_08_14_06_10451.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d6444fa0b1a1e45308df93eeaa789fb4.jpg","text":"TemporaryFile(/tmp/multipartBody7976215822564189262asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977173702,"filename":"image_15012025_08_14_26_10468.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0a8896e256b08d6d471afb253d995bd2.jpg","text":"TemporaryFile(/tmp/multipartBody6669624604680812748asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977173702,"filename":"image_15012025_08_13_56_10336.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fe73b2819e516ce4312ed69a5e1cd85f.jpg","text":"TemporaryFile(/tmp/multipartBody4313640538452240017asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977173702,"filename":"image_15012025_08_14_46_10401.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3ba4c4dfd6bcf0ff07e80e81cf251419.jpg","text":"TemporaryFile(/tmp/multipartBody5962681736797256605asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977173702,"filename":"image_15012025_08_14_16_9384.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329235464","file1":"1329235460","file0":"1329235449","file4":"1329235472","file5":"1329235474","file3":"1329235468"},"map_files_photo_id_array":[{"photo_id":"1329235474","filename":"file5"},{"photo_id":"1329235464","filename":"file2"},{"photo_id":"1329235472","filename":"file4"},{"photo_id":"1329235460","filename":"file1"},{"photo_id":"1329235449","filename":"file0"},{"photo_id":"1329235468","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329235449":["hashtag1","hashtag2"]},{"1329235464":["hashtag1","hashtag2"]},{"1329235472":["hashtag1","hashtag2"]},{"1329235460":["hashtag1","hashtag2"]},{"1329235474":["hashtag1","hashtag2"]},{"1329235468":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329235449, 1329235464, 1329235472, 1329235460, 1329235474, 1329235468)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.8956778049469 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 15 --only_old 0
2025-01-15 22:39:32.883758
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/14/image_15012025_08_14_55_9362.jpg', '/home/pi/Desktop/images/15012025/08/14/image_15012025_08_15_06_10354.jpg', '/home/pi/Desktop/images/15012025/08/15/image_15012025_08_15_16_10395.jpg', '/home/pi/Desktop/images/15012025/08/15/image_15012025_08_15_25_9355.jpg', '/home/pi/Desktop/images/15012025/08/15/image_15012025_08_15_36_10352.jpg', '/home/pi/Desktop/images/15012025/08/15/image_15012025_08_15_46_10358.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/14/image_15012025_08_14_55_9362.jpg
/home/pi/Desktop/images/15012025/08/14/image_15012025_08_15_06_10354.jpg
/home/pi/Desktop/images/15012025/08/15/image_15012025_08_15_16_10395.jpg
/home/pi/Desktop/images/15012025/08/15/image_15012025_08_15_25_9355.jpg
/home/pi/Desktop/images/15012025/08/15/image_15012025_08_15_36_10352.jpg
/home/pi/Desktop/images/15012025/08/15/image_15012025_08_15_46_10358.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329235542","1329235530","1329235533","1329235541","1329235537","1329235540"],"photo_ids_order":["1329235530","1329235533","1329235537","1329235540","1329235541","1329235542"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e1ed8fb13077a22ef8a9dd34c382b207.jpg","text":"TemporaryFile(/tmp/multipartBody8635115024078956573asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977233880,"filename":"image_15012025_08_15_46_10358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f6df10b6ee668fc722d88af4329ebb69.jpg","text":"TemporaryFile(/tmp/multipartBody3718997625942903817asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977233880,"filename":"image_15012025_08_14_55_9362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a2d0ccd127fc59f084606a4fcf040ded.jpg","text":"TemporaryFile(/tmp/multipartBody129491493494584387asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977233880,"filename":"image_15012025_08_15_06_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bbd89c0245f73b3b6973dc7561a13422.jpg","text":"TemporaryFile(/tmp/multipartBody5506020921718889721asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977233880,"filename":"image_15012025_08_15_36_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f3a17124121402b69c3d78fe93dc04c9.jpg","text":"TemporaryFile(/tmp/multipartBody5303995832961715125asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977233880,"filename":"image_15012025_08_15_16_10395.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4ceb697789c36674cbfa218b065a9da3.jpg","text":"TemporaryFile(/tmp/multipartBody3860874831329539092asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977233880,"filename":"image_15012025_08_15_25_9355.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329235537","file1":"1329235533","file0":"1329235530","file4":"1329235541","file5":"1329235542","file3":"1329235540"},"map_files_photo_id_array":[{"photo_id":"1329235542","filename":"file5"},{"photo_id":"1329235537","filename":"file2"},{"photo_id":"1329235541","filename":"file4"},{"photo_id":"1329235533","filename":"file1"},{"photo_id":"1329235530","filename":"file0"},{"photo_id":"1329235540","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329235542":["hashtag1","hashtag2"]},{"1329235530":["hashtag1","hashtag2"]},{"1329235533":["hashtag1","hashtag2"]},{"1329235541":["hashtag1","hashtag2"]},{"1329235537":["hashtag1","hashtag2"]},{"1329235540":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329235542, 1329235530, 1329235533, 1329235541, 1329235537, 1329235540)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.77918791770935 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 15 --only_old 0
2025-01-15 22:40:33.056591
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/15/image_15012025_08_15_56_9341.jpg', '/home/pi/Desktop/images/15012025/08/15/image_15012025_08_16_06_10437.jpg', '/home/pi/Desktop/images/15012025/08/16/image_15012025_08_16_16_10345.jpg', '/home/pi/Desktop/images/15012025/08/16/image_15012025_08_16_26_9347.jpg', '/home/pi/Desktop/images/15012025/08/16/image_15012025_08_16_36_10427.jpg', '/home/pi/Desktop/images/15012025/08/16/image_15012025_08_16_46_10023.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/15/image_15012025_08_15_56_9341.jpg
/home/pi/Desktop/images/15012025/08/15/image_15012025_08_16_06_10437.jpg
/home/pi/Desktop/images/15012025/08/16/image_15012025_08_16_16_10345.jpg
/home/pi/Desktop/images/15012025/08/16/image_15012025_08_16_26_9347.jpg
/home/pi/Desktop/images/15012025/08/16/image_15012025_08_16_36_10427.jpg
/home/pi/Desktop/images/15012025/08/16/image_15012025_08_16_46_10023.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329235589","1329235580","1329235628","1329235596","1329235609","1329235603"],"photo_ids_order":["1329235580","1329235589","1329235596","1329235603","1329235609","1329235628"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4701ec8149984883fce74a63ad02af02.jpg","text":"TemporaryFile(/tmp/multipartBody6043187161775003468asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977294056,"filename":"image_15012025_08_16_06_10437.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/737d3a22e733cd96e000745eefa254e5.jpg","text":"TemporaryFile(/tmp/multipartBody362255554752585726asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977294056,"filename":"image_15012025_08_15_56_9341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/10f8ed70f9a277a22b76b71285600284.jpg","text":"TemporaryFile(/tmp/multipartBody3131196321371606021asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977294056,"filename":"image_15012025_08_16_46_10023.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/921439ec6a6518b5f7d1eef504fcbad6.jpg","text":"TemporaryFile(/tmp/multipartBody7996806112044464828asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977294056,"filename":"image_15012025_08_16_16_10345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d414667cb3cd5c28fd324797336de22e.jpg","text":"TemporaryFile(/tmp/multipartBody5634937314603234581asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977294056,"filename":"image_15012025_08_16_36_10427.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d62a270b88270aa5fd450e9a47a33242.jpg","text":"TemporaryFile(/tmp/multipartBody7904843048818951226asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977294056,"filename":"image_15012025_08_16_26_9347.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329235596","file1":"1329235589","file0":"1329235580","file4":"1329235609","file5":"1329235628","file3":"1329235603"},"map_files_photo_id_array":[{"photo_id":"1329235628","filename":"file5"},{"photo_id":"1329235596","filename":"file2"},{"photo_id":"1329235609","filename":"file4"},{"photo_id":"1329235589","filename":"file1"},{"photo_id":"1329235580","filename":"file0"},{"photo_id":"1329235603","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329235589":["hashtag1","hashtag2"]},{"1329235580":["hashtag1","hashtag2"]},{"1329235628":["hashtag1","hashtag2"]},{"1329235596":["hashtag1","hashtag2"]},{"1329235609":["hashtag1","hashtag2"]},{"1329235603":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329235589, 1329235580, 1329235628, 1329235596, 1329235609, 1329235603)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.39193844795227 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 15 --only_old 0
2025-01-15 22:41:32.342588
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/16/image_15012025_08_16_55_9331.jpg', '/home/pi/Desktop/images/15012025/08/17/image_15012025_08_17_16_10352.jpg', '/home/pi/Desktop/images/15012025/08/17/image_15012025_08_17_25_9340.jpg', '/home/pi/Desktop/images/15012025/08/17/image_15012025_08_17_36_10354.jpg', '/home/pi/Desktop/images/15012025/08/17/image_15012025_08_17_46_10435.jpg', '/home/pi/Desktop/images/15012025/08/18/image_15012025_08_18_26_10396.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/16/image_15012025_08_16_55_9331.jpg
/home/pi/Desktop/images/15012025/08/17/image_15012025_08_17_16_10352.jpg
/home/pi/Desktop/images/15012025/08/17/image_15012025_08_17_25_9340.jpg
/home/pi/Desktop/images/15012025/08/17/image_15012025_08_17_36_10354.jpg
/home/pi/Desktop/images/15012025/08/17/image_15012025_08_17_46_10435.jpg
/home/pi/Desktop/images/15012025/08/18/image_15012025_08_18_26_10396.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6134462356567383 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
2025-01-15 22:41:42.237479
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/16/image_15012025_08_16_55_9331.jpg', '/home/pi/Desktop/images/15012025/08/17/image_15012025_08_17_16_10352.jpg', '/home/pi/Desktop/images/15012025/08/17/image_15012025_08_17_25_9340.jpg', '/home/pi/Desktop/images/15012025/08/17/image_15012025_08_17_36_10354.jpg', '/home/pi/Desktop/images/15012025/08/17/image_15012025_08_17_46_10435.jpg', '/home/pi/Desktop/images/15012025/08/18/image_15012025_08_18_26_10396.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/16/image_15012025_08_16_55_9331.jpg
/home/pi/Desktop/images/15012025/08/17/image_15012025_08_17_16_10352.jpg
/home/pi/Desktop/images/15012025/08/17/image_15012025_08_17_25_9340.jpg
/home/pi/Desktop/images/15012025/08/17/image_15012025_08_17_36_10354.jpg
/home/pi/Desktop/images/15012025/08/17/image_15012025_08_17_46_10435.jpg
/home/pi/Desktop/images/15012025/08/18/image_15012025_08_18_26_10396.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329236150","1329236089","1329236152","1329236142","1329236079","1329236070"],"photo_ids_order":["1329236070","1329236079","1329236089","1329236142","1329236150","1329236152"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bd740d5463cef9946cffe4fc1c9ae1de.jpg","text":"TemporaryFile(/tmp/multipartBody4454410948638378545asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977363146,"filename":"image_15012025_08_17_46_10435.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/abab5fb95640805049f240c7be4bf4fe.jpg","text":"TemporaryFile(/tmp/multipartBody4699440532308506442asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977363146,"filename":"image_15012025_08_17_25_9340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0bdbb77f3bea297753f51cb03373984d.jpg","text":"TemporaryFile(/tmp/multipartBody5121377492038305315asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977363146,"filename":"image_15012025_08_18_26_10396.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dbef974adb93c3ba989712fce0ab63ce.jpg","text":"TemporaryFile(/tmp/multipartBody3295511857752850004asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977363146,"filename":"image_15012025_08_17_36_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8e9926f5ab282d117fb937c643ab9a92.jpg","text":"TemporaryFile(/tmp/multipartBody5953164240996879822asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977363146,"filename":"image_15012025_08_17_16_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ec6b3b4b472e69868bcb93bb6581c4a0.jpg","text":"TemporaryFile(/tmp/multipartBody1858341268744040233asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977363146,"filename":"image_15012025_08_16_55_9331.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329236089","file1":"1329236079","file0":"1329236070","file4":"1329236150","file5":"1329236152","file3":"1329236142"},"map_files_photo_id_array":[{"photo_id":"1329236152","filename":"file5"},{"photo_id":"1329236089","filename":"file2"},{"photo_id":"1329236150","filename":"file4"},{"photo_id":"1329236079","filename":"file1"},{"photo_id":"1329236070","filename":"file0"},{"photo_id":"1329236142","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329236150":["hashtag1","hashtag2"]},{"1329236089":["hashtag1","hashtag2"]},{"1329236152":["hashtag1","hashtag2"]},{"1329236142":["hashtag1","hashtag2"]},{"1329236079":["hashtag1","hashtag2"]},{"1329236070":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329236150, 1329236089, 1329236152, 1329236142, 1329236079, 1329236070)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.21281409263611 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 15 --only_old 0
2025-01-15 22:42:32.565331
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/18/image_15012025_08_18_36_10359.jpg', '/home/pi/Desktop/images/15012025/08/18/image_15012025_08_18_46_9435.jpg', '/home/pi/Desktop/images/15012025/08/18/image_15012025_08_18_56_10448.jpg', '/home/pi/Desktop/images/15012025/08/18/image_15012025_08_19_05_9371.jpg', '/home/pi/Desktop/images/15012025/08/19/image_15012025_08_19_16_10428.jpg', '/home/pi/Desktop/images/15012025/08/19/image_15012025_08_19_26_10357.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/18/image_15012025_08_18_36_10359.jpg
/home/pi/Desktop/images/15012025/08/18/image_15012025_08_18_46_9435.jpg
/home/pi/Desktop/images/15012025/08/18/image_15012025_08_18_56_10448.jpg
/home/pi/Desktop/images/15012025/08/18/image_15012025_08_19_05_9371.jpg
/home/pi/Desktop/images/15012025/08/19/image_15012025_08_19_16_10428.jpg
/home/pi/Desktop/images/15012025/08/19/image_15012025_08_19_26_10357.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329236165","1329236161","1329236170","1329236199","1329236172","1329236175"],"photo_ids_order":["1329236161","1329236165","1329236170","1329236172","1329236175","1329236199"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b25282d8b99d9085150cca78988e71c3.jpg","text":"TemporaryFile(/tmp/multipartBody4652526468252980461asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977413577,"filename":"image_15012025_08_18_46_9435.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/12f552fb0d48aae30bccbd1fbb301c43.jpg","text":"TemporaryFile(/tmp/multipartBody869864182333211308asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977413577,"filename":"image_15012025_08_18_36_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a87fb65cac944d13ad02f4b90f4052ed.jpg","text":"TemporaryFile(/tmp/multipartBody7842964510292138665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977413577,"filename":"image_15012025_08_18_56_10448.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8f4d30c3073b93b7cd9c5f4fcc6e68c3.jpg","text":"TemporaryFile(/tmp/multipartBody2291416889982554715asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977413577,"filename":"image_15012025_08_19_26_10357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0d4abcd1136e7a7de463230328e5d62d.jpg","text":"TemporaryFile(/tmp/multipartBody2001453386134326783asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977413577,"filename":"image_15012025_08_19_05_9371.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cae270d67c87a7066517549d491cf618.jpg","text":"TemporaryFile(/tmp/multipartBody3086055858607581524asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977413577,"filename":"image_15012025_08_19_16_10428.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329236170","file1":"1329236165","file0":"1329236161","file4":"1329236175","file5":"1329236199","file3":"1329236172"},"map_files_photo_id_array":[{"photo_id":"1329236199","filename":"file5"},{"photo_id":"1329236170","filename":"file2"},{"photo_id":"1329236175","filename":"file4"},{"photo_id":"1329236165","filename":"file1"},{"photo_id":"1329236161","filename":"file0"},{"photo_id":"1329236172","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329236165":["hashtag1","hashtag2"]},{"1329236161":["hashtag1","hashtag2"]},{"1329236170":["hashtag1","hashtag2"]},{"1329236199":["hashtag1","hashtag2"]},{"1329236172":["hashtag1","hashtag2"]},{"1329236175":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329236165, 1329236161, 1329236170, 1329236199, 1329236172, 1329236175)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.155808210372925 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 15 --only_old 0
2025-01-15 22:43:32.870826
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/19/image_15012025_08_19_46_10446.jpg', '/home/pi/Desktop/images/15012025/08/20/image_15012025_08_20_16_10349.jpg', '/home/pi/Desktop/images/15012025/08/20/image_15012025_08_20_25_9362.jpg', '/home/pi/Desktop/images/15012025/08/20/image_15012025_08_20_36_10465.jpg', '/home/pi/Desktop/images/15012025/08/20/image_15012025_08_20_46_10394.jpg', '/home/pi/Desktop/images/15012025/08/20/image_15012025_08_20_56_9330.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/19/image_15012025_08_19_46_10446.jpg
/home/pi/Desktop/images/15012025/08/20/image_15012025_08_20_16_10349.jpg
/home/pi/Desktop/images/15012025/08/20/image_15012025_08_20_25_9362.jpg
/home/pi/Desktop/images/15012025/08/20/image_15012025_08_20_36_10465.jpg
/home/pi/Desktop/images/15012025/08/20/image_15012025_08_20_46_10394.jpg
/home/pi/Desktop/images/15012025/08/20/image_15012025_08_20_56_9330.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329236252","1329236245","1329236254","1329236248","1329236256","1329236238"],"photo_ids_order":["1329236238","1329236245","1329236248","1329236252","1329236254","1329236256"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4297483c46bba64baf2289dc9e47680b.jpg","text":"TemporaryFile(/tmp/multipartBody5728774817196016323asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977473877,"filename":"image_15012025_08_20_36_10465.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ca38d19e1fe7017352d69fd1fc1a8fdc.jpg","text":"TemporaryFile(/tmp/multipartBody8316854011632642940asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977473877,"filename":"image_15012025_08_20_16_10349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d5c321e60c22a412c6c305573127ade6.jpg","text":"TemporaryFile(/tmp/multipartBody8721953011356460121asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977473877,"filename":"image_15012025_08_20_46_10394.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/df91e593cab0f06051aa13b96361d216.jpg","text":"TemporaryFile(/tmp/multipartBody3712516301376714137asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977473877,"filename":"image_15012025_08_20_25_9362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1541dbc993b1342058adf73c6b7d9b3d.jpg","text":"TemporaryFile(/tmp/multipartBody3283858744042888408asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977473877,"filename":"image_15012025_08_20_56_9330.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d61459c0b3fb650e4d05e4fe96b25305.jpg","text":"TemporaryFile(/tmp/multipartBody1160691381625522225asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977473877,"filename":"image_15012025_08_19_46_10446.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329236248","file1":"1329236245","file0":"1329236238","file4":"1329236254","file5":"1329236256","file3":"1329236252"},"map_files_photo_id_array":[{"photo_id":"1329236256","filename":"file5"},{"photo_id":"1329236248","filename":"file2"},{"photo_id":"1329236254","filename":"file4"},{"photo_id":"1329236245","filename":"file1"},{"photo_id":"1329236238","filename":"file0"},{"photo_id":"1329236252","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329236252":["hashtag1","hashtag2"]},{"1329236245":["hashtag1","hashtag2"]},{"1329236254":["hashtag1","hashtag2"]},{"1329236248":["hashtag1","hashtag2"]},{"1329236256":["hashtag1","hashtag2"]},{"1329236238":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329236252, 1329236245, 1329236254, 1329236248, 1329236256, 1329236238)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 53.38784885406494 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 15 --only_old 0
2025-01-15 22:44:33.124734
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/20/image_15012025_08_21_06_10347.jpg', '/home/pi/Desktop/images/15012025/08/21/image_15012025_08_21_15_9369.jpg', '/home/pi/Desktop/images/15012025/08/21/image_15012025_08_21_26_10368.jpg', '/home/pi/Desktop/images/15012025/08/21/image_15012025_08_21_36_10341.jpg', '/home/pi/Desktop/images/15012025/08/21/image_15012025_08_21_46_9399.jpg', '/home/pi/Desktop/images/15012025/08/21/image_15012025_08_21_56_10343.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/20/image_15012025_08_21_06_10347.jpg
/home/pi/Desktop/images/15012025/08/21/image_15012025_08_21_15_9369.jpg
/home/pi/Desktop/images/15012025/08/21/image_15012025_08_21_26_10368.jpg
/home/pi/Desktop/images/15012025/08/21/image_15012025_08_21_36_10341.jpg
/home/pi/Desktop/images/15012025/08/21/image_15012025_08_21_46_9399.jpg
/home/pi/Desktop/images/15012025/08/21/image_15012025_08_21_56_10343.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329236294","1329236267","1329236327","1329236405","1329236281","1329236446"],"photo_ids_order":["1329236267","1329236281","1329236294","1329236327","1329236405","1329236446"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2371defe649d07c89f2cc4f06ef8d572.jpg","text":"TemporaryFile(/tmp/multipartBody6436875199319729272asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977534131,"filename":"image_15012025_08_21_26_10368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7b3fe0b63e7d2dcfb39ba645ebbbeedd.jpg","text":"TemporaryFile(/tmp/multipartBody8625275983668526734asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977534131,"filename":"image_15012025_08_21_06_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/267b7d46e1c7046ddfe0dd829514250f.jpg","text":"TemporaryFile(/tmp/multipartBody4012286186518732290asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977534131,"filename":"image_15012025_08_21_36_10341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c446f5a676ef8e3c86819df9c1fef735.jpg","text":"TemporaryFile(/tmp/multipartBody1173435703357147235asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977534131,"filename":"image_15012025_08_21_46_9399.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2508d9418a239d0e2dbfe006f909d552.jpg","text":"TemporaryFile(/tmp/multipartBody7860099126080397554asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977534131,"filename":"image_15012025_08_21_15_9369.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8fe6cf5142ac397432a34714d9e0ec89.jpg","text":"TemporaryFile(/tmp/multipartBody8625150918560034579asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977534131,"filename":"image_15012025_08_21_56_10343.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329236294","file1":"1329236281","file0":"1329236267","file4":"1329236405","file5":"1329236446","file3":"1329236327"},"map_files_photo_id_array":[{"photo_id":"1329236446","filename":"file5"},{"photo_id":"1329236294","filename":"file2"},{"photo_id":"1329236405","filename":"file4"},{"photo_id":"1329236281","filename":"file1"},{"photo_id":"1329236267","filename":"file0"},{"photo_id":"1329236327","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329236294":["hashtag1","hashtag2"]},{"1329236267":["hashtag1","hashtag2"]},{"1329236327":["hashtag1","hashtag2"]},{"1329236405":["hashtag1","hashtag2"]},{"1329236281":["hashtag1","hashtag2"]},{"1329236446":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329236294, 1329236267, 1329236327, 1329236405, 1329236281, 1329236446)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.17914319038391 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 15 --only_old 0
2025-01-15 22:45:32.191118
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/21/image_15012025_08_22_06_10351.jpg', '/home/pi/Desktop/images/15012025/08/22/image_15012025_08_22_16_9322.jpg', '/home/pi/Desktop/images/15012025/08/22/image_15012025_08_22_26_10356.jpg', '/home/pi/Desktop/images/15012025/08/22/image_15012025_08_22_36_10344.jpg', '/home/pi/Desktop/images/15012025/08/22/image_15012025_08_22_46_9398.jpg', '/home/pi/Desktop/images/15012025/08/22/image_15012025_08_22_56_10469.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/21/image_15012025_08_22_06_10351.jpg
/home/pi/Desktop/images/15012025/08/22/image_15012025_08_22_16_9322.jpg
/home/pi/Desktop/images/15012025/08/22/image_15012025_08_22_26_10356.jpg
/home/pi/Desktop/images/15012025/08/22/image_15012025_08_22_36_10344.jpg
/home/pi/Desktop/images/15012025/08/22/image_15012025_08_22_46_9398.jpg
/home/pi/Desktop/images/15012025/08/22/image_15012025_08_22_56_10469.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329236687","1329236696","1329236702","1329236734","1329236694","1329236652"],"photo_ids_order":["1329236652","1329236687","1329236694","1329236696","1329236702","1329236734"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c60fddfb0c0627d45d75bd0401a2e552.jpg","text":"TemporaryFile(/tmp/multipartBody8379333462109630080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977593195,"filename":"image_15012025_08_22_16_9322.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6afa3395149ecc400c8a370fc2ccd625.jpg","text":"TemporaryFile(/tmp/multipartBody8798353732083487215asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977593195,"filename":"image_15012025_08_22_36_10344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b206bfda192c0c2d58d9f85cd59ccc26.jpg","text":"TemporaryFile(/tmp/multipartBody2109697046416175901asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977593195,"filename":"image_15012025_08_22_46_9398.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/456305dc8974bba8e22b9ce9d969763e.jpg","text":"TemporaryFile(/tmp/multipartBody2444813437013753596asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977593195,"filename":"image_15012025_08_22_56_10469.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d1c4c8dd6235ad8cf2504a0c841960f3.jpg","text":"TemporaryFile(/tmp/multipartBody2163961155192562537asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977593195,"filename":"image_15012025_08_22_26_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0f192b4eb441dfe93fb010f154651c73.jpg","text":"TemporaryFile(/tmp/multipartBody8581097011629989857asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977593195,"filename":"image_15012025_08_22_06_10351.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329236694","file1":"1329236687","file0":"1329236652","file4":"1329236702","file5":"1329236734","file3":"1329236696"},"map_files_photo_id_array":[{"photo_id":"1329236734","filename":"file5"},{"photo_id":"1329236694","filename":"file2"},{"photo_id":"1329236702","filename":"file4"},{"photo_id":"1329236687","filename":"file1"},{"photo_id":"1329236652","filename":"file0"},{"photo_id":"1329236696","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329236687":["hashtag1","hashtag2"]},{"1329236696":["hashtag1","hashtag2"]},{"1329236702":["hashtag1","hashtag2"]},{"1329236734":["hashtag1","hashtag2"]},{"1329236694":["hashtag1","hashtag2"]},{"1329236652":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329236687, 1329236696, 1329236702, 1329236734, 1329236694, 1329236652)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 52.09566855430603 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 15 --only_old 0
2025-01-15 22:46:32.433649
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/22/image_15012025_08_23_06_9433.jpg', '/home/pi/Desktop/images/15012025/08/23/image_15012025_08_23_16_10415.jpg', '/home/pi/Desktop/images/15012025/08/23/image_15012025_08_23_36_10347.jpg', '/home/pi/Desktop/images/15012025/08/23/image_15012025_08_23_46_10335.jpg', '/home/pi/Desktop/images/15012025/08/23/image_15012025_08_23_55_9356.jpg', '/home/pi/Desktop/images/15012025/08/23/image_15012025_08_24_06_10343.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/22/image_15012025_08_23_06_9433.jpg
/home/pi/Desktop/images/15012025/08/23/image_15012025_08_23_16_10415.jpg
/home/pi/Desktop/images/15012025/08/23/image_15012025_08_23_36_10347.jpg
/home/pi/Desktop/images/15012025/08/23/image_15012025_08_23_46_10335.jpg
/home/pi/Desktop/images/15012025/08/23/image_15012025_08_23_55_9356.jpg
/home/pi/Desktop/images/15012025/08/23/image_15012025_08_24_06_10343.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329236885","1329236896","1329236889","1329236982","1329236856","1329236844"],"photo_ids_order":["1329236844","1329236856","1329236885","1329236889","1329236896","1329236982"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7f7b256ac7efd129e79f1754173d1516.jpg","text":"TemporaryFile(/tmp/multipartBody3299496189340077asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977654093,"filename":"image_15012025_08_23_36_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1c337727f0b47bbfd74c4890d983b141.jpg","text":"TemporaryFile(/tmp/multipartBody4837844630717838257asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977654093,"filename":"image_15012025_08_23_55_9356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4a47f8fcb4c9a26dd43ed02044f4d84b.jpg","text":"TemporaryFile(/tmp/multipartBody3489967373254005023asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977654093,"filename":"image_15012025_08_23_46_10335.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/83b5a8acd9c52246be2eca1a4b4de8cb.jpg","text":"TemporaryFile(/tmp/multipartBody1668674075647227455asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977654093,"filename":"image_15012025_08_24_06_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/90404f0c185fbaab176bf79e2d9db323.jpg","text":"TemporaryFile(/tmp/multipartBody8057162295770866408asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977654093,"filename":"image_15012025_08_23_16_10415.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b791ed70c6f0c45631d49c4030cb32b6.jpg","text":"TemporaryFile(/tmp/multipartBody1477604060012960657asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977654093,"filename":"image_15012025_08_23_06_9433.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329236885","file1":"1329236856","file0":"1329236844","file4":"1329236896","file5":"1329236982","file3":"1329236889"},"map_files_photo_id_array":[{"photo_id":"1329236982","filename":"file5"},{"photo_id":"1329236885","filename":"file2"},{"photo_id":"1329236896","filename":"file4"},{"photo_id":"1329236856","filename":"file1"},{"photo_id":"1329236844","filename":"file0"},{"photo_id":"1329236889","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329236885":["hashtag1","hashtag2"]},{"1329236896":["hashtag1","hashtag2"]},{"1329236889":["hashtag1","hashtag2"]},{"1329236982":["hashtag1","hashtag2"]},{"1329236856":["hashtag1","hashtag2"]},{"1329236844":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329236885, 1329236896, 1329236889, 1329236982, 1329236856, 1329236844)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.370161056518555 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 15 --only_old 0
2025-01-15 22:47:32.656483
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/24/image_15012025_08_24_16_10353.jpg', '/home/pi/Desktop/images/15012025/08/24/image_15012025_08_24_25_9346.jpg', '/home/pi/Desktop/images/15012025/08/24/image_15012025_08_24_46_10363.jpg', '/home/pi/Desktop/images/15012025/08/24/image_15012025_08_24_56_9372.jpg', '/home/pi/Desktop/images/15012025/08/24/image_15012025_08_25_06_10441.jpg', '/home/pi/Desktop/images/15012025/08/25/image_15012025_08_25_15_9414.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/24/image_15012025_08_24_16_10353.jpg
/home/pi/Desktop/images/15012025/08/24/image_15012025_08_24_25_9346.jpg
/home/pi/Desktop/images/15012025/08/24/image_15012025_08_24_46_10363.jpg
/home/pi/Desktop/images/15012025/08/24/image_15012025_08_24_56_9372.jpg
/home/pi/Desktop/images/15012025/08/24/image_15012025_08_25_06_10441.jpg
/home/pi/Desktop/images/15012025/08/25/image_15012025_08_25_15_9414.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329237284","1329237338","1329237236","1329237328","1329237250","1329237252"],"photo_ids_order":["1329237236","1329237250","1329237252","1329237284","1329237328","1329237338"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bd902b2b087696ebdbf6f08a42e05d88.jpg","text":"TemporaryFile(/tmp/multipartBody7232264094035237594asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977713670,"filename":"image_15012025_08_24_56_9372.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9bed97acc7d151056823d07db4b99f79.jpg","text":"TemporaryFile(/tmp/multipartBody1746355366642073224asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977713670,"filename":"image_15012025_08_25_15_9414.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0d8354d291d606c3ae994ef0f13e7ade.jpg","text":"TemporaryFile(/tmp/multipartBody2963075618671274991asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977713670,"filename":"image_15012025_08_24_16_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fea4e2b28499a0c939b529dca65f6736.jpg","text":"TemporaryFile(/tmp/multipartBody7127899551953722137asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977713670,"filename":"image_15012025_08_25_06_10441.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cfb5343e08410dfacf86588f5f77b381.jpg","text":"TemporaryFile(/tmp/multipartBody3170770970953161594asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977713670,"filename":"image_15012025_08_24_25_9346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e0987d2fdc3fe89292d3d193dadcc7ed.jpg","text":"TemporaryFile(/tmp/multipartBody5832844698780538162asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977713670,"filename":"image_15012025_08_24_46_10363.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329237252","file1":"1329237250","file0":"1329237236","file4":"1329237328","file5":"1329237338","file3":"1329237284"},"map_files_photo_id_array":[{"photo_id":"1329237338","filename":"file5"},{"photo_id":"1329237252","filename":"file2"},{"photo_id":"1329237328","filename":"file4"},{"photo_id":"1329237250","filename":"file1"},{"photo_id":"1329237236","filename":"file0"},{"photo_id":"1329237284","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329237284":["hashtag1","hashtag2"]},{"1329237338":["hashtag1","hashtag2"]},{"1329237236":["hashtag1","hashtag2"]},{"1329237328":["hashtag1","hashtag2"]},{"1329237250":["hashtag1","hashtag2"]},{"1329237252":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329237284, 1329237338, 1329237236, 1329237328, 1329237250, 1329237252)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.463842153549194 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 15 --only_old 0
2025-01-15 22:48:32.950956
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/25/image_15012025_08_25_36_10369.jpg', '/home/pi/Desktop/images/15012025/08/25/image_15012025_08_25_46_9340.jpg', '/home/pi/Desktop/images/15012025/08/25/image_15012025_08_25_56_10398.jpg', '/home/pi/Desktop/images/15012025/08/25/image_15012025_08_26_05_9381.jpg', '/home/pi/Desktop/images/15012025/08/26/image_15012025_08_26_16_10367.jpg', '/home/pi/Desktop/images/15012025/08/26/image_15012025_08_26_26_10365.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/25/image_15012025_08_25_36_10369.jpg
/home/pi/Desktop/images/15012025/08/25/image_15012025_08_25_46_9340.jpg
/home/pi/Desktop/images/15012025/08/25/image_15012025_08_25_56_10398.jpg
/home/pi/Desktop/images/15012025/08/25/image_15012025_08_26_05_9381.jpg
/home/pi/Desktop/images/15012025/08/26/image_15012025_08_26_16_10367.jpg
/home/pi/Desktop/images/15012025/08/26/image_15012025_08_26_26_10365.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6339969635009766 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
2025-01-15 22:48:42.844041
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/25/image_15012025_08_25_36_10369.jpg', '/home/pi/Desktop/images/15012025/08/25/image_15012025_08_25_46_9340.jpg', '/home/pi/Desktop/images/15012025/08/25/image_15012025_08_25_56_10398.jpg', '/home/pi/Desktop/images/15012025/08/25/image_15012025_08_26_05_9381.jpg', '/home/pi/Desktop/images/15012025/08/26/image_15012025_08_26_16_10367.jpg', '/home/pi/Desktop/images/15012025/08/26/image_15012025_08_26_26_10365.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/25/image_15012025_08_25_36_10369.jpg
/home/pi/Desktop/images/15012025/08/25/image_15012025_08_25_46_9340.jpg
/home/pi/Desktop/images/15012025/08/25/image_15012025_08_25_56_10398.jpg
/home/pi/Desktop/images/15012025/08/25/image_15012025_08_26_05_9381.jpg
/home/pi/Desktop/images/15012025/08/26/image_15012025_08_26_16_10367.jpg
/home/pi/Desktop/images/15012025/08/26/image_15012025_08_26_26_10365.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329237563","1329237437","1329237538","1329237486","1329237566","1329237452"],"photo_ids_order":["1329237437","1329237452","1329237486","1329237538","1329237563","1329237566"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2ba06851e9152ecfd7b3c3b2388457d0.jpg","text":"TemporaryFile(/tmp/multipartBody8984772902416074738asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977783788,"filename":"image_15012025_08_26_16_10367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/034c224ad2fc77ab0f702b78a9d328d6.jpg","text":"TemporaryFile(/tmp/multipartBody6052485323686274601asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977783788,"filename":"image_15012025_08_25_36_10369.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/03f3ffc4a2dfa88045df97ebc59d38dc.jpg","text":"TemporaryFile(/tmp/multipartBody4157890137701379382asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977783788,"filename":"image_15012025_08_26_05_9381.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/04151a2bcbb3dc82fb1331699517cd33.jpg","text":"TemporaryFile(/tmp/multipartBody5034901098154281765asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977783788,"filename":"image_15012025_08_25_56_10398.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ea8a90cd428a3004bcd981ff075b1790.jpg","text":"TemporaryFile(/tmp/multipartBody3025865104436605765asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977783788,"filename":"image_15012025_08_26_26_10365.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6ff448feee1a190037b063ad7656ea9e.jpg","text":"TemporaryFile(/tmp/multipartBody3339988297470755405asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977783788,"filename":"image_15012025_08_25_46_9340.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329237486","file1":"1329237452","file0":"1329237437","file4":"1329237563","file5":"1329237566","file3":"1329237538"},"map_files_photo_id_array":[{"photo_id":"1329237566","filename":"file5"},{"photo_id":"1329237486","filename":"file2"},{"photo_id":"1329237563","filename":"file4"},{"photo_id":"1329237452","filename":"file1"},{"photo_id":"1329237437","filename":"file0"},{"photo_id":"1329237538","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329237563":["hashtag1","hashtag2"]},{"1329237437":["hashtag1","hashtag2"]},{"1329237538":["hashtag1","hashtag2"]},{"1329237486":["hashtag1","hashtag2"]},{"1329237566":["hashtag1","hashtag2"]},{"1329237452":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329237563, 1329237437, 1329237538, 1329237486, 1329237566, 1329237452)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.07532811164856 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 15 --only_old 0
2025-01-15 22:49:33.135215
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/26/image_15012025_08_26_35_9341.jpg', '/home/pi/Desktop/images/15012025/08/26/image_15012025_08_26_46_10363.jpg', '/home/pi/Desktop/images/15012025/08/26/image_15012025_08_26_56_10440.jpg', '/home/pi/Desktop/images/15012025/08/26/image_15012025_08_27_06_9319.jpg', '/home/pi/Desktop/images/15012025/08/27/image_15012025_08_27_16_10492.jpg', '/home/pi/Desktop/images/15012025/08/27/image_15012025_08_27_36_10352.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/26/image_15012025_08_26_35_9341.jpg
/home/pi/Desktop/images/15012025/08/26/image_15012025_08_26_46_10363.jpg
/home/pi/Desktop/images/15012025/08/26/image_15012025_08_26_56_10440.jpg
/home/pi/Desktop/images/15012025/08/26/image_15012025_08_27_06_9319.jpg
/home/pi/Desktop/images/15012025/08/27/image_15012025_08_27_16_10492.jpg
/home/pi/Desktop/images/15012025/08/27/image_15012025_08_27_36_10352.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329237581","1329237575","1329237591","1329237585","1329237578","1329237587"],"photo_ids_order":["1329237575","1329237578","1329237581","1329237585","1329237587","1329237591"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a546ca1721ca1e07a80a11ac91d7baff.jpg","text":"TemporaryFile(/tmp/multipartBody3493253751807787628asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977834147,"filename":"image_15012025_08_26_56_10440.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8924ccf2c5d78da77209cf62916523f9.jpg","text":"TemporaryFile(/tmp/multipartBody3970612627065635440asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977834147,"filename":"image_15012025_08_26_35_9341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9623223ed1c855b0c3babddfc03e6110.jpg","text":"TemporaryFile(/tmp/multipartBody3418433196263418276asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977834147,"filename":"image_15012025_08_27_36_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8a66092c7180cc478ef935ea1b92c368.jpg","text":"TemporaryFile(/tmp/multipartBody2675882326843354033asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977834147,"filename":"image_15012025_08_27_06_9319.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1bb6c6545ec05f938427ce04d2acd548.jpg","text":"TemporaryFile(/tmp/multipartBody7757654132995404113asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977834147,"filename":"image_15012025_08_26_46_10363.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c087f91654f111e1796bc01c260e4e73.jpg","text":"TemporaryFile(/tmp/multipartBody844064412177825887asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977834147,"filename":"image_15012025_08_27_16_10492.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329237581","file1":"1329237578","file0":"1329237575","file4":"1329237587","file5":"1329237591","file3":"1329237585"},"map_files_photo_id_array":[{"photo_id":"1329237591","filename":"file5"},{"photo_id":"1329237581","filename":"file2"},{"photo_id":"1329237587","filename":"file4"},{"photo_id":"1329237578","filename":"file1"},{"photo_id":"1329237575","filename":"file0"},{"photo_id":"1329237585","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329237581":["hashtag1","hashtag2"]},{"1329237575":["hashtag1","hashtag2"]},{"1329237591":["hashtag1","hashtag2"]},{"1329237585":["hashtag1","hashtag2"]},{"1329237578":["hashtag1","hashtag2"]},{"1329237587":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329237581, 1329237575, 1329237591, 1329237585, 1329237578, 1329237587)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.78408432006836 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 15 --only_old 0
2025-01-15 22:50:32.293164
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/27/image_15012025_08_27_46_10358.jpg', '/home/pi/Desktop/images/15012025/08/27/image_15012025_08_27_55_9360.jpg', '/home/pi/Desktop/images/15012025/08/27/image_15012025_08_28_06_10352.jpg', '/home/pi/Desktop/images/15012025/08/28/image_15012025_08_28_26_9365.jpg', '/home/pi/Desktop/images/15012025/08/28/image_15012025_08_28_36_10419.jpg', '/home/pi/Desktop/images/15012025/08/28/image_15012025_08_28_46_10358.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/27/image_15012025_08_27_46_10358.jpg
/home/pi/Desktop/images/15012025/08/27/image_15012025_08_27_55_9360.jpg
/home/pi/Desktop/images/15012025/08/27/image_15012025_08_28_06_10352.jpg
/home/pi/Desktop/images/15012025/08/28/image_15012025_08_28_26_9365.jpg
/home/pi/Desktop/images/15012025/08/28/image_15012025_08_28_36_10419.jpg
/home/pi/Desktop/images/15012025/08/28/image_15012025_08_28_46_10358.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329237638","1329237676","1329237649","1329237699","1329237669","1329237678"],"photo_ids_order":["1329237638","1329237649","1329237669","1329237676","1329237678","1329237699"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7c97765643ab7f5e3bae84fe02cc5d6b.jpg","text":"TemporaryFile(/tmp/multipartBody4092871486145363328asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977893325,"filename":"image_15012025_08_27_46_10358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ffe4393ed098c91f7fc29c8919d80da6.jpg","text":"TemporaryFile(/tmp/multipartBody8419008228117518441asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977893325,"filename":"image_15012025_08_28_26_9365.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/42994840b534aa057235f99b82d346a7.jpg","text":"TemporaryFile(/tmp/multipartBody8548239407903707408asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977893325,"filename":"image_15012025_08_27_55_9360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8d7210abf39b8779040a2ebc11f545a0.jpg","text":"TemporaryFile(/tmp/multipartBody4353037679060241757asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977893325,"filename":"image_15012025_08_28_46_10358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a40a31de95ed9e60bf1fe90f59716006.jpg","text":"TemporaryFile(/tmp/multipartBody1515306537956443401asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977893325,"filename":"image_15012025_08_28_06_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/469461529ff166ed0c5830466e5816ba.jpg","text":"TemporaryFile(/tmp/multipartBody7113890091034027060asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977893325,"filename":"image_15012025_08_28_36_10419.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329237669","file1":"1329237649","file0":"1329237638","file4":"1329237678","file5":"1329237699","file3":"1329237676"},"map_files_photo_id_array":[{"photo_id":"1329237699","filename":"file5"},{"photo_id":"1329237669","filename":"file2"},{"photo_id":"1329237678","filename":"file4"},{"photo_id":"1329237649","filename":"file1"},{"photo_id":"1329237638","filename":"file0"},{"photo_id":"1329237676","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329237638":["hashtag1","hashtag2"]},{"1329237676":["hashtag1","hashtag2"]},{"1329237649":["hashtag1","hashtag2"]},{"1329237699":["hashtag1","hashtag2"]},{"1329237669":["hashtag1","hashtag2"]},{"1329237678":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329237638, 1329237676, 1329237649, 1329237699, 1329237669, 1329237678)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.02554798126221 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 15 --only_old 0
2025-01-15 22:51:32.780616
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/29/image_15012025_08_29_26_10357.jpg', '/home/pi/Desktop/images/15012025/08/29/image_15012025_08_29_36_10424.jpg', '/home/pi/Desktop/images/15012025/08/29/image_15012025_08_29_56_10418.jpg', '/home/pi/Desktop/images/15012025/08/29/image_15012025_08_30_06_10352.jpg', '/home/pi/Desktop/images/15012025/08/30/image_15012025_08_30_26_10365.jpg', '/home/pi/Desktop/images/15012025/08/30/image_15012025_08_30_56_10446.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/29/image_15012025_08_29_26_10357.jpg
/home/pi/Desktop/images/15012025/08/29/image_15012025_08_29_36_10424.jpg
/home/pi/Desktop/images/15012025/08/29/image_15012025_08_29_56_10418.jpg
/home/pi/Desktop/images/15012025/08/29/image_15012025_08_30_06_10352.jpg
/home/pi/Desktop/images/15012025/08/30/image_15012025_08_30_26_10365.jpg
/home/pi/Desktop/images/15012025/08/30/image_15012025_08_30_56_10446.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329237892","1329237967","1329237862","1329237990","1329237771","1329237992"],"photo_ids_order":["1329237771","1329237862","1329237892","1329237967","1329237990","1329237992"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b20674d575b0358cb2e29e9a67b02ce9.jpg","text":"TemporaryFile(/tmp/multipartBody5965559847204018434asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977953789,"filename":"image_15012025_08_29_56_10418.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7cc4cd8459d8f252d8a1cb90fb436649.jpg","text":"TemporaryFile(/tmp/multipartBody7168651120781916406asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977953789,"filename":"image_15012025_08_30_06_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/35f14c5c777c1cc5bb6315d6cbb45e65.jpg","text":"TemporaryFile(/tmp/multipartBody3289178275292701562asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977953789,"filename":"image_15012025_08_29_36_10424.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/781f75e132d9c2b91dcf1b96037965e0.jpg","text":"TemporaryFile(/tmp/multipartBody3982594975589304424asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977953789,"filename":"image_15012025_08_30_26_10365.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3c68f7a078f55d37a0817ae4bd263f03.jpg","text":"TemporaryFile(/tmp/multipartBody5625758587376962329asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977953789,"filename":"image_15012025_08_29_26_10357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8ce7d238176390f6ae0a3d1182a7f506.jpg","text":"TemporaryFile(/tmp/multipartBody2830360857504605972asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736977953789,"filename":"image_15012025_08_30_56_10446.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329237892","file1":"1329237862","file0":"1329237771","file4":"1329237990","file5":"1329237992","file3":"1329237967"},"map_files_photo_id_array":[{"photo_id":"1329237992","filename":"file5"},{"photo_id":"1329237892","filename":"file2"},{"photo_id":"1329237990","filename":"file4"},{"photo_id":"1329237862","filename":"file1"},{"photo_id":"1329237771","filename":"file0"},{"photo_id":"1329237967","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329237892":["hashtag1","hashtag2"]},{"1329237967":["hashtag1","hashtag2"]},{"1329237862":["hashtag1","hashtag2"]},{"1329237990":["hashtag1","hashtag2"]},{"1329237771":["hashtag1","hashtag2"]},{"1329237992":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329237892, 1329237967, 1329237862, 1329237990, 1329237771, 1329237992)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 54.54530572891235 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 15 --only_old 0
2025-01-15 22:52:32.138835
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/31/image_15012025_08_31_16_10459.jpg', '/home/pi/Desktop/images/15012025/08/31/image_15012025_08_31_25_9340.jpg', '/home/pi/Desktop/images/15012025/08/31/image_15012025_08_31_36_10352.jpg', '/home/pi/Desktop/images/15012025/08/31/image_15012025_08_31_46_10461.jpg', '/home/pi/Desktop/images/15012025/08/31/image_15012025_08_31_56_9351.jpg', '/home/pi/Desktop/images/15012025/08/31/image_15012025_08_32_06_10408.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/31/image_15012025_08_31_16_10459.jpg
/home/pi/Desktop/images/15012025/08/31/image_15012025_08_31_25_9340.jpg
/home/pi/Desktop/images/15012025/08/31/image_15012025_08_31_36_10352.jpg
/home/pi/Desktop/images/15012025/08/31/image_15012025_08_31_46_10461.jpg
/home/pi/Desktop/images/15012025/08/31/image_15012025_08_31_56_9351.jpg
/home/pi/Desktop/images/15012025/08/31/image_15012025_08_32_06_10408.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329238106","1329238060","1329238200","1329238137","1329238110","1329238202"],"photo_ids_order":["1329238060","1329238106","1329238110","1329238137","1329238200","1329238202"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/68fb28da0c4c5394c7bda6038ccecb65.jpg","text":"TemporaryFile(/tmp/multipartBody2643216193557515379asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978013159,"filename":"image_15012025_08_31_25_9340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3face2557319dab7bd731f8735a334d1.jpg","text":"TemporaryFile(/tmp/multipartBody2512276864293183752asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978013159,"filename":"image_15012025_08_31_16_10459.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8e433e0c06a12825deb26894aa3bdcad.jpg","text":"TemporaryFile(/tmp/multipartBody6629586619208264494asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978013159,"filename":"image_15012025_08_31_56_9351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a4c11262e89edadd04dd7a31c706f1b7.jpg","text":"TemporaryFile(/tmp/multipartBody8182263353928475125asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978013159,"filename":"image_15012025_08_31_46_10461.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/28235624e46eb48b0933a3a74b4724a7.jpg","text":"TemporaryFile(/tmp/multipartBody1878454610134908844asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978013159,"filename":"image_15012025_08_31_36_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ffa3e8decce875b94a1724e101076112.jpg","text":"TemporaryFile(/tmp/multipartBody5572018654093104659asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978013159,"filename":"image_15012025_08_32_06_10408.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329238110","file1":"1329238106","file0":"1329238060","file4":"1329238200","file5":"1329238202","file3":"1329238137"},"map_files_photo_id_array":[{"photo_id":"1329238202","filename":"file5"},{"photo_id":"1329238110","filename":"file2"},{"photo_id":"1329238200","filename":"file4"},{"photo_id":"1329238106","filename":"file1"},{"photo_id":"1329238060","filename":"file0"},{"photo_id":"1329238137","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329238106":["hashtag1","hashtag2"]},{"1329238060":["hashtag1","hashtag2"]},{"1329238200":["hashtag1","hashtag2"]},{"1329238137":["hashtag1","hashtag2"]},{"1329238110":["hashtag1","hashtag2"]},{"1329238202":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329238106, 1329238060, 1329238200, 1329238137, 1329238110, 1329238202)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.05692934989929 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 15 --only_old 0
2025-01-15 22:53:32.400886
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/32/image_15012025_08_32_15_9362.jpg', '/home/pi/Desktop/images/15012025/08/32/image_15012025_08_32_26_10378.jpg', '/home/pi/Desktop/images/15012025/08/32/image_15012025_08_32_36_10353.jpg', '/home/pi/Desktop/images/15012025/08/32/image_15012025_08_32_45_9361.jpg', '/home/pi/Desktop/images/15012025/08/32/image_15012025_08_32_56_10381.jpg', '/home/pi/Desktop/images/15012025/08/32/image_15012025_08_33_06_10373.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/32/image_15012025_08_32_15_9362.jpg
/home/pi/Desktop/images/15012025/08/32/image_15012025_08_32_26_10378.jpg
/home/pi/Desktop/images/15012025/08/32/image_15012025_08_32_36_10353.jpg
/home/pi/Desktop/images/15012025/08/32/image_15012025_08_32_45_9361.jpg
/home/pi/Desktop/images/15012025/08/32/image_15012025_08_32_56_10381.jpg
/home/pi/Desktop/images/15012025/08/32/image_15012025_08_33_06_10373.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6036732196807861 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
2025-01-15 22:53:42.365722
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/32/image_15012025_08_32_15_9362.jpg', '/home/pi/Desktop/images/15012025/08/32/image_15012025_08_32_26_10378.jpg', '/home/pi/Desktop/images/15012025/08/32/image_15012025_08_32_36_10353.jpg', '/home/pi/Desktop/images/15012025/08/32/image_15012025_08_32_45_9361.jpg', '/home/pi/Desktop/images/15012025/08/32/image_15012025_08_32_56_10381.jpg', '/home/pi/Desktop/images/15012025/08/32/image_15012025_08_33_06_10373.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/32/image_15012025_08_32_15_9362.jpg
/home/pi/Desktop/images/15012025/08/32/image_15012025_08_32_26_10378.jpg
/home/pi/Desktop/images/15012025/08/32/image_15012025_08_32_36_10353.jpg
/home/pi/Desktop/images/15012025/08/32/image_15012025_08_32_45_9361.jpg
/home/pi/Desktop/images/15012025/08/32/image_15012025_08_32_56_10381.jpg
/home/pi/Desktop/images/15012025/08/32/image_15012025_08_33_06_10373.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329238231","1329238240","1329238243","1329238245","1329238248","1329238236"],"photo_ids_order":["1329238231","1329238236","1329238240","1329238243","1329238245","1329238248"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/280eca20d1e2503c601c1cf228197208.jpg","text":"TemporaryFile(/tmp/multipartBody4105407151091869064asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978083282,"filename":"image_15012025_08_32_15_9362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7e9a3e10dacce545528d38d8f8c683f4.jpg","text":"TemporaryFile(/tmp/multipartBody670714062321058869asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978083282,"filename":"image_15012025_08_32_36_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e9ee2aa3094fcdbd78e9744534ff797b.jpg","text":"TemporaryFile(/tmp/multipartBody966091716279329907asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978083282,"filename":"image_15012025_08_32_45_9361.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4c123bcfedbee0a5b2a374b626f06203.jpg","text":"TemporaryFile(/tmp/multipartBody7332583981558376068asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978083282,"filename":"image_15012025_08_32_56_10381.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8d4780809798ff8280e9315790bc45c2.jpg","text":"TemporaryFile(/tmp/multipartBody3777631906742112042asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978083282,"filename":"image_15012025_08_33_06_10373.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/32dad9b203b7d99a0d950766a7c2cffe.jpg","text":"TemporaryFile(/tmp/multipartBody7236449701128935916asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978083282,"filename":"image_15012025_08_32_26_10378.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329238240","file1":"1329238236","file0":"1329238231","file4":"1329238245","file5":"1329238248","file3":"1329238243"},"map_files_photo_id_array":[{"photo_id":"1329238248","filename":"file5"},{"photo_id":"1329238240","filename":"file2"},{"photo_id":"1329238245","filename":"file4"},{"photo_id":"1329238236","filename":"file1"},{"photo_id":"1329238231","filename":"file0"},{"photo_id":"1329238243","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329238231":["hashtag1","hashtag2"]},{"1329238240":["hashtag1","hashtag2"]},{"1329238243":["hashtag1","hashtag2"]},{"1329238245":["hashtag1","hashtag2"]},{"1329238248":["hashtag1","hashtag2"]},{"1329238236":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329238231, 1329238240, 1329238243, 1329238245, 1329238248, 1329238236)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.76065969467163 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 15 --only_old 0
2025-01-15 22:54:32.559868
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/33/image_15012025_08_33_16_9345.jpg', '/home/pi/Desktop/images/15012025/08/33/image_15012025_08_33_26_10416.jpg', '/home/pi/Desktop/images/15012025/08/33/image_15012025_08_33_36_10346.jpg', '/home/pi/Desktop/images/15012025/08/33/image_15012025_08_33_46_9347.jpg', '/home/pi/Desktop/images/15012025/08/33/image_15012025_08_33_56_10338.jpg', '/home/pi/Desktop/images/15012025/08/33/image_15012025_08_34_05_9363.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/33/image_15012025_08_33_16_9345.jpg
/home/pi/Desktop/images/15012025/08/33/image_15012025_08_33_26_10416.jpg
/home/pi/Desktop/images/15012025/08/33/image_15012025_08_33_36_10346.jpg
/home/pi/Desktop/images/15012025/08/33/image_15012025_08_33_46_9347.jpg
/home/pi/Desktop/images/15012025/08/33/image_15012025_08_33_56_10338.jpg
/home/pi/Desktop/images/15012025/08/33/image_15012025_08_34_05_9363.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329238300","1329238306","1329238281","1329238260","1329238257","1329238286"],"photo_ids_order":["1329238257","1329238260","1329238281","1329238286","1329238300","1329238306"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ac66f56753200763320b1fb2aa2786b3.jpg","text":"TemporaryFile(/tmp/multipartBody6904123277384745998asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978133586,"filename":"image_15012025_08_33_56_10338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c90e3a760edc83c14d039c7b7c96b7ef.jpg","text":"TemporaryFile(/tmp/multipartBody2782014067109231540asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978133586,"filename":"image_15012025_08_34_05_9363.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0f40fba7b69de41f05930ac01760fc7c.jpg","text":"TemporaryFile(/tmp/multipartBody6968744345991418077asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978133586,"filename":"image_15012025_08_33_36_10346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9fa8ba4370bb9cf921df94b6c81f592b.jpg","text":"TemporaryFile(/tmp/multipartBody3414356584283545721asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978133586,"filename":"image_15012025_08_33_26_10416.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/76cfa02ddb54f3be656cfcda9ea14795.jpg","text":"TemporaryFile(/tmp/multipartBody3687332376202648009asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978133586,"filename":"image_15012025_08_33_16_9345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/28483786db99cd77608d5d5e410bd8f0.jpg","text":"TemporaryFile(/tmp/multipartBody6053915298115093455asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978133586,"filename":"image_15012025_08_33_46_9347.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329238281","file1":"1329238260","file0":"1329238257","file4":"1329238300","file5":"1329238306","file3":"1329238286"},"map_files_photo_id_array":[{"photo_id":"1329238306","filename":"file5"},{"photo_id":"1329238281","filename":"file2"},{"photo_id":"1329238300","filename":"file4"},{"photo_id":"1329238260","filename":"file1"},{"photo_id":"1329238257","filename":"file0"},{"photo_id":"1329238286","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329238300":["hashtag1","hashtag2"]},{"1329238306":["hashtag1","hashtag2"]},{"1329238281":["hashtag1","hashtag2"]},{"1329238260":["hashtag1","hashtag2"]},{"1329238257":["hashtag1","hashtag2"]},{"1329238286":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329238300, 1329238306, 1329238281, 1329238260, 1329238257, 1329238286)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.3209547996521 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 15 --only_old 0
2025-01-15 22:55:32.836122
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/34/image_15012025_08_34_16_10353.jpg', '/home/pi/Desktop/images/15012025/08/34/image_15012025_08_34_26_10442.jpg', '/home/pi/Desktop/images/15012025/08/34/image_15012025_08_34_36_9341.jpg', '/home/pi/Desktop/images/15012025/08/34/image_15012025_08_34_46_10335.jpg', '/home/pi/Desktop/images/15012025/08/34/image_15012025_08_34_56_10398.jpg', '/home/pi/Desktop/images/15012025/08/34/image_15012025_08_35_06_9341.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/34/image_15012025_08_34_16_10353.jpg
/home/pi/Desktop/images/15012025/08/34/image_15012025_08_34_26_10442.jpg
/home/pi/Desktop/images/15012025/08/34/image_15012025_08_34_36_9341.jpg
/home/pi/Desktop/images/15012025/08/34/image_15012025_08_34_46_10335.jpg
/home/pi/Desktop/images/15012025/08/34/image_15012025_08_34_56_10398.jpg
/home/pi/Desktop/images/15012025/08/34/image_15012025_08_35_06_9341.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329238573","1329238479","1329238350","1329238545","1329238419","1329238547"],"photo_ids_order":["1329238350","1329238419","1329238479","1329238545","1329238547","1329238573"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/432fcf8f226d485258002de091926293.jpg","text":"TemporaryFile(/tmp/multipartBody3964413333169057867asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978193826,"filename":"image_15012025_08_35_06_9341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/18405bb8077d71d3fe0740d5808f07b9.jpg","text":"TemporaryFile(/tmp/multipartBody2427941696489554257asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978193826,"filename":"image_15012025_08_34_36_9341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/19ac2e4d5a680501f6d46072573f7f16.jpg","text":"TemporaryFile(/tmp/multipartBody4777348321895625970asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978193826,"filename":"image_15012025_08_34_16_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/94b13b5f39e2b68b929d4bc8c0cc5261.jpg","text":"TemporaryFile(/tmp/multipartBody187931667932454992asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978193826,"filename":"image_15012025_08_34_46_10335.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/28bf7f550da815cb167e53de7957b6d7.jpg","text":"TemporaryFile(/tmp/multipartBody4583283267283644026asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978193826,"filename":"image_15012025_08_34_26_10442.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/23d3fde96ba7225105501a22a1172885.jpg","text":"TemporaryFile(/tmp/multipartBody2009398831370695323asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978193826,"filename":"image_15012025_08_34_56_10398.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329238479","file1":"1329238419","file0":"1329238350","file4":"1329238547","file5":"1329238573","file3":"1329238545"},"map_files_photo_id_array":[{"photo_id":"1329238573","filename":"file5"},{"photo_id":"1329238479","filename":"file2"},{"photo_id":"1329238547","filename":"file4"},{"photo_id":"1329238419","filename":"file1"},{"photo_id":"1329238350","filename":"file0"},{"photo_id":"1329238545","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329238573":["hashtag1","hashtag2"]},{"1329238479":["hashtag1","hashtag2"]},{"1329238350":["hashtag1","hashtag2"]},{"1329238545":["hashtag1","hashtag2"]},{"1329238419":["hashtag1","hashtag2"]},{"1329238547":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329238573, 1329238479, 1329238350, 1329238545, 1329238419, 1329238547)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.93911027908325 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 15 --only_old 0
2025-01-15 22:56:33.115470
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/35/image_15012025_08_35_16_10426.jpg', '/home/pi/Desktop/images/15012025/08/35/image_15012025_08_35_25_9356.jpg', '/home/pi/Desktop/images/15012025/08/35/image_15012025_08_35_36_10482.jpg', '/home/pi/Desktop/images/15012025/08/35/image_15012025_08_35_46_10478.jpg', '/home/pi/Desktop/images/15012025/08/35/image_15012025_08_35_56_9349.jpg', '/home/pi/Desktop/images/15012025/08/35/image_15012025_08_36_06_10473.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/35/image_15012025_08_35_16_10426.jpg
/home/pi/Desktop/images/15012025/08/35/image_15012025_08_35_25_9356.jpg
/home/pi/Desktop/images/15012025/08/35/image_15012025_08_35_36_10482.jpg
/home/pi/Desktop/images/15012025/08/35/image_15012025_08_35_46_10478.jpg
/home/pi/Desktop/images/15012025/08/35/image_15012025_08_35_56_9349.jpg
/home/pi/Desktop/images/15012025/08/35/image_15012025_08_36_06_10473.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.5897738933563232 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
2025-01-15 22:56:43.031951
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/35/image_15012025_08_35_16_10426.jpg', '/home/pi/Desktop/images/15012025/08/35/image_15012025_08_35_25_9356.jpg', '/home/pi/Desktop/images/15012025/08/35/image_15012025_08_35_36_10482.jpg', '/home/pi/Desktop/images/15012025/08/35/image_15012025_08_35_46_10478.jpg', '/home/pi/Desktop/images/15012025/08/35/image_15012025_08_35_56_9349.jpg', '/home/pi/Desktop/images/15012025/08/35/image_15012025_08_36_06_10473.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/35/image_15012025_08_35_16_10426.jpg
/home/pi/Desktop/images/15012025/08/35/image_15012025_08_35_25_9356.jpg
/home/pi/Desktop/images/15012025/08/35/image_15012025_08_35_36_10482.jpg
/home/pi/Desktop/images/15012025/08/35/image_15012025_08_35_46_10478.jpg
/home/pi/Desktop/images/15012025/08/35/image_15012025_08_35_56_9349.jpg
/home/pi/Desktop/images/15012025/08/35/image_15012025_08_36_06_10473.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329238630","1329238665","1329238653","1329238661","1329238658","1329238637"],"photo_ids_order":["1329238630","1329238637","1329238653","1329238658","1329238661","1329238665"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d58af5a2d289f32d01c7f5444020ab79.jpg","text":"TemporaryFile(/tmp/multipartBody7724150456581302182asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978263949,"filename":"image_15012025_08_35_16_10426.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6fe6f3122a1e26a436566560c24aa629.jpg","text":"TemporaryFile(/tmp/multipartBody46761149251450039asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978263949,"filename":"image_15012025_08_36_06_10473.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/81185f0a67bc92e45ebd184d221da5ea.jpg","text":"TemporaryFile(/tmp/multipartBody829041502956987913asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978263949,"filename":"image_15012025_08_35_36_10482.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b2db0e3fcfe0375a63cad9d4f552e59d.jpg","text":"TemporaryFile(/tmp/multipartBody7998065922013266865asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978263949,"filename":"image_15012025_08_35_56_9349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f1a525facc85c399cbc983462c1d08e1.jpg","text":"TemporaryFile(/tmp/multipartBody2899785210275527512asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978263949,"filename":"image_15012025_08_35_46_10478.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2967d4327b869ed5868bf81ee15902a3.jpg","text":"TemporaryFile(/tmp/multipartBody895254616836611553asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978263949,"filename":"image_15012025_08_35_25_9356.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329238653","file1":"1329238637","file0":"1329238630","file4":"1329238661","file5":"1329238665","file3":"1329238658"},"map_files_photo_id_array":[{"photo_id":"1329238665","filename":"file5"},{"photo_id":"1329238653","filename":"file2"},{"photo_id":"1329238661","filename":"file4"},{"photo_id":"1329238637","filename":"file1"},{"photo_id":"1329238630","filename":"file0"},{"photo_id":"1329238658","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329238630":["hashtag1","hashtag2"]},{"1329238665":["hashtag1","hashtag2"]},{"1329238653":["hashtag1","hashtag2"]},{"1329238661":["hashtag1","hashtag2"]},{"1329238658":["hashtag1","hashtag2"]},{"1329238637":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329238630, 1329238665, 1329238653, 1329238661, 1329238658, 1329238637)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.696715116500854 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 15 --only_old 0
2025-01-15 22:57:32.267923
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/36/image_15012025_08_36_15_9334.jpg', '/home/pi/Desktop/images/15012025/08/36/image_15012025_08_36_26_10379.jpg', '/home/pi/Desktop/images/15012025/08/36/image_15012025_08_36_36_10410.jpg', '/home/pi/Desktop/images/15012025/08/36/image_15012025_08_36_46_9322.jpg', '/home/pi/Desktop/images/15012025/08/36/image_15012025_08_37_05_9320.jpg', '/home/pi/Desktop/images/15012025/08/37/image_15012025_08_37_46_10406.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/36/image_15012025_08_36_15_9334.jpg
/home/pi/Desktop/images/15012025/08/36/image_15012025_08_36_26_10379.jpg
/home/pi/Desktop/images/15012025/08/36/image_15012025_08_36_36_10410.jpg
/home/pi/Desktop/images/15012025/08/36/image_15012025_08_36_46_9322.jpg
/home/pi/Desktop/images/15012025/08/36/image_15012025_08_37_05_9320.jpg
/home/pi/Desktop/images/15012025/08/37/image_15012025_08_37_46_10406.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
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
2025-01-15 22:59:04.687038
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/36/image_15012025_08_36_15_9334.jpg', '/home/pi/Desktop/images/15012025/08/36/image_15012025_08_36_26_10379.jpg', '/home/pi/Desktop/images/15012025/08/36/image_15012025_08_36_36_10410.jpg', '/home/pi/Desktop/images/15012025/08/36/image_15012025_08_36_46_9322.jpg', '/home/pi/Desktop/images/15012025/08/36/image_15012025_08_37_05_9320.jpg', '/home/pi/Desktop/images/15012025/08/37/image_15012025_08_37_46_10406.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/36/image_15012025_08_36_15_9334.jpg
/home/pi/Desktop/images/15012025/08/36/image_15012025_08_36_26_10379.jpg
/home/pi/Desktop/images/15012025/08/36/image_15012025_08_36_36_10410.jpg
/home/pi/Desktop/images/15012025/08/36/image_15012025_08_36_46_9322.jpg
/home/pi/Desktop/images/15012025/08/36/image_15012025_08_37_05_9320.jpg
/home/pi/Desktop/images/15012025/08/37/image_15012025_08_37_46_10406.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329238792","1329238756","1329238782","1329238767","1329238772","1329238763"],"photo_ids_order":["1329238756","1329238763","1329238767","1329238772","1329238782","1329238792"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/18f29b3156dfaaeccfd11db4d75cea4b.jpg","text":"TemporaryFile(/tmp/multipartBody1606325495182697707asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978405719,"filename":"image_15012025_08_37_46_10406.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/06e3ff1396c37796f73744d45889a48d.jpg","text":"TemporaryFile(/tmp/multipartBody4153800565403555883asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978405719,"filename":"image_15012025_08_36_15_9334.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a41422dd59cd22ed486d212ed06017b5.jpg","text":"TemporaryFile(/tmp/multipartBody789348443440373018asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978405719,"filename":"image_15012025_08_37_05_9320.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/87fae9cd4f65e84d5790c133f36def87.jpg","text":"TemporaryFile(/tmp/multipartBody4245258275320734476asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978405719,"filename":"image_15012025_08_36_36_10410.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b07d23231714a9b0cae0b2d4bc17bb6d.jpg","text":"TemporaryFile(/tmp/multipartBody7202760438150144713asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978405719,"filename":"image_15012025_08_36_46_9322.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b3399d89f74b8ddf7eca419f1ebd158c.jpg","text":"TemporaryFile(/tmp/multipartBody2809802506553894108asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978405719,"filename":"image_15012025_08_36_26_10379.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329238767","file1":"1329238763","file0":"1329238756","file4":"1329238782","file5":"1329238792","file3":"1329238772"},"map_files_photo_id_array":[{"photo_id":"1329238792","filename":"file5"},{"photo_id":"1329238767","filename":"file2"},{"photo_id":"1329238782","filename":"file4"},{"photo_id":"1329238763","filename":"file1"},{"photo_id":"1329238756","filename":"file0"},{"photo_id":"1329238772","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329238792":["hashtag1","hashtag2"]},{"1329238756":["hashtag1","hashtag2"]},{"1329238782":["hashtag1","hashtag2"]},{"1329238767":["hashtag1","hashtag2"]},{"1329238772":["hashtag1","hashtag2"]},{"1329238763":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329238792, 1329238756, 1329238782, 1329238767, 1329238772, 1329238763)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.10542416572571 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 15 --only_old 0
2025-01-15 22:59:52.938633
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/38/image_15012025_08_38_16_10349.jpg', '/home/pi/Desktop/images/15012025/08/38/image_15012025_08_38_36_10343.jpg', '/home/pi/Desktop/images/15012025/08/38/image_15012025_08_38_46_10360.jpg', '/home/pi/Desktop/images/15012025/08/38/image_15012025_08_38_55_9344.jpg', '/home/pi/Desktop/images/15012025/08/38/image_15012025_08_39_06_10346.jpg', '/home/pi/Desktop/images/15012025/08/39/image_15012025_08_39_26_9362.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/38/image_15012025_08_38_16_10349.jpg
/home/pi/Desktop/images/15012025/08/38/image_15012025_08_38_36_10343.jpg
/home/pi/Desktop/images/15012025/08/38/image_15012025_08_38_46_10360.jpg
/home/pi/Desktop/images/15012025/08/38/image_15012025_08_38_55_9344.jpg
/home/pi/Desktop/images/15012025/08/38/image_15012025_08_39_06_10346.jpg
/home/pi/Desktop/images/15012025/08/39/image_15012025_08_39_26_9362.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329238820","1329238808","1329238822","1329238815","1329238824","1329238811"],"photo_ids_order":["1329238808","1329238811","1329238815","1329238820","1329238822","1329238824"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ad86010a57d10b659a1614ab5eb2a1fb.jpg","text":"TemporaryFile(/tmp/multipartBody3102170547730296338asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978453925,"filename":"image_15012025_08_38_55_9344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/59613d6cc6e38774bc89511059258d95.jpg","text":"TemporaryFile(/tmp/multipartBody8604388968066363382asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978453925,"filename":"image_15012025_08_38_16_10349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1ae6f0201fbaa0a315700641a931f46f.jpg","text":"TemporaryFile(/tmp/multipartBody5785990757162537692asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978453925,"filename":"image_15012025_08_39_06_10346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/49238fdb836aba28cd9697d88ea07dd0.jpg","text":"TemporaryFile(/tmp/multipartBody3850817721223276645asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978453925,"filename":"image_15012025_08_38_46_10360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/07e387a23661f619e31bcf4a1bcb59f9.jpg","text":"TemporaryFile(/tmp/multipartBody4693060463159658258asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978453925,"filename":"image_15012025_08_39_26_9362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f83eaf041f31f79d2626f84417941f66.jpg","text":"TemporaryFile(/tmp/multipartBody7708932442394514197asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978453925,"filename":"image_15012025_08_38_36_10343.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329238815","file1":"1329238811","file0":"1329238808","file4":"1329238822","file5":"1329238824","file3":"1329238820"},"map_files_photo_id_array":[{"photo_id":"1329238824","filename":"file5"},{"photo_id":"1329238815","filename":"file2"},{"photo_id":"1329238822","filename":"file4"},{"photo_id":"1329238811","filename":"file1"},{"photo_id":"1329238808","filename":"file0"},{"photo_id":"1329238820","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329238820":["hashtag1","hashtag2"]},{"1329238808":["hashtag1","hashtag2"]},{"1329238822":["hashtag1","hashtag2"]},{"1329238815":["hashtag1","hashtag2"]},{"1329238824":["hashtag1","hashtag2"]},{"1329238811":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329238820, 1329238808, 1329238822, 1329238815, 1329238824, 1329238811)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.04870629310608 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
2025-01-15 23:00:42.234911
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/39/image_15012025_08_39_56_10356.jpg', '/home/pi/Desktop/images/15012025/08/39/image_15012025_08_40_06_10383.jpg', '/home/pi/Desktop/images/15012025/08/40/image_15012025_08_40_16_9347.jpg', '/home/pi/Desktop/images/15012025/08/40/image_15012025_08_40_26_10504.jpg', '/home/pi/Desktop/images/15012025/08/40/image_15012025_08_40_35_9426.jpg', '/home/pi/Desktop/images/15012025/08/40/image_15012025_08_40_46_10349.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/39/image_15012025_08_39_56_10356.jpg
/home/pi/Desktop/images/15012025/08/39/image_15012025_08_40_06_10383.jpg
/home/pi/Desktop/images/15012025/08/40/image_15012025_08_40_16_9347.jpg
/home/pi/Desktop/images/15012025/08/40/image_15012025_08_40_26_10504.jpg
/home/pi/Desktop/images/15012025/08/40/image_15012025_08_40_35_9426.jpg
/home/pi/Desktop/images/15012025/08/40/image_15012025_08_40_46_10349.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329238885","1329239035","1329238842","1329238988","1329238844","1329238838"],"photo_ids_order":["1329238838","1329238842","1329238844","1329238885","1329238988","1329239035"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/537439c710a63f70187360437c249ef0.jpg","text":"TemporaryFile(/tmp/multipartBody942737656747048764asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978503223,"filename":"image_15012025_08_40_26_10504.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/21b77f5e23a766b8e6c66a7827d357eb.jpg","text":"TemporaryFile(/tmp/multipartBody3878230065823207014asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978503223,"filename":"image_15012025_08_40_46_10349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/296f48ee2272ac37afcdf92d9b5b34a7.jpg","text":"TemporaryFile(/tmp/multipartBody5820404087342413416asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978503223,"filename":"image_15012025_08_40_06_10383.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c94e85e98d485eedb1dda58757700fb4.jpg","text":"TemporaryFile(/tmp/multipartBody1984849559969699858asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978503223,"filename":"image_15012025_08_40_35_9426.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2f0fd8b8b370ce7dd47ba4e4cf76fbd9.jpg","text":"TemporaryFile(/tmp/multipartBody1478419858390295583asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978503223,"filename":"image_15012025_08_40_16_9347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d10e9dde2820062d3b4bda15f8cbd827.jpg","text":"TemporaryFile(/tmp/multipartBody9059898669742253645asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978503223,"filename":"image_15012025_08_39_56_10356.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329238844","file1":"1329238842","file0":"1329238838","file4":"1329238988","file5":"1329239035","file3":"1329238885"},"map_files_photo_id_array":[{"photo_id":"1329239035","filename":"file5"},{"photo_id":"1329238844","filename":"file2"},{"photo_id":"1329238988","filename":"file4"},{"photo_id":"1329238842","filename":"file1"},{"photo_id":"1329238838","filename":"file0"},{"photo_id":"1329238885","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329238885":["hashtag1","hashtag2"]},{"1329239035":["hashtag1","hashtag2"]},{"1329238842":["hashtag1","hashtag2"]},{"1329238988":["hashtag1","hashtag2"]},{"1329238844":["hashtag1","hashtag2"]},{"1329238838":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329238885, 1329239035, 1329238842, 1329238988, 1329238844, 1329238838)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.14281153678894 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 15 --only_old 0
2025-01-15 23:01:32.529694
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/40/image_15012025_08_40_56_10372.jpg', '/home/pi/Desktop/images/15012025/08/40/image_15012025_08_41_06_9346.jpg', '/home/pi/Desktop/images/15012025/08/41/image_15012025_08_41_16_10338.jpg', '/home/pi/Desktop/images/15012025/08/41/image_15012025_08_41_26_10439.jpg', '/home/pi/Desktop/images/15012025/08/41/image_15012025_08_41_36_9334.jpg', '/home/pi/Desktop/images/15012025/08/41/image_15012025_08_41_46_10464.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/40/image_15012025_08_40_56_10372.jpg
/home/pi/Desktop/images/15012025/08/40/image_15012025_08_41_06_9346.jpg
/home/pi/Desktop/images/15012025/08/41/image_15012025_08_41_16_10338.jpg
/home/pi/Desktop/images/15012025/08/41/image_15012025_08_41_26_10439.jpg
/home/pi/Desktop/images/15012025/08/41/image_15012025_08_41_36_9334.jpg
/home/pi/Desktop/images/15012025/08/41/image_15012025_08_41_46_10464.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329239190","1329239193","1329239187","1329239147","1329239201","1329239197"],"photo_ids_order":["1329239147","1329239187","1329239190","1329239193","1329239197","1329239201"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a4d77655b738a7a33d6761940512ec98.jpg","text":"TemporaryFile(/tmp/multipartBody735427339350234648asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978553525,"filename":"image_15012025_08_41_16_10338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0f053f61355e6917a9b2122e66113ec3.jpg","text":"TemporaryFile(/tmp/multipartBody4653691518378034382asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978553525,"filename":"image_15012025_08_41_26_10439.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3f07cfe16f3f7469bbbd7df3773ecc4c.jpg","text":"TemporaryFile(/tmp/multipartBody4908031857820085640asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978553525,"filename":"image_15012025_08_41_06_9346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d849905591bb1ea16e78e3d5c6961e02.jpg","text":"TemporaryFile(/tmp/multipartBody4350841363713220767asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978553525,"filename":"image_15012025_08_40_56_10372.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/08479eac9fd69a02f60cbc5998f541dc.jpg","text":"TemporaryFile(/tmp/multipartBody2316049036834758437asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978553525,"filename":"image_15012025_08_41_46_10464.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/01c15505d76c011f5634a21c5c89c07f.jpg","text":"TemporaryFile(/tmp/multipartBody241555950518625743asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978553525,"filename":"image_15012025_08_41_36_9334.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329239190","file1":"1329239187","file0":"1329239147","file4":"1329239197","file5":"1329239201","file3":"1329239193"},"map_files_photo_id_array":[{"photo_id":"1329239201","filename":"file5"},{"photo_id":"1329239190","filename":"file2"},{"photo_id":"1329239197","filename":"file4"},{"photo_id":"1329239187","filename":"file1"},{"photo_id":"1329239147","filename":"file0"},{"photo_id":"1329239193","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329239190":["hashtag1","hashtag2"]},{"1329239193":["hashtag1","hashtag2"]},{"1329239187":["hashtag1","hashtag2"]},{"1329239147":["hashtag1","hashtag2"]},{"1329239201":["hashtag1","hashtag2"]},{"1329239197":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329239190, 1329239193, 1329239187, 1329239147, 1329239201, 1329239197)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.35187125205994 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 15 --only_old 0
2025-01-15 23:02:32.661629
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/41/image_15012025_08_41_55_9341.jpg', '/home/pi/Desktop/images/15012025/08/41/image_15012025_08_42_06_10348.jpg', '/home/pi/Desktop/images/15012025/08/42/image_15012025_08_42_16_10352.jpg', '/home/pi/Desktop/images/15012025/08/42/image_15012025_08_42_26_9474.jpg', '/home/pi/Desktop/images/15012025/08/42/image_15012025_08_42_36_10407.jpg', '/home/pi/Desktop/images/15012025/08/42/image_15012025_08_42_46_10335.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/41/image_15012025_08_41_55_9341.jpg
/home/pi/Desktop/images/15012025/08/41/image_15012025_08_42_06_10348.jpg
/home/pi/Desktop/images/15012025/08/42/image_15012025_08_42_16_10352.jpg
/home/pi/Desktop/images/15012025/08/42/image_15012025_08_42_26_9474.jpg
/home/pi/Desktop/images/15012025/08/42/image_15012025_08_42_36_10407.jpg
/home/pi/Desktop/images/15012025/08/42/image_15012025_08_42_46_10335.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329239298","1329239302","1329239310","1329239321","1329239306","1329239254"],"photo_ids_order":["1329239254","1329239298","1329239302","1329239306","1329239310","1329239321"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/70c72062fce7b18763b6d57b8fd1aa20.jpg","text":"TemporaryFile(/tmp/multipartBody373057992189849741asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978613655,"filename":"image_15012025_08_42_06_10348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4a27bace8b8d12e9260ab27df49f14dd.jpg","text":"TemporaryFile(/tmp/multipartBody4387461513134509340asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978613655,"filename":"image_15012025_08_42_16_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0bd14c18ca8fa2d08da2a013969d3a7f.jpg","text":"TemporaryFile(/tmp/multipartBody2922723560937655107asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978613655,"filename":"image_15012025_08_42_36_10407.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/12a05167960c0a60e2b9c850dddb55e6.jpg","text":"TemporaryFile(/tmp/multipartBody2627171448696941501asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978613655,"filename":"image_15012025_08_42_46_10335.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/384b32e96791aadbe32e281243f9f5ca.jpg","text":"TemporaryFile(/tmp/multipartBody4725009857042647074asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978613655,"filename":"image_15012025_08_42_26_9474.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/25fa7a369abb6036ee38d05e536a67a1.jpg","text":"TemporaryFile(/tmp/multipartBody3552296678313957380asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978613655,"filename":"image_15012025_08_41_55_9341.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329239302","file1":"1329239298","file0":"1329239254","file4":"1329239310","file5":"1329239321","file3":"1329239306"},"map_files_photo_id_array":[{"photo_id":"1329239321","filename":"file5"},{"photo_id":"1329239302","filename":"file2"},{"photo_id":"1329239310","filename":"file4"},{"photo_id":"1329239298","filename":"file1"},{"photo_id":"1329239254","filename":"file0"},{"photo_id":"1329239306","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329239298":["hashtag1","hashtag2"]},{"1329239302":["hashtag1","hashtag2"]},{"1329239310":["hashtag1","hashtag2"]},{"1329239321":["hashtag1","hashtag2"]},{"1329239306":["hashtag1","hashtag2"]},{"1329239254":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329239298, 1329239302, 1329239310, 1329239321, 1329239306, 1329239254)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.77831792831421 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 15 --only_old 0
2025-01-15 23:03:32.922620
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/42/image_15012025_08_42_56_9377.jpg', '/home/pi/Desktop/images/15012025/08/42/image_15012025_08_43_06_10270.jpg', '/home/pi/Desktop/images/15012025/08/43/image_15012025_08_43_15_9386.jpg', '/home/pi/Desktop/images/15012025/08/43/image_15012025_08_43_26_10370.jpg', '/home/pi/Desktop/images/15012025/08/43/image_15012025_08_43_36_10345.jpg', '/home/pi/Desktop/images/15012025/08/43/image_15012025_08_43_45_9331.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/42/image_15012025_08_42_56_9377.jpg
/home/pi/Desktop/images/15012025/08/42/image_15012025_08_43_06_10270.jpg
/home/pi/Desktop/images/15012025/08/43/image_15012025_08_43_15_9386.jpg
/home/pi/Desktop/images/15012025/08/43/image_15012025_08_43_26_10370.jpg
/home/pi/Desktop/images/15012025/08/43/image_15012025_08_43_36_10345.jpg
/home/pi/Desktop/images/15012025/08/43/image_15012025_08_43_45_9331.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329239350","1329239347","1329239370","1329239357","1329239372","1329239374"],"photo_ids_order":["1329239347","1329239350","1329239357","1329239370","1329239372","1329239374"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/53b2e6c036e5579601f72337a6da27d5.jpg","text":"TemporaryFile(/tmp/multipartBody63958563144111105asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978673897,"filename":"image_15012025_08_43_06_10270.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/704028623bd667f046b1fad0032075cb.jpg","text":"TemporaryFile(/tmp/multipartBody2486383680199208605asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978673897,"filename":"image_15012025_08_42_56_9377.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c1a72568f352f2c36211d49b6b835a75.jpg","text":"TemporaryFile(/tmp/multipartBody6152245652449694034asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978673897,"filename":"image_15012025_08_43_26_10370.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/25102ff6f5fe5779070c91cd66917eb3.jpg","text":"TemporaryFile(/tmp/multipartBody6773820297762598139asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978673897,"filename":"image_15012025_08_43_15_9386.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/03684f3ebc4720a0e5cf0462f2f1b066.jpg","text":"TemporaryFile(/tmp/multipartBody7717119184052916532asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978673897,"filename":"image_15012025_08_43_36_10345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b0e5e148a2440ef882fa46acbe1a339d.jpg","text":"TemporaryFile(/tmp/multipartBody1340396892144019696asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978673897,"filename":"image_15012025_08_43_45_9331.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329239357","file1":"1329239350","file0":"1329239347","file4":"1329239372","file5":"1329239374","file3":"1329239370"},"map_files_photo_id_array":[{"photo_id":"1329239374","filename":"file5"},{"photo_id":"1329239357","filename":"file2"},{"photo_id":"1329239372","filename":"file4"},{"photo_id":"1329239350","filename":"file1"},{"photo_id":"1329239347","filename":"file0"},{"photo_id":"1329239370","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329239350":["hashtag1","hashtag2"]},{"1329239347":["hashtag1","hashtag2"]},{"1329239370":["hashtag1","hashtag2"]},{"1329239357":["hashtag1","hashtag2"]},{"1329239372":["hashtag1","hashtag2"]},{"1329239374":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329239350, 1329239347, 1329239370, 1329239357, 1329239372, 1329239374)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.737713098526 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 15 --only_old 0
2025-01-15 23:04:33.040917
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/43/image_15012025_08_43_56_10350.jpg', '/home/pi/Desktop/images/15012025/08/44/image_15012025_08_44_16_9336.jpg', '/home/pi/Desktop/images/15012025/08/44/image_15012025_08_44_35_9332.jpg', '/home/pi/Desktop/images/15012025/08/44/image_15012025_08_44_56_10444.jpg', '/home/pi/Desktop/images/15012025/08/44/image_15012025_08_45_06_9339.jpg', '/home/pi/Desktop/images/15012025/08/45/image_15012025_08_45_26_10378.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/43/image_15012025_08_43_56_10350.jpg
/home/pi/Desktop/images/15012025/08/44/image_15012025_08_44_16_9336.jpg
/home/pi/Desktop/images/15012025/08/44/image_15012025_08_44_35_9332.jpg
/home/pi/Desktop/images/15012025/08/44/image_15012025_08_44_56_10444.jpg
/home/pi/Desktop/images/15012025/08/44/image_15012025_08_45_06_9339.jpg
/home/pi/Desktop/images/15012025/08/45/image_15012025_08_45_26_10378.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329240119","1329240340","1329240337","1329240281","1329240275","1329240278"],"photo_ids_order":["1329240119","1329240275","1329240278","1329240281","1329240337","1329240340"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/461898668f9d35e0856ef1eac5092dce.jpg","text":"TemporaryFile(/tmp/multipartBody2471741521532677872asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978734051,"filename":"image_15012025_08_43_56_10350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/19d222b96bc3cf5d0d58d6d03e21a41f.jpg","text":"TemporaryFile(/tmp/multipartBody3872736839559918556asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978734051,"filename":"image_15012025_08_45_26_10378.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/160ea8942fa9cff2853c8ecd1390ff0d.jpg","text":"TemporaryFile(/tmp/multipartBody2178157396489300325asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978734051,"filename":"image_15012025_08_45_06_9339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ff49dfec8ec1d87d740883af8709466e.jpg","text":"TemporaryFile(/tmp/multipartBody5446284455773736714asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978734051,"filename":"image_15012025_08_44_56_10444.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/15cc832702245574fe1e4b7c0db238ed.jpg","text":"TemporaryFile(/tmp/multipartBody5763781277103699995asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978734051,"filename":"image_15012025_08_44_16_9336.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dfb3189ccfd04dd04bae0cc83bf7aaf3.jpg","text":"TemporaryFile(/tmp/multipartBody4416152765932585954asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978734051,"filename":"image_15012025_08_44_35_9332.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329240278","file1":"1329240275","file0":"1329240119","file4":"1329240337","file5":"1329240340","file3":"1329240281"},"map_files_photo_id_array":[{"photo_id":"1329240340","filename":"file5"},{"photo_id":"1329240278","filename":"file2"},{"photo_id":"1329240337","filename":"file4"},{"photo_id":"1329240275","filename":"file1"},{"photo_id":"1329240119","filename":"file0"},{"photo_id":"1329240281","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329240119":["hashtag1","hashtag2"]},{"1329240340":["hashtag1","hashtag2"]},{"1329240337":["hashtag1","hashtag2"]},{"1329240281":["hashtag1","hashtag2"]},{"1329240275":["hashtag1","hashtag2"]},{"1329240278":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329240119, 1329240340, 1329240337, 1329240281, 1329240275, 1329240278)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.87855362892151 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 15 --only_old 0
2025-01-15 23:05:32.294110
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/45/image_15012025_08_45_36_9330.jpg', '/home/pi/Desktop/images/15012025/08/45/image_15012025_08_45_46_10409.jpg', '/home/pi/Desktop/images/15012025/08/45/image_15012025_08_45_55_9356.jpg', '/home/pi/Desktop/images/15012025/08/45/image_15012025_08_46_06_10360.jpg', '/home/pi/Desktop/images/15012025/08/46/image_15012025_08_46_16_10361.jpg', '/home/pi/Desktop/images/15012025/08/46/image_15012025_08_46_25_9359.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/45/image_15012025_08_45_36_9330.jpg
/home/pi/Desktop/images/15012025/08/45/image_15012025_08_45_46_10409.jpg
/home/pi/Desktop/images/15012025/08/45/image_15012025_08_45_55_9356.jpg
/home/pi/Desktop/images/15012025/08/45/image_15012025_08_46_06_10360.jpg
/home/pi/Desktop/images/15012025/08/46/image_15012025_08_46_16_10361.jpg
/home/pi/Desktop/images/15012025/08/46/image_15012025_08_46_25_9359.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329240640","1329240607","1329240594","1329240683","1329240677","1329240680"],"photo_ids_order":["1329240594","1329240607","1329240640","1329240677","1329240680","1329240683"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9fec3bb1dd19e7588901d3fe5815adf6.jpg","text":"TemporaryFile(/tmp/multipartBody7941468368838096485asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978793294,"filename":"image_15012025_08_45_55_9356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/69b67d5b20d8c28b3f4912626cf2678b.jpg","text":"TemporaryFile(/tmp/multipartBody4902073413724331042asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978793294,"filename":"image_15012025_08_45_46_10409.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cda08d94bb2e66ff0d5f92bec1e80423.jpg","text":"TemporaryFile(/tmp/multipartBody2116178162174017202asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978793294,"filename":"image_15012025_08_45_36_9330.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/68c3be98d54cf4a5820437794e01837c.jpg","text":"TemporaryFile(/tmp/multipartBody8702915308886175817asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978793294,"filename":"image_15012025_08_46_25_9359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/84f8634da4b9b1b35df4c0df2f5bf0a9.jpg","text":"TemporaryFile(/tmp/multipartBody4654405599117505100asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978793294,"filename":"image_15012025_08_46_06_10360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/520a0c5be25e7cb3e097fe8b6f49c8e3.jpg","text":"TemporaryFile(/tmp/multipartBody2067886420263188204asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978793294,"filename":"image_15012025_08_46_16_10361.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329240640","file1":"1329240607","file0":"1329240594","file4":"1329240680","file5":"1329240683","file3":"1329240677"},"map_files_photo_id_array":[{"photo_id":"1329240683","filename":"file5"},{"photo_id":"1329240640","filename":"file2"},{"photo_id":"1329240680","filename":"file4"},{"photo_id":"1329240607","filename":"file1"},{"photo_id":"1329240594","filename":"file0"},{"photo_id":"1329240677","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329240640":["hashtag1","hashtag2"]},{"1329240607":["hashtag1","hashtag2"]},{"1329240594":["hashtag1","hashtag2"]},{"1329240683":["hashtag1","hashtag2"]},{"1329240677":["hashtag1","hashtag2"]},{"1329240680":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329240640, 1329240607, 1329240594, 1329240683, 1329240677, 1329240680)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.967872619628906 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 15 --only_old 0
2025-01-15 23:06:32.563805
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/46/image_15012025_08_46_36_10496.jpg', '/home/pi/Desktop/images/15012025/08/46/image_15012025_08_46_46_10345.jpg', '/home/pi/Desktop/images/15012025/08/46/image_15012025_08_46_56_9432.jpg', '/home/pi/Desktop/images/15012025/08/46/image_15012025_08_47_06_10416.jpg', '/home/pi/Desktop/images/15012025/08/47/image_15012025_08_47_16_9559.jpg', '/home/pi/Desktop/images/15012025/08/47/image_15012025_08_47_26_10332.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/46/image_15012025_08_46_36_10496.jpg
/home/pi/Desktop/images/15012025/08/46/image_15012025_08_46_46_10345.jpg
/home/pi/Desktop/images/15012025/08/46/image_15012025_08_46_56_9432.jpg
/home/pi/Desktop/images/15012025/08/46/image_15012025_08_47_06_10416.jpg
/home/pi/Desktop/images/15012025/08/47/image_15012025_08_47_16_9559.jpg
/home/pi/Desktop/images/15012025/08/47/image_15012025_08_47_26_10332.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329240710","1329240697","1329240715","1329240699","1329240702","1329240713"],"photo_ids_order":["1329240697","1329240699","1329240702","1329240710","1329240713","1329240715"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f2d6a70fecd3e3b746d45d21cc628d12.jpg","text":"TemporaryFile(/tmp/multipartBody2553696961480897546asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978853587,"filename":"image_15012025_08_47_06_10416.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ca6bb3e34df0204b60d528d1e181abed.jpg","text":"TemporaryFile(/tmp/multipartBody3616756476531967713asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978853587,"filename":"image_15012025_08_46_36_10496.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2da1900b802850ae602c6f5b0afb2af2.jpg","text":"TemporaryFile(/tmp/multipartBody41398150611700166asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978853587,"filename":"image_15012025_08_47_26_10332.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2723ca784a080f7efb5149949ba0b925.jpg","text":"TemporaryFile(/tmp/multipartBody1277200157421773769asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978853587,"filename":"image_15012025_08_46_46_10345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0bf8e04e55e72eded3948673d24531cd.jpg","text":"TemporaryFile(/tmp/multipartBody3020142879066824217asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978853587,"filename":"image_15012025_08_46_56_9432.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f580f71112c278da364bbdbbb29cf6c7.jpg","text":"TemporaryFile(/tmp/multipartBody4768857821015936068asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978853587,"filename":"image_15012025_08_47_16_9559.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329240702","file1":"1329240699","file0":"1329240697","file4":"1329240713","file5":"1329240715","file3":"1329240710"},"map_files_photo_id_array":[{"photo_id":"1329240715","filename":"file5"},{"photo_id":"1329240702","filename":"file2"},{"photo_id":"1329240713","filename":"file4"},{"photo_id":"1329240699","filename":"file1"},{"photo_id":"1329240697","filename":"file0"},{"photo_id":"1329240710","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329240710":["hashtag1","hashtag2"]},{"1329240697":["hashtag1","hashtag2"]},{"1329240715":["hashtag1","hashtag2"]},{"1329240699":["hashtag1","hashtag2"]},{"1329240702":["hashtag1","hashtag2"]},{"1329240713":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329240710, 1329240697, 1329240715, 1329240699, 1329240702, 1329240713)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.520529985427856 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 15 --only_old 0
2025-01-15 23:07:32.841207
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/47/image_15012025_08_47_36_10334.jpg', '/home/pi/Desktop/images/15012025/08/47/image_15012025_08_47_46_9246.jpg', '/home/pi/Desktop/images/15012025/08/47/image_15012025_08_47_56_10739.jpg', '/home/pi/Desktop/images/15012025/08/47/image_15012025_08_48_06_9319.jpg', '/home/pi/Desktop/images/15012025/08/48/image_15012025_08_48_16_10361.jpg', '/home/pi/Desktop/images/15012025/08/48/image_15012025_08_48_29_12735.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/47/image_15012025_08_47_36_10334.jpg
/home/pi/Desktop/images/15012025/08/47/image_15012025_08_47_46_9246.jpg
/home/pi/Desktop/images/15012025/08/47/image_15012025_08_47_56_10739.jpg
/home/pi/Desktop/images/15012025/08/47/image_15012025_08_48_06_9319.jpg
/home/pi/Desktop/images/15012025/08/48/image_15012025_08_48_16_10361.jpg
/home/pi/Desktop/images/15012025/08/48/image_15012025_08_48_29_12735.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329240803","1329240806","1329240784","1329240814","1329240798","1329240809"],"photo_ids_order":["1329240784","1329240798","1329240803","1329240806","1329240809","1329240814"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c675a590f734c9d3d6b726f8bfc2be8b.jpg","text":"TemporaryFile(/tmp/multipartBody4310300410027945111asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978913803,"filename":"image_15012025_08_47_56_10739.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/525ac23d75ae85bed69dfca260d53707.jpg","text":"TemporaryFile(/tmp/multipartBody1105273590638305391asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978913803,"filename":"image_15012025_08_48_06_9319.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/08e84ba60ed0250494063cb5aee59657.jpg","text":"TemporaryFile(/tmp/multipartBody98544395189330968asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978913803,"filename":"image_15012025_08_47_36_10334.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/471628b3e553c765ab97d2f9701b0347.jpg","text":"TemporaryFile(/tmp/multipartBody8058814187013433916asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978913803,"filename":"image_15012025_08_48_29_12735.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/17d4726499515c2bcf4e23d9532f58ae.jpg","text":"TemporaryFile(/tmp/multipartBody784680251864729068asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978913803,"filename":"image_15012025_08_47_46_9246.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f1cad775b7c181bbae082d75c3b6fdbc.jpg","text":"TemporaryFile(/tmp/multipartBody4516784544640842408asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978913803,"filename":"image_15012025_08_48_16_10361.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329240803","file1":"1329240798","file0":"1329240784","file4":"1329240809","file5":"1329240814","file3":"1329240806"},"map_files_photo_id_array":[{"photo_id":"1329240814","filename":"file5"},{"photo_id":"1329240803","filename":"file2"},{"photo_id":"1329240809","filename":"file4"},{"photo_id":"1329240798","filename":"file1"},{"photo_id":"1329240784","filename":"file0"},{"photo_id":"1329240806","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329240803":["hashtag1","hashtag2"]},{"1329240806":["hashtag1","hashtag2"]},{"1329240784":["hashtag1","hashtag2"]},{"1329240814":["hashtag1","hashtag2"]},{"1329240798":["hashtag1","hashtag2"]},{"1329240809":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329240803, 1329240806, 1329240784, 1329240814, 1329240798, 1329240809)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.98267865180969 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 15 --only_old 0
2025-01-15 23:08:32.970953
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/48/image_15012025_08_48_36_7305.jpg', '/home/pi/Desktop/images/15012025/08/48/image_15012025_08_48_45_9358.jpg', '/home/pi/Desktop/images/15012025/08/48/image_15012025_08_48_56_10454.jpg', '/home/pi/Desktop/images/15012025/08/48/image_15012025_08_49_06_10354.jpg', '/home/pi/Desktop/images/15012025/08/49/image_15012025_08_49_16_9335.jpg', '/home/pi/Desktop/images/15012025/08/49/image_15012025_08_49_26_10399.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/48/image_15012025_08_48_36_7305.jpg
/home/pi/Desktop/images/15012025/08/48/image_15012025_08_48_45_9358.jpg
/home/pi/Desktop/images/15012025/08/48/image_15012025_08_48_56_10454.jpg
/home/pi/Desktop/images/15012025/08/48/image_15012025_08_49_06_10354.jpg
/home/pi/Desktop/images/15012025/08/49/image_15012025_08_49_16_9335.jpg
/home/pi/Desktop/images/15012025/08/49/image_15012025_08_49_26_10399.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329240824","1329240832","1329240826","1329240830","1329240833","1329240836"],"photo_ids_order":["1329240824","1329240826","1329240830","1329240832","1329240833","1329240836"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1f8483c7f479bdc919faeb29581aa62c.jpg","text":"TemporaryFile(/tmp/multipartBody7207265268768410910asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978973971,"filename":"image_15012025_08_48_36_7305.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4525e431807de2522a060cce56efb092.jpg","text":"TemporaryFile(/tmp/multipartBody1121826718877143020asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978973971,"filename":"image_15012025_08_49_06_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fb828ca3a274fef2d8835b86944cc756.jpg","text":"TemporaryFile(/tmp/multipartBody280083438651084512asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978973971,"filename":"image_15012025_08_48_45_9358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/47a7fd84d456cf3941003309cc233ddc.jpg","text":"TemporaryFile(/tmp/multipartBody4543484159557863850asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978973971,"filename":"image_15012025_08_48_56_10454.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f71aa0fe0d089430a6f787d250b379af.jpg","text":"TemporaryFile(/tmp/multipartBody1242904024872727011asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978973971,"filename":"image_15012025_08_49_16_9335.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8faea678f0620eb48893dbcd815fb80b.jpg","text":"TemporaryFile(/tmp/multipartBody3002758595847332833asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736978973971,"filename":"image_15012025_08_49_26_10399.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329240830","file1":"1329240826","file0":"1329240824","file4":"1329240833","file5":"1329240836","file3":"1329240832"},"map_files_photo_id_array":[{"photo_id":"1329240836","filename":"file5"},{"photo_id":"1329240830","filename":"file2"},{"photo_id":"1329240833","filename":"file4"},{"photo_id":"1329240826","filename":"file1"},{"photo_id":"1329240824","filename":"file0"},{"photo_id":"1329240832","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329240824":["hashtag1","hashtag2"]},{"1329240832":["hashtag1","hashtag2"]},{"1329240826":["hashtag1","hashtag2"]},{"1329240830":["hashtag1","hashtag2"]},{"1329240833":["hashtag1","hashtag2"]},{"1329240836":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329240824, 1329240832, 1329240826, 1329240830, 1329240833, 1329240836)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.56363606452942 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 15 --only_old 0
2025-01-15 23:09:33.081526
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/49/image_15012025_08_49_36_10370.jpg', '/home/pi/Desktop/images/15012025/08/49/image_15012025_08_49_46_9335.jpg', '/home/pi/Desktop/images/15012025/08/49/image_15012025_08_49_56_10370.jpg', '/home/pi/Desktop/images/15012025/08/49/image_15012025_08_50_05_9356.jpg', '/home/pi/Desktop/images/15012025/08/50/image_15012025_08_50_16_10462.jpg', '/home/pi/Desktop/images/15012025/08/50/image_15012025_08_50_26_10383.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/49/image_15012025_08_49_36_10370.jpg
/home/pi/Desktop/images/15012025/08/49/image_15012025_08_49_46_9335.jpg
/home/pi/Desktop/images/15012025/08/49/image_15012025_08_49_56_10370.jpg
/home/pi/Desktop/images/15012025/08/49/image_15012025_08_50_05_9356.jpg
/home/pi/Desktop/images/15012025/08/50/image_15012025_08_50_16_10462.jpg
/home/pi/Desktop/images/15012025/08/50/image_15012025_08_50_26_10383.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329240862","1329240865","1329240858","1329240881","1329240857","1329240860"],"photo_ids_order":["1329240857","1329240858","1329240860","1329240862","1329240865","1329240881"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7c60337881b8ed4d86dbea399d1729b0.jpg","text":"TemporaryFile(/tmp/multipartBody3629598823626866631asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979034055,"filename":"image_15012025_08_50_05_9356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/de8c0d57aacdd7ce816c17ad7ba66745.jpg","text":"TemporaryFile(/tmp/multipartBody1192305171868298461asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979034055,"filename":"image_15012025_08_50_16_10462.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fdf88c1598a1be79d911d9adc0708127.jpg","text":"TemporaryFile(/tmp/multipartBody1589996183605567116asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979034055,"filename":"image_15012025_08_49_46_9335.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/caf2878fa5f7ec696f9c65914122d721.jpg","text":"TemporaryFile(/tmp/multipartBody8648104131869153911asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979034055,"filename":"image_15012025_08_50_26_10383.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d7b3eb19e9bc16c0a8bac2a850633c31.jpg","text":"TemporaryFile(/tmp/multipartBody3862097814650654150asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979034055,"filename":"image_15012025_08_49_36_10370.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/73affaafc38c93292b4bd6238a5f02c2.jpg","text":"TemporaryFile(/tmp/multipartBody3217260728136337296asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979034055,"filename":"image_15012025_08_49_56_10370.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329240860","file1":"1329240858","file0":"1329240857","file4":"1329240865","file5":"1329240881","file3":"1329240862"},"map_files_photo_id_array":[{"photo_id":"1329240881","filename":"file5"},{"photo_id":"1329240860","filename":"file2"},{"photo_id":"1329240865","filename":"file4"},{"photo_id":"1329240858","filename":"file1"},{"photo_id":"1329240857","filename":"file0"},{"photo_id":"1329240862","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329240862":["hashtag1","hashtag2"]},{"1329240865":["hashtag1","hashtag2"]},{"1329240858":["hashtag1","hashtag2"]},{"1329240881":["hashtag1","hashtag2"]},{"1329240857":["hashtag1","hashtag2"]},{"1329240860":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329240862, 1329240865, 1329240858, 1329240881, 1329240857, 1329240860)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.06976771354675 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 15 --only_old 0
2025-01-15 23:10:32.183733
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/50/image_15012025_08_50_46_10473.jpg', '/home/pi/Desktop/images/15012025/08/50/image_15012025_08_50_55_9367.jpg', '/home/pi/Desktop/images/15012025/08/51/image_15012025_08_51_16_10387.jpg', '/home/pi/Desktop/images/15012025/08/51/image_15012025_08_51_26_9361.jpg', '/home/pi/Desktop/images/15012025/08/51/image_15012025_08_51_36_10375.jpg', '/home/pi/Desktop/images/15012025/08/51/image_15012025_08_51_45_9352.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/50/image_15012025_08_50_46_10473.jpg
/home/pi/Desktop/images/15012025/08/50/image_15012025_08_50_55_9367.jpg
/home/pi/Desktop/images/15012025/08/51/image_15012025_08_51_16_10387.jpg
/home/pi/Desktop/images/15012025/08/51/image_15012025_08_51_26_9361.jpg
/home/pi/Desktop/images/15012025/08/51/image_15012025_08_51_36_10375.jpg
/home/pi/Desktop/images/15012025/08/51/image_15012025_08_51_45_9352.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329241204","1329240919","1329241053","1329240972","1329241122","1329240924"],"photo_ids_order":["1329240919","1329240924","1329240972","1329241053","1329241122","1329241204"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/92c2857bde44bb496d9615a0356ad48d.jpg","text":"TemporaryFile(/tmp/multipartBody108274250305412962asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979093192,"filename":"image_15012025_08_51_45_9352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/beb6848fcdd5385a09c865d797e33002.jpg","text":"TemporaryFile(/tmp/multipartBody1646281420907882726asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979093192,"filename":"image_15012025_08_50_46_10473.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/acd934bb55978fe4cd4a2a5af245a8af.jpg","text":"TemporaryFile(/tmp/multipartBody738101830533940284asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979093192,"filename":"image_15012025_08_51_26_9361.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fb3e5ea2616c179c292480cb7000615f.jpg","text":"TemporaryFile(/tmp/multipartBody8504027330002534705asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979093192,"filename":"image_15012025_08_51_16_10387.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c55239699e8d08d090b69ee8eb0d5bc6.jpg","text":"TemporaryFile(/tmp/multipartBody7563140935113019564asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979093192,"filename":"image_15012025_08_51_36_10375.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c1a690f460fac57a2fd8b6a16c6a830d.jpg","text":"TemporaryFile(/tmp/multipartBody4134488472651330554asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979093192,"filename":"image_15012025_08_50_55_9367.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329240972","file1":"1329240924","file0":"1329240919","file4":"1329241122","file5":"1329241204","file3":"1329241053"},"map_files_photo_id_array":[{"photo_id":"1329241204","filename":"file5"},{"photo_id":"1329240972","filename":"file2"},{"photo_id":"1329241122","filename":"file4"},{"photo_id":"1329240924","filename":"file1"},{"photo_id":"1329240919","filename":"file0"},{"photo_id":"1329241053","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329241204":["hashtag1","hashtag2"]},{"1329240919":["hashtag1","hashtag2"]},{"1329241053":["hashtag1","hashtag2"]},{"1329240972":["hashtag1","hashtag2"]},{"1329241122":["hashtag1","hashtag2"]},{"1329240924":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329241204, 1329240919, 1329241053, 1329240972, 1329241122, 1329240924)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.813263177871704 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 15 --only_old 0
2025-01-15 23:11:32.477146
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/51/image_15012025_08_51_56_10349.jpg', '/home/pi/Desktop/images/15012025/08/51/image_15012025_08_52_06_10358.jpg', '/home/pi/Desktop/images/15012025/08/52/image_15012025_08_52_15_9348.jpg', '/home/pi/Desktop/images/15012025/08/52/image_15012025_08_52_26_10349.jpg', '/home/pi/Desktop/images/15012025/08/52/image_15012025_08_52_36_10418.jpg', '/home/pi/Desktop/images/15012025/08/52/image_15012025_08_52_46_9327.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/51/image_15012025_08_51_56_10349.jpg
/home/pi/Desktop/images/15012025/08/51/image_15012025_08_52_06_10358.jpg
/home/pi/Desktop/images/15012025/08/52/image_15012025_08_52_15_9348.jpg
/home/pi/Desktop/images/15012025/08/52/image_15012025_08_52_26_10349.jpg
/home/pi/Desktop/images/15012025/08/52/image_15012025_08_52_36_10418.jpg
/home/pi/Desktop/images/15012025/08/52/image_15012025_08_52_46_9327.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329241927","1329241816","1329241998","1329241914","1329241725","1329242086"],"photo_ids_order":["1329241725","1329241816","1329241914","1329241927","1329241998","1329242086"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8a275df25206864720273043dab11d07.jpg","text":"TemporaryFile(/tmp/multipartBody1614940573790791603asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979153466,"filename":"image_15012025_08_52_26_10349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2c40a6b25a5781bb71a0589991c567dc.jpg","text":"TemporaryFile(/tmp/multipartBody6945939605087046220asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979153466,"filename":"image_15012025_08_52_06_10358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2ec686adf3a2b52977f9fb9890bdcc25.jpg","text":"TemporaryFile(/tmp/multipartBody1954380443110960824asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979153466,"filename":"image_15012025_08_52_36_10418.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4cceca5d00eaf020b9ce5c4fbfee69ba.jpg","text":"TemporaryFile(/tmp/multipartBody2547559244479922344asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979153466,"filename":"image_15012025_08_52_15_9348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/135222bffb0b41abf9bfebe558e10775.jpg","text":"TemporaryFile(/tmp/multipartBody6215948092518312981asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979153466,"filename":"image_15012025_08_51_56_10349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fe5baeaa1ea58ceb0c4e6f395917f3a4.jpg","text":"TemporaryFile(/tmp/multipartBody5317352605489052548asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979153466,"filename":"image_15012025_08_52_46_9327.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329241914","file1":"1329241816","file0":"1329241725","file4":"1329241998","file5":"1329242086","file3":"1329241927"},"map_files_photo_id_array":[{"photo_id":"1329242086","filename":"file5"},{"photo_id":"1329241914","filename":"file2"},{"photo_id":"1329241998","filename":"file4"},{"photo_id":"1329241816","filename":"file1"},{"photo_id":"1329241725","filename":"file0"},{"photo_id":"1329241927","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329241927":["hashtag1","hashtag2"]},{"1329241816":["hashtag1","hashtag2"]},{"1329241998":["hashtag1","hashtag2"]},{"1329241914":["hashtag1","hashtag2"]},{"1329241725":["hashtag1","hashtag2"]},{"1329242086":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329241927, 1329241816, 1329241998, 1329241914, 1329241725, 1329242086)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.96040201187134 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 15 --only_old 0
2025-01-15 23:12:32.714083
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/52/image_15012025_08_52_56_10414.jpg', '/home/pi/Desktop/images/15012025/08/52/image_15012025_08_53_05_9427.jpg', '/home/pi/Desktop/images/15012025/08/53/image_15012025_08_53_26_10419.jpg', '/home/pi/Desktop/images/15012025/08/53/image_15012025_08_53_36_9351.jpg', '/home/pi/Desktop/images/15012025/08/53/image_15012025_08_53_56_10349.jpg', '/home/pi/Desktop/images/15012025/08/53/image_15012025_08_54_06_9331.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/52/image_15012025_08_52_56_10414.jpg
/home/pi/Desktop/images/15012025/08/52/image_15012025_08_53_05_9427.jpg
/home/pi/Desktop/images/15012025/08/53/image_15012025_08_53_26_10419.jpg
/home/pi/Desktop/images/15012025/08/53/image_15012025_08_53_36_9351.jpg
/home/pi/Desktop/images/15012025/08/53/image_15012025_08_53_56_10349.jpg
/home/pi/Desktop/images/15012025/08/53/image_15012025_08_54_06_9331.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329242637","1329242469","1329242424","1329242313","1329242615","1329242386"],"photo_ids_order":["1329242313","1329242386","1329242424","1329242469","1329242615","1329242637"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1cc89ca395c3c091db3b3707e9a86958.jpg","text":"TemporaryFile(/tmp/multipartBody5372605868493578527asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979213692,"filename":"image_15012025_08_54_06_9331.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9be9a18b2471aae732568581c8b43610.jpg","text":"TemporaryFile(/tmp/multipartBody3436155699861079609asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979213692,"filename":"image_15012025_08_53_36_9351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/228f49e24a9298f85cffea5e942906ab.jpg","text":"TemporaryFile(/tmp/multipartBody1315961972909741634asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979213692,"filename":"image_15012025_08_53_26_10419.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3873a3e433a629c7dffb5cd8ed6ce29e.jpg","text":"TemporaryFile(/tmp/multipartBody4278659306464950157asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979213692,"filename":"image_15012025_08_52_56_10414.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6f4251b4c02c82ad94555a6c63db8d83.jpg","text":"TemporaryFile(/tmp/multipartBody555870598288588355asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979213692,"filename":"image_15012025_08_53_56_10349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d27362f31fa4a8036a3162a945b7574f.jpg","text":"TemporaryFile(/tmp/multipartBody9218877127775481368asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979213692,"filename":"image_15012025_08_53_05_9427.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329242424","file1":"1329242386","file0":"1329242313","file4":"1329242615","file5":"1329242637","file3":"1329242469"},"map_files_photo_id_array":[{"photo_id":"1329242637","filename":"file5"},{"photo_id":"1329242424","filename":"file2"},{"photo_id":"1329242615","filename":"file4"},{"photo_id":"1329242386","filename":"file1"},{"photo_id":"1329242313","filename":"file0"},{"photo_id":"1329242469","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329242637":["hashtag1","hashtag2"]},{"1329242469":["hashtag1","hashtag2"]},{"1329242424":["hashtag1","hashtag2"]},{"1329242313":["hashtag1","hashtag2"]},{"1329242615":["hashtag1","hashtag2"]},{"1329242386":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329242637, 1329242469, 1329242424, 1329242313, 1329242615, 1329242386)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.794562101364136 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 15 --only_old 0
2025-01-15 23:13:33.002888
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/54/image_15012025_08_54_16_10452.jpg', '/home/pi/Desktop/images/15012025/08/54/image_15012025_08_54_25_9330.jpg', '/home/pi/Desktop/images/15012025/08/54/image_15012025_08_54_36_10334.jpg', '/home/pi/Desktop/images/15012025/08/54/image_15012025_08_54_46_10418.jpg', '/home/pi/Desktop/images/15012025/08/54/image_15012025_08_54_55_9333.jpg', '/home/pi/Desktop/images/15012025/08/54/image_15012025_08_55_06_10368.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/54/image_15012025_08_54_16_10452.jpg
/home/pi/Desktop/images/15012025/08/54/image_15012025_08_54_25_9330.jpg
/home/pi/Desktop/images/15012025/08/54/image_15012025_08_54_36_10334.jpg
/home/pi/Desktop/images/15012025/08/54/image_15012025_08_54_46_10418.jpg
/home/pi/Desktop/images/15012025/08/54/image_15012025_08_54_55_9333.jpg
/home/pi/Desktop/images/15012025/08/54/image_15012025_08_55_06_10368.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329242781","1329242984","1329242786","1329242915","1329242980","1329242839"],"photo_ids_order":["1329242781","1329242786","1329242839","1329242915","1329242980","1329242984"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0cf9e099eefee980eca3342c80ba76b1.jpg","text":"TemporaryFile(/tmp/multipartBody653251635324988084asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979273996,"filename":"image_15012025_08_54_16_10452.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3e04612b1101539f0d9daa54e2dd6c06.jpg","text":"TemporaryFile(/tmp/multipartBody7952714298774332688asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979273996,"filename":"image_15012025_08_55_06_10368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a94dbd459bfa4cf64ff62d50db05e86b.jpg","text":"TemporaryFile(/tmp/multipartBody6096335868057534880asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979273996,"filename":"image_15012025_08_54_25_9330.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5e020fd594923dd402fc24b4a948c89a.jpg","text":"TemporaryFile(/tmp/multipartBody7376845013818882524asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979273996,"filename":"image_15012025_08_54_46_10418.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f6dd3b98b46228b4697cf04541289c2b.jpg","text":"TemporaryFile(/tmp/multipartBody2532389721845978348asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979273996,"filename":"image_15012025_08_54_55_9333.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/603170cca2c2836bd9d657e20f2a1df8.jpg","text":"TemporaryFile(/tmp/multipartBody2096123584878978280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979273996,"filename":"image_15012025_08_54_36_10334.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329242839","file1":"1329242786","file0":"1329242781","file4":"1329242980","file5":"1329242984","file3":"1329242915"},"map_files_photo_id_array":[{"photo_id":"1329242984","filename":"file5"},{"photo_id":"1329242839","filename":"file2"},{"photo_id":"1329242980","filename":"file4"},{"photo_id":"1329242786","filename":"file1"},{"photo_id":"1329242781","filename":"file0"},{"photo_id":"1329242915","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329242781":["hashtag1","hashtag2"]},{"1329242984":["hashtag1","hashtag2"]},{"1329242786":["hashtag1","hashtag2"]},{"1329242915":["hashtag1","hashtag2"]},{"1329242980":["hashtag1","hashtag2"]},{"1329242839":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329242781, 1329242984, 1329242786, 1329242915, 1329242980, 1329242839)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 48.037672996520996 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 15 --only_old 0
2025-01-15 23:14:33.133707
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/55/image_15012025_08_55_16_10355.jpg', '/home/pi/Desktop/images/15012025/08/55/image_15012025_08_55_26_9324.jpg', '/home/pi/Desktop/images/15012025/08/55/image_15012025_08_55_36_10394.jpg', '/home/pi/Desktop/images/15012025/08/55/image_15012025_08_55_56_9402.jpg', '/home/pi/Desktop/images/15012025/08/56/image_15012025_08_56_36_10345.jpg', '/home/pi/Desktop/images/15012025/08/56/image_15012025_08_56_46_9346.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/55/image_15012025_08_55_16_10355.jpg
/home/pi/Desktop/images/15012025/08/55/image_15012025_08_55_26_9324.jpg
/home/pi/Desktop/images/15012025/08/55/image_15012025_08_55_36_10394.jpg
/home/pi/Desktop/images/15012025/08/55/image_15012025_08_55_56_9402.jpg
/home/pi/Desktop/images/15012025/08/56/image_15012025_08_56_36_10345.jpg
/home/pi/Desktop/images/15012025/08/56/image_15012025_08_56_46_9346.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329243042","1329243008","1329243037","1329242995","1329243013","1329243078"],"photo_ids_order":["1329242995","1329243008","1329243013","1329243037","1329243042","1329243078"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b0d1bb5ede945d3c4ee842934faad8d9.jpg","text":"TemporaryFile(/tmp/multipartBody8045814365709646095asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979334111,"filename":"image_15012025_08_56_36_10345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1d75f0ef782323e4ca3a200d0acababd.jpg","text":"TemporaryFile(/tmp/multipartBody2047687869101489822asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979334111,"filename":"image_15012025_08_55_26_9324.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bb5cbea53ba7f68aa1ec53877a792ca9.jpg","text":"TemporaryFile(/tmp/multipartBody9126985104557663828asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979334111,"filename":"image_15012025_08_55_56_9402.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/25a8f4623e7bda07415e65bb445e2916.jpg","text":"TemporaryFile(/tmp/multipartBody7584882756695102752asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979334111,"filename":"image_15012025_08_55_16_10355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/338a21d535da3915e7d207b89ad5a291.jpg","text":"TemporaryFile(/tmp/multipartBody1124427196163407918asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979334111,"filename":"image_15012025_08_55_36_10394.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/340fb12b824dd2a7e8c753fc4a8136b2.jpg","text":"TemporaryFile(/tmp/multipartBody4539706886786225863asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979334111,"filename":"image_15012025_08_56_46_9346.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329243013","file1":"1329243008","file0":"1329242995","file4":"1329243042","file5":"1329243078","file3":"1329243037"},"map_files_photo_id_array":[{"photo_id":"1329243078","filename":"file5"},{"photo_id":"1329243013","filename":"file2"},{"photo_id":"1329243042","filename":"file4"},{"photo_id":"1329243008","filename":"file1"},{"photo_id":"1329242995","filename":"file0"},{"photo_id":"1329243037","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329243042":["hashtag1","hashtag2"]},{"1329243008":["hashtag1","hashtag2"]},{"1329243037":["hashtag1","hashtag2"]},{"1329242995":["hashtag1","hashtag2"]},{"1329243013":["hashtag1","hashtag2"]},{"1329243078":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329243042, 1329243008, 1329243037, 1329242995, 1329243013, 1329243078)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.87200975418091 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 15 --only_old 0
2025-01-15 23:15:32.355022
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/56/image_15012025_08_56_56_10345.jpg', '/home/pi/Desktop/images/15012025/08/56/image_15012025_08_57_06_10361.jpg', '/home/pi/Desktop/images/15012025/08/57/image_15012025_08_57_16_9337.jpg', '/home/pi/Desktop/images/15012025/08/57/image_15012025_08_57_26_10396.jpg', '/home/pi/Desktop/images/15012025/08/57/image_15012025_08_57_36_10354.jpg', '/home/pi/Desktop/images/15012025/08/57/image_15012025_08_57_46_9342.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/56/image_15012025_08_56_56_10345.jpg
/home/pi/Desktop/images/15012025/08/56/image_15012025_08_57_06_10361.jpg
/home/pi/Desktop/images/15012025/08/57/image_15012025_08_57_16_9337.jpg
/home/pi/Desktop/images/15012025/08/57/image_15012025_08_57_26_10396.jpg
/home/pi/Desktop/images/15012025/08/57/image_15012025_08_57_36_10354.jpg
/home/pi/Desktop/images/15012025/08/57/image_15012025_08_57_46_9342.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329243324","1329243353","1329243422","1329243388","1329243393","1329243399"],"photo_ids_order":["1329243324","1329243353","1329243388","1329243393","1329243399","1329243422"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6f1f3e1d81f74da931fe518270bebdee.jpg","text":"TemporaryFile(/tmp/multipartBody8347491061253721000asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979393342,"filename":"image_15012025_08_56_56_10345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a4c0712d82050aae5c91eb63fd3541a3.jpg","text":"TemporaryFile(/tmp/multipartBody1605823637642337938asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979393342,"filename":"image_15012025_08_57_06_10361.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5f9c9ce1a4048631e64c6b9d29de3055.jpg","text":"TemporaryFile(/tmp/multipartBody5141894286064545353asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979393342,"filename":"image_15012025_08_57_46_9342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3f11c1f11a16c8284646e6f3ac84bbc3.jpg","text":"TemporaryFile(/tmp/multipartBody6562742791803239001asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979393342,"filename":"image_15012025_08_57_16_9337.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/216cf9e750a9d54590ee3903a7e4df3b.jpg","text":"TemporaryFile(/tmp/multipartBody738854818730275609asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979393342,"filename":"image_15012025_08_57_26_10396.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7217fb9a83177fc00e200b0f7c5a3a3c.jpg","text":"TemporaryFile(/tmp/multipartBody2272596333492724337asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979393342,"filename":"image_15012025_08_57_36_10354.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329243388","file1":"1329243353","file0":"1329243324","file4":"1329243399","file5":"1329243422","file3":"1329243393"},"map_files_photo_id_array":[{"photo_id":"1329243422","filename":"file5"},{"photo_id":"1329243388","filename":"file2"},{"photo_id":"1329243399","filename":"file4"},{"photo_id":"1329243353","filename":"file1"},{"photo_id":"1329243324","filename":"file0"},{"photo_id":"1329243393","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329243324":["hashtag1","hashtag2"]},{"1329243353":["hashtag1","hashtag2"]},{"1329243422":["hashtag1","hashtag2"]},{"1329243388":["hashtag1","hashtag2"]},{"1329243393":["hashtag1","hashtag2"]},{"1329243399":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329243324, 1329243353, 1329243422, 1329243388, 1329243393, 1329243399)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.469277143478394 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 15 --only_old 0
2025-01-15 23:16:32.724635
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/57/image_15012025_08_57_56_10412.jpg', '/home/pi/Desktop/images/15012025/08/57/image_15012025_08_58_05_9338.jpg', '/home/pi/Desktop/images/15012025/08/58/image_15012025_08_58_16_10354.jpg', '/home/pi/Desktop/images/15012025/08/58/image_15012025_08_58_35_9333.jpg', '/home/pi/Desktop/images/15012025/08/58/image_15012025_08_58_46_10353.jpg', '/home/pi/Desktop/images/15012025/08/58/image_15012025_08_58_56_10429.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/57/image_15012025_08_57_56_10412.jpg
/home/pi/Desktop/images/15012025/08/57/image_15012025_08_58_05_9338.jpg
/home/pi/Desktop/images/15012025/08/58/image_15012025_08_58_16_10354.jpg
/home/pi/Desktop/images/15012025/08/58/image_15012025_08_58_35_9333.jpg
/home/pi/Desktop/images/15012025/08/58/image_15012025_08_58_46_10353.jpg
/home/pi/Desktop/images/15012025/08/58/image_15012025_08_58_56_10429.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329243695","1329243650","1329243783","1329243709","1329243699","1329243780"],"photo_ids_order":["1329243650","1329243695","1329243699","1329243709","1329243780","1329243783"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/30f8c0df5e1064c90402da58f1628353.jpg","text":"TemporaryFile(/tmp/multipartBody7619647896316210306asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979453723,"filename":"image_15012025_08_58_05_9338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/13de680ff4398195259d73a07de48a03.jpg","text":"TemporaryFile(/tmp/multipartBody6431824217040361873asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979453723,"filename":"image_15012025_08_57_56_10412.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3a514b255784b42abbcf699b59854db0.jpg","text":"TemporaryFile(/tmp/multipartBody3607540758825945081asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979453723,"filename":"image_15012025_08_58_56_10429.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/527a1247be77201b5977c87820d526f6.jpg","text":"TemporaryFile(/tmp/multipartBody8285598855376129748asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979453723,"filename":"image_15012025_08_58_35_9333.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0b24678bbd2c4401c6a27871dc913dc0.jpg","text":"TemporaryFile(/tmp/multipartBody462871957909916678asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979453723,"filename":"image_15012025_08_58_16_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1a40923b3f3e96db857595ea8faed096.jpg","text":"TemporaryFile(/tmp/multipartBody875392960909898550asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979453723,"filename":"image_15012025_08_58_46_10353.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329243699","file1":"1329243695","file0":"1329243650","file4":"1329243780","file5":"1329243783","file3":"1329243709"},"map_files_photo_id_array":[{"photo_id":"1329243783","filename":"file5"},{"photo_id":"1329243699","filename":"file2"},{"photo_id":"1329243780","filename":"file4"},{"photo_id":"1329243695","filename":"file1"},{"photo_id":"1329243650","filename":"file0"},{"photo_id":"1329243709","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329243695":["hashtag1","hashtag2"]},{"1329243650":["hashtag1","hashtag2"]},{"1329243783":["hashtag1","hashtag2"]},{"1329243709":["hashtag1","hashtag2"]},{"1329243699":["hashtag1","hashtag2"]},{"1329243780":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329243695, 1329243650, 1329243783, 1329243709, 1329243699, 1329243780)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.382659673690796 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 15 --only_old 0
2025-01-15 23:17:33.012166
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/08/58/image_15012025_08_59_06_9363.jpg', '/home/pi/Desktop/images/15012025/08/59/image_15012025_08_59_16_10377.jpg', '/home/pi/Desktop/images/15012025/08/59/image_15012025_08_59_25_9382.jpg', '/home/pi/Desktop/images/15012025/08/59/image_15012025_08_59_36_10365.jpg', '/home/pi/Desktop/images/15012025/08/59/image_15012025_08_59_46_10354.jpg', '/home/pi/Desktop/images/15012025/08/59/image_15012025_08_59_56_9431.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/08/58/image_15012025_08_59_06_9363.jpg
/home/pi/Desktop/images/15012025/08/59/image_15012025_08_59_16_10377.jpg
/home/pi/Desktop/images/15012025/08/59/image_15012025_08_59_25_9382.jpg
/home/pi/Desktop/images/15012025/08/59/image_15012025_08_59_36_10365.jpg
/home/pi/Desktop/images/15012025/08/59/image_15012025_08_59_46_10354.jpg
/home/pi/Desktop/images/15012025/08/59/image_15012025_08_59_56_9431.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329243801","1329243810","1329243804","1329243812","1329243806","1329243808"],"photo_ids_order":["1329243801","1329243804","1329243806","1329243808","1329243810","1329243812"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f4ba91d179ca604dd14ef71d7b9ad592.jpg","text":"TemporaryFile(/tmp/multipartBody3100170727309385599asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979514004,"filename":"image_15012025_08_59_06_9363.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cda67df237238aade167fcd26801606c.jpg","text":"TemporaryFile(/tmp/multipartBody3621335172490613809asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979514004,"filename":"image_15012025_08_59_46_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f7fd0e4b5f1e7c27ccb22afe9a7bb8f0.jpg","text":"TemporaryFile(/tmp/multipartBody3682773990706448243asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979514004,"filename":"image_15012025_08_59_16_10377.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c4e6d6e5c64346a82fd4d10c54e3911b.jpg","text":"TemporaryFile(/tmp/multipartBody3644492325448780413asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979514004,"filename":"image_15012025_08_59_56_9431.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/eaf0df4ee67ff5b14cf29b4481e69072.jpg","text":"TemporaryFile(/tmp/multipartBody2005393899558543049asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979514004,"filename":"image_15012025_08_59_25_9382.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e034b3d8ac280ee30e65d3a687f1670a.jpg","text":"TemporaryFile(/tmp/multipartBody8091642668276289445asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979514004,"filename":"image_15012025_08_59_36_10365.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329243806","file1":"1329243804","file0":"1329243801","file4":"1329243810","file5":"1329243812","file3":"1329243808"},"map_files_photo_id_array":[{"photo_id":"1329243812","filename":"file5"},{"photo_id":"1329243806","filename":"file2"},{"photo_id":"1329243810","filename":"file4"},{"photo_id":"1329243804","filename":"file1"},{"photo_id":"1329243801","filename":"file0"},{"photo_id":"1329243808","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329243801":["hashtag1","hashtag2"]},{"1329243810":["hashtag1","hashtag2"]},{"1329243804":["hashtag1","hashtag2"]},{"1329243812":["hashtag1","hashtag2"]},{"1329243806":["hashtag1","hashtag2"]},{"1329243808":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329243801, 1329243810, 1329243804, 1329243812, 1329243806, 1329243808)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.872711181640625 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 15 --only_old 0
2025-01-15 23:18:32.212315
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/00/image_15012025_09_00_16_10070.jpg', '/home/pi/Desktop/images/15012025/09/00/image_15012025_09_00_26_10352.jpg', '/home/pi/Desktop/images/15012025/09/00/image_15012025_09_00_37_10368.jpg', '/home/pi/Desktop/images/15012025/09/00/image_15012025_09_00_46_9361.jpg', '/home/pi/Desktop/images/15012025/09/00/image_15012025_09_00_56_10350.jpg', '/home/pi/Desktop/images/15012025/09/00/image_15012025_09_01_07_10353.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/00/image_15012025_09_00_16_10070.jpg
/home/pi/Desktop/images/15012025/09/00/image_15012025_09_00_26_10352.jpg
/home/pi/Desktop/images/15012025/09/00/image_15012025_09_00_37_10368.jpg
/home/pi/Desktop/images/15012025/09/00/image_15012025_09_00_46_9361.jpg
/home/pi/Desktop/images/15012025/09/00/image_15012025_09_00_56_10350.jpg
/home/pi/Desktop/images/15012025/09/00/image_15012025_09_01_07_10353.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6034600734710693 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
2025-01-15 23:18:42.131654
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/00/image_15012025_09_00_16_10070.jpg', '/home/pi/Desktop/images/15012025/09/00/image_15012025_09_00_26_10352.jpg', '/home/pi/Desktop/images/15012025/09/00/image_15012025_09_00_37_10368.jpg', '/home/pi/Desktop/images/15012025/09/00/image_15012025_09_00_46_9361.jpg', '/home/pi/Desktop/images/15012025/09/00/image_15012025_09_00_56_10350.jpg', '/home/pi/Desktop/images/15012025/09/00/image_15012025_09_01_07_10353.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/00/image_15012025_09_00_16_10070.jpg
/home/pi/Desktop/images/15012025/09/00/image_15012025_09_00_26_10352.jpg
/home/pi/Desktop/images/15012025/09/00/image_15012025_09_00_37_10368.jpg
/home/pi/Desktop/images/15012025/09/00/image_15012025_09_00_46_9361.jpg
/home/pi/Desktop/images/15012025/09/00/image_15012025_09_00_56_10350.jpg
/home/pi/Desktop/images/15012025/09/00/image_15012025_09_01_07_10353.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329244421","1329244468","1329244456","1329244459","1329244450","1329244435"],"photo_ids_order":["1329244421","1329244435","1329244450","1329244456","1329244459","1329244468"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/052742ca2c86e431253a378f4d2e22e2.jpg","text":"TemporaryFile(/tmp/multipartBody7239581591366532170asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979583029,"filename":"image_15012025_09_00_16_10070.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c679dafbc71e10e8da395a9da8cd878a.jpg","text":"TemporaryFile(/tmp/multipartBody724035609535874237asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979583029,"filename":"image_15012025_09_01_07_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/41e76987cba37d2a0b80b41dbdaf62af.jpg","text":"TemporaryFile(/tmp/multipartBody2454114901628005744asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979583029,"filename":"image_15012025_09_00_46_9361.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cd52c69e0ef82868f0d1be8b4fc23b26.jpg","text":"TemporaryFile(/tmp/multipartBody4045574281968811113asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979583029,"filename":"image_15012025_09_00_56_10350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/96e15f3eaddb42ade4b1342e046c6db5.jpg","text":"TemporaryFile(/tmp/multipartBody595925909774015045asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979583029,"filename":"image_15012025_09_00_37_10368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b150b6d8a1f2a052ef37e355d4ff0895.jpg","text":"TemporaryFile(/tmp/multipartBody1124308588013136612asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979583029,"filename":"image_15012025_09_00_26_10352.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329244450","file1":"1329244435","file0":"1329244421","file4":"1329244459","file5":"1329244468","file3":"1329244456"},"map_files_photo_id_array":[{"photo_id":"1329244468","filename":"file5"},{"photo_id":"1329244450","filename":"file2"},{"photo_id":"1329244459","filename":"file4"},{"photo_id":"1329244435","filename":"file1"},{"photo_id":"1329244421","filename":"file0"},{"photo_id":"1329244456","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329244421":["hashtag1","hashtag2"]},{"1329244468":["hashtag1","hashtag2"]},{"1329244456":["hashtag1","hashtag2"]},{"1329244459":["hashtag1","hashtag2"]},{"1329244450":["hashtag1","hashtag2"]},{"1329244435":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329244421, 1329244468, 1329244456, 1329244459, 1329244450, 1329244435)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.84254002571106 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 15 --only_old 0
2025-01-15 23:19:32.464012
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/01/image_15012025_09_01_16_9340.jpg', '/home/pi/Desktop/images/15012025/09/01/image_15012025_09_01_26_10356.jpg', '/home/pi/Desktop/images/15012025/09/01/image_15012025_09_01_37_10370.jpg', '/home/pi/Desktop/images/15012025/09/01/image_15012025_09_01_46_9415.jpg', '/home/pi/Desktop/images/15012025/09/01/image_15012025_09_01_57_10350.jpg', '/home/pi/Desktop/images/15012025/09/01/image_15012025_09_02_06_9392.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/01/image_15012025_09_01_16_9340.jpg
/home/pi/Desktop/images/15012025/09/01/image_15012025_09_01_26_10356.jpg
/home/pi/Desktop/images/15012025/09/01/image_15012025_09_01_37_10370.jpg
/home/pi/Desktop/images/15012025/09/01/image_15012025_09_01_46_9415.jpg
/home/pi/Desktop/images/15012025/09/01/image_15012025_09_01_57_10350.jpg
/home/pi/Desktop/images/15012025/09/01/image_15012025_09_02_06_9392.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329244769","1329244706","1329244699","1329244774","1329244747","1329244773"],"photo_ids_order":["1329244699","1329244706","1329244747","1329244769","1329244773","1329244774"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0ab5cd8ce04ed587787b0432f0c16c01.jpg","text":"TemporaryFile(/tmp/multipartBody2279359190124395791asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979633473,"filename":"image_15012025_09_01_46_9415.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bf01be56b16ef7927130469a05fbf60c.jpg","text":"TemporaryFile(/tmp/multipartBody688960321651868668asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979633473,"filename":"image_15012025_09_01_26_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/453635ac8a73a890f4a537a773ebf39f.jpg","text":"TemporaryFile(/tmp/multipartBody2941938133114028577asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979633473,"filename":"image_15012025_09_01_16_9340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fafd3aa31857f8a6e4d0b938718b01b8.jpg","text":"TemporaryFile(/tmp/multipartBody7027230021776884832asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979633473,"filename":"image_15012025_09_02_06_9392.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8c4566999e4567f5f75d2236164f3b0f.jpg","text":"TemporaryFile(/tmp/multipartBody6216174620346593898asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979633473,"filename":"image_15012025_09_01_37_10370.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3795d8ae180b11d8507b72104fe19644.jpg","text":"TemporaryFile(/tmp/multipartBody1620533023724934490asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979633473,"filename":"image_15012025_09_01_57_10350.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329244747","file1":"1329244706","file0":"1329244699","file4":"1329244773","file5":"1329244774","file3":"1329244769"},"map_files_photo_id_array":[{"photo_id":"1329244774","filename":"file5"},{"photo_id":"1329244747","filename":"file2"},{"photo_id":"1329244773","filename":"file4"},{"photo_id":"1329244706","filename":"file1"},{"photo_id":"1329244699","filename":"file0"},{"photo_id":"1329244769","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329244769":["hashtag1","hashtag2"]},{"1329244706":["hashtag1","hashtag2"]},{"1329244699":["hashtag1","hashtag2"]},{"1329244774":["hashtag1","hashtag2"]},{"1329244747":["hashtag1","hashtag2"]},{"1329244773":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329244769, 1329244706, 1329244699, 1329244774, 1329244747, 1329244773)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.144577980041504 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 15 --only_old 0
2025-01-15 23:20:32.680251
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/02/image_15012025_09_02_16_10335.jpg', '/home/pi/Desktop/images/15012025/09/02/image_15012025_09_02_27_10353.jpg', '/home/pi/Desktop/images/15012025/09/02/image_15012025_09_02_36_9354.jpg', '/home/pi/Desktop/images/15012025/09/02/image_15012025_09_02_46_10384.jpg', '/home/pi/Desktop/images/15012025/09/02/image_15012025_09_02_57_10342.jpg', '/home/pi/Desktop/images/15012025/09/02/image_15012025_09_03_06_9348.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/02/image_15012025_09_02_16_10335.jpg
/home/pi/Desktop/images/15012025/09/02/image_15012025_09_02_27_10353.jpg
/home/pi/Desktop/images/15012025/09/02/image_15012025_09_02_36_9354.jpg
/home/pi/Desktop/images/15012025/09/02/image_15012025_09_02_46_10384.jpg
/home/pi/Desktop/images/15012025/09/02/image_15012025_09_02_57_10342.jpg
/home/pi/Desktop/images/15012025/09/02/image_15012025_09_03_06_9348.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329244874","1329244795","1329244783","1329244802","1329244799","1329244790"],"photo_ids_order":["1329244783","1329244790","1329244795","1329244799","1329244802","1329244874"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1051ecbe91e88113a6466f918ae6b541.jpg","text":"TemporaryFile(/tmp/multipartBody8020859599249485308asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979693689,"filename":"image_15012025_09_03_06_9348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/aa4322bc9cbe3d4420e6608efd8f32c5.jpg","text":"TemporaryFile(/tmp/multipartBody8936565191141640826asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979693689,"filename":"image_15012025_09_02_36_9354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/747cf52e04633b652d3b351895e1db20.jpg","text":"TemporaryFile(/tmp/multipartBody5285626371855651537asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979693689,"filename":"image_15012025_09_02_16_10335.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6559c5e1f361e022d966fe4db3feaba5.jpg","text":"TemporaryFile(/tmp/multipartBody4515857033003740407asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979693689,"filename":"image_15012025_09_02_57_10342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f324ba7440ffcdb02a3fa9886496eeb0.jpg","text":"TemporaryFile(/tmp/multipartBody5564679639692073322asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979693689,"filename":"image_15012025_09_02_46_10384.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7ceb7b30d9fc51225c7de76b0558b43e.jpg","text":"TemporaryFile(/tmp/multipartBody7464698786085913764asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979693689,"filename":"image_15012025_09_02_27_10353.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329244795","file1":"1329244790","file0":"1329244783","file4":"1329244802","file5":"1329244874","file3":"1329244799"},"map_files_photo_id_array":[{"photo_id":"1329244874","filename":"file5"},{"photo_id":"1329244795","filename":"file2"},{"photo_id":"1329244802","filename":"file4"},{"photo_id":"1329244790","filename":"file1"},{"photo_id":"1329244783","filename":"file0"},{"photo_id":"1329244799","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329244874":["hashtag1","hashtag2"]},{"1329244795":["hashtag1","hashtag2"]},{"1329244783":["hashtag1","hashtag2"]},{"1329244802":["hashtag1","hashtag2"]},{"1329244799":["hashtag1","hashtag2"]},{"1329244790":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329244874, 1329244795, 1329244783, 1329244802, 1329244799, 1329244790)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.56908059120178 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 15 --only_old 0
2025-01-15 23:21:32.977569
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/03/image_15012025_09_03_16_10340.jpg', '/home/pi/Desktop/images/15012025/09/03/image_15012025_09_03_27_10399.jpg', '/home/pi/Desktop/images/15012025/09/03/image_15012025_09_03_36_9348.jpg', '/home/pi/Desktop/images/15012025/09/03/image_15012025_09_03_56_9410.jpg', '/home/pi/Desktop/images/15012025/09/03/image_15012025_09_04_06_10385.jpg', '/home/pi/Desktop/images/15012025/09/04/image_15012025_09_04_17_10359.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/03/image_15012025_09_03_16_10340.jpg
/home/pi/Desktop/images/15012025/09/03/image_15012025_09_03_27_10399.jpg
/home/pi/Desktop/images/15012025/09/03/image_15012025_09_03_36_9348.jpg
/home/pi/Desktop/images/15012025/09/03/image_15012025_09_03_56_9410.jpg
/home/pi/Desktop/images/15012025/09/03/image_15012025_09_04_06_10385.jpg
/home/pi/Desktop/images/15012025/09/04/image_15012025_09_04_17_10359.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.591439962387085 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
2025-01-15 23:21:42.823463
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/03/image_15012025_09_03_16_10340.jpg', '/home/pi/Desktop/images/15012025/09/03/image_15012025_09_03_27_10399.jpg', '/home/pi/Desktop/images/15012025/09/03/image_15012025_09_03_36_9348.jpg', '/home/pi/Desktop/images/15012025/09/03/image_15012025_09_03_56_9410.jpg', '/home/pi/Desktop/images/15012025/09/03/image_15012025_09_04_06_10385.jpg', '/home/pi/Desktop/images/15012025/09/04/image_15012025_09_04_17_10359.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/03/image_15012025_09_03_16_10340.jpg
/home/pi/Desktop/images/15012025/09/03/image_15012025_09_03_27_10399.jpg
/home/pi/Desktop/images/15012025/09/03/image_15012025_09_03_36_9348.jpg
/home/pi/Desktop/images/15012025/09/03/image_15012025_09_03_56_9410.jpg
/home/pi/Desktop/images/15012025/09/03/image_15012025_09_04_06_10385.jpg
/home/pi/Desktop/images/15012025/09/04/image_15012025_09_04_17_10359.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329245146","1329245110","1329245154","1329245157","1329245151","1329245066"],"photo_ids_order":["1329245066","1329245110","1329245146","1329245151","1329245154","1329245157"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d6e331816286f542f6cb6e0a33df6468.jpg","text":"TemporaryFile(/tmp/multipartBody3156238442165297284asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979763730,"filename":"image_15012025_09_03_36_9348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/70963cb76a813c8cf922a9b5c8c64047.jpg","text":"TemporaryFile(/tmp/multipartBody5482009698861365488asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979763730,"filename":"image_15012025_09_03_27_10399.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8ef4b91771f11c420a82f2a11d194f0e.jpg","text":"TemporaryFile(/tmp/multipartBody378695521964507461asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979763730,"filename":"image_15012025_09_04_06_10385.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/31342f0d133dd106ead42c946d020088.jpg","text":"TemporaryFile(/tmp/multipartBody2384151608505457952asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979763730,"filename":"image_15012025_09_04_17_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/10e8e6749c51539c722c7e42bc853eb8.jpg","text":"TemporaryFile(/tmp/multipartBody1126785843335480192asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979763730,"filename":"image_15012025_09_03_56_9410.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/82a3a239a947477142f53d4703ef471c.jpg","text":"TemporaryFile(/tmp/multipartBody3410960028341979644asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979763730,"filename":"image_15012025_09_03_16_10340.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329245146","file1":"1329245110","file0":"1329245066","file4":"1329245154","file5":"1329245157","file3":"1329245151"},"map_files_photo_id_array":[{"photo_id":"1329245157","filename":"file5"},{"photo_id":"1329245146","filename":"file2"},{"photo_id":"1329245154","filename":"file4"},{"photo_id":"1329245110","filename":"file1"},{"photo_id":"1329245066","filename":"file0"},{"photo_id":"1329245151","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329245146":["hashtag1","hashtag2"]},{"1329245110":["hashtag1","hashtag2"]},{"1329245154":["hashtag1","hashtag2"]},{"1329245157":["hashtag1","hashtag2"]},{"1329245151":["hashtag1","hashtag2"]},{"1329245066":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329245146, 1329245110, 1329245154, 1329245157, 1329245151, 1329245066)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.48529505729675 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 15 --only_old 0
2025-01-15 23:22:33.064639
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/04/image_15012025_09_04_26_9362.jpg', '/home/pi/Desktop/images/15012025/09/04/image_15012025_09_04_36_10346.jpg', '/home/pi/Desktop/images/15012025/09/04/image_15012025_09_04_47_10363.jpg', '/home/pi/Desktop/images/15012025/09/04/image_15012025_09_04_56_9424.jpg', '/home/pi/Desktop/images/15012025/09/04/image_15012025_09_05_07_10351.jpg', '/home/pi/Desktop/images/15012025/09/05/image_15012025_09_05_26_10362.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/04/image_15012025_09_04_26_9362.jpg
/home/pi/Desktop/images/15012025/09/04/image_15012025_09_04_36_10346.jpg
/home/pi/Desktop/images/15012025/09/04/image_15012025_09_04_47_10363.jpg
/home/pi/Desktop/images/15012025/09/04/image_15012025_09_04_56_9424.jpg
/home/pi/Desktop/images/15012025/09/04/image_15012025_09_05_07_10351.jpg
/home/pi/Desktop/images/15012025/09/05/image_15012025_09_05_26_10362.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329245240","1329245182","1329245232","1329245235","1329245238","1329245180"],"photo_ids_order":["1329245180","1329245182","1329245232","1329245235","1329245238","1329245240"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/68587b9649253607af98f7fe22e66ad2.jpg","text":"TemporaryFile(/tmp/multipartBody3800310649603819523asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979814040,"filename":"image_15012025_09_05_26_10362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0e0215c8bd9723841bd6671861ce4952.jpg","text":"TemporaryFile(/tmp/multipartBody5422114810470493412asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979814040,"filename":"image_15012025_09_04_36_10346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ede0a9510318ccc3cce4ece4e75126e8.jpg","text":"TemporaryFile(/tmp/multipartBody6239942284371176223asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979814040,"filename":"image_15012025_09_04_47_10363.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/10054b8df6726df3cf924aab9ba5a95c.jpg","text":"TemporaryFile(/tmp/multipartBody1014522028128231941asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979814040,"filename":"image_15012025_09_04_56_9424.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0a92b138c8ff03baff8f7dac9da3a5ca.jpg","text":"TemporaryFile(/tmp/multipartBody473249768025262027asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979814040,"filename":"image_15012025_09_05_07_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/84d5f424004370091085b7fb988967e8.jpg","text":"TemporaryFile(/tmp/multipartBody2952245213489327966asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979814040,"filename":"image_15012025_09_04_26_9362.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329245232","file1":"1329245182","file0":"1329245180","file4":"1329245238","file5":"1329245240","file3":"1329245235"},"map_files_photo_id_array":[{"photo_id":"1329245240","filename":"file5"},{"photo_id":"1329245232","filename":"file2"},{"photo_id":"1329245238","filename":"file4"},{"photo_id":"1329245182","filename":"file1"},{"photo_id":"1329245180","filename":"file0"},{"photo_id":"1329245235","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329245240":["hashtag1","hashtag2"]},{"1329245182":["hashtag1","hashtag2"]},{"1329245232":["hashtag1","hashtag2"]},{"1329245235":["hashtag1","hashtag2"]},{"1329245238":["hashtag1","hashtag2"]},{"1329245180":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329245240, 1329245182, 1329245232, 1329245235, 1329245238, 1329245180)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.47101378440857 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 15 --only_old 0
2025-01-15 23:23:32.273549
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/05/image_15012025_09_05_37_10354.jpg', '/home/pi/Desktop/images/15012025/09/05/image_15012025_09_05_46_9356.jpg', '/home/pi/Desktop/images/15012025/09/05/image_15012025_09_05_56_10336.jpg', '/home/pi/Desktop/images/15012025/09/05/image_15012025_09_06_07_10357.jpg', '/home/pi/Desktop/images/15012025/09/06/image_15012025_09_06_16_9328.jpg', '/home/pi/Desktop/images/15012025/09/06/image_15012025_09_06_26_10397.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/05/image_15012025_09_05_37_10354.jpg
/home/pi/Desktop/images/15012025/09/05/image_15012025_09_05_46_9356.jpg
/home/pi/Desktop/images/15012025/09/05/image_15012025_09_05_56_10336.jpg
/home/pi/Desktop/images/15012025/09/05/image_15012025_09_06_07_10357.jpg
/home/pi/Desktop/images/15012025/09/06/image_15012025_09_06_16_9328.jpg
/home/pi/Desktop/images/15012025/09/06/image_15012025_09_06_26_10397.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329245287","1329245272","1329245284","1329245257","1329245280","1329245268"],"photo_ids_order":["1329245257","1329245268","1329245272","1329245280","1329245284","1329245287"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b8d320732166d79a168a0b5151ddc866.jpg","text":"TemporaryFile(/tmp/multipartBody8760838288263241592asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979873271,"filename":"image_15012025_09_06_26_10397.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d45dde3620da526962975e4387539023.jpg","text":"TemporaryFile(/tmp/multipartBody7660809188083812550asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979873271,"filename":"image_15012025_09_05_56_10336.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/009a702639dabd1d04e164d277fdd6d5.jpg","text":"TemporaryFile(/tmp/multipartBody4345821440567089948asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979873271,"filename":"image_15012025_09_06_16_9328.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f2c53388eed129b209635f9a0accd06a.jpg","text":"TemporaryFile(/tmp/multipartBody2647364422499999611asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979873271,"filename":"image_15012025_09_05_37_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/edc3ff8f4d13a8a88e73537ad8342fab.jpg","text":"TemporaryFile(/tmp/multipartBody9048092156197006228asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979873271,"filename":"image_15012025_09_06_07_10357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/96069a43a827da641e983f0b76595ab6.jpg","text":"TemporaryFile(/tmp/multipartBody6231822852191584138asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979873271,"filename":"image_15012025_09_05_46_9356.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329245272","file1":"1329245268","file0":"1329245257","file4":"1329245284","file5":"1329245287","file3":"1329245280"},"map_files_photo_id_array":[{"photo_id":"1329245287","filename":"file5"},{"photo_id":"1329245272","filename":"file2"},{"photo_id":"1329245284","filename":"file4"},{"photo_id":"1329245268","filename":"file1"},{"photo_id":"1329245257","filename":"file0"},{"photo_id":"1329245280","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329245287":["hashtag1","hashtag2"]},{"1329245272":["hashtag1","hashtag2"]},{"1329245284":["hashtag1","hashtag2"]},{"1329245257":["hashtag1","hashtag2"]},{"1329245280":["hashtag1","hashtag2"]},{"1329245268":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329245287, 1329245272, 1329245284, 1329245257, 1329245280, 1329245268)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 54.50089502334595 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 15 --only_old 0
2025-01-15 23:24:32.399564
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/06/image_15012025_09_06_37_10403.jpg', '/home/pi/Desktop/images/15012025/09/06/image_15012025_09_06_46_9414.jpg', '/home/pi/Desktop/images/15012025/09/06/image_15012025_09_07_06_9438.jpg', '/home/pi/Desktop/images/15012025/09/07/image_15012025_09_07_16_10407.jpg', '/home/pi/Desktop/images/15012025/09/07/image_15012025_09_07_27_10342.jpg', '/home/pi/Desktop/images/15012025/09/07/image_15012025_09_07_36_9409.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/06/image_15012025_09_06_37_10403.jpg
/home/pi/Desktop/images/15012025/09/06/image_15012025_09_06_46_9414.jpg
/home/pi/Desktop/images/15012025/09/06/image_15012025_09_07_06_9438.jpg
/home/pi/Desktop/images/15012025/09/07/image_15012025_09_07_16_10407.jpg
/home/pi/Desktop/images/15012025/09/07/image_15012025_09_07_27_10342.jpg
/home/pi/Desktop/images/15012025/09/07/image_15012025_09_07_36_9409.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6056115627288818 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
2025-01-15 23:24:42.311372
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/06/image_15012025_09_06_37_10403.jpg', '/home/pi/Desktop/images/15012025/09/06/image_15012025_09_06_46_9414.jpg', '/home/pi/Desktop/images/15012025/09/06/image_15012025_09_07_06_9438.jpg', '/home/pi/Desktop/images/15012025/09/07/image_15012025_09_07_16_10407.jpg', '/home/pi/Desktop/images/15012025/09/07/image_15012025_09_07_27_10342.jpg', '/home/pi/Desktop/images/15012025/09/07/image_15012025_09_07_36_9409.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/06/image_15012025_09_06_37_10403.jpg
/home/pi/Desktop/images/15012025/09/06/image_15012025_09_06_46_9414.jpg
/home/pi/Desktop/images/15012025/09/06/image_15012025_09_07_06_9438.jpg
/home/pi/Desktop/images/15012025/09/07/image_15012025_09_07_16_10407.jpg
/home/pi/Desktop/images/15012025/09/07/image_15012025_09_07_27_10342.jpg
/home/pi/Desktop/images/15012025/09/07/image_15012025_09_07_36_9409.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329245312","1329245306","1329245315","1329245302","1329245319","1329245310"],"photo_ids_order":["1329245302","1329245306","1329245310","1329245312","1329245315","1329245319"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d804e44c5bb8494fa6189e74b8ab1769.jpg","text":"TemporaryFile(/tmp/multipartBody4652802160757067834asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979943231,"filename":"image_15012025_09_07_16_10407.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3366c9b14a10d9c871318508d05c9eb0.jpg","text":"TemporaryFile(/tmp/multipartBody61690551605260632asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979943231,"filename":"image_15012025_09_06_46_9414.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e90c7a275990a20a1254bff9121ef12a.jpg","text":"TemporaryFile(/tmp/multipartBody8737110792794817598asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979943231,"filename":"image_15012025_09_07_27_10342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b8d6d388bf9b54631b89f1211b5a1388.jpg","text":"TemporaryFile(/tmp/multipartBody6909396029586974425asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979943231,"filename":"image_15012025_09_06_37_10403.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/044bc41c50413859966de1d331b616fd.jpg","text":"TemporaryFile(/tmp/multipartBody3407779469765055280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979943231,"filename":"image_15012025_09_07_36_9409.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c47f1fe0596acfe198fee9c6c910a1bd.jpg","text":"TemporaryFile(/tmp/multipartBody4498883872481558217asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979943231,"filename":"image_15012025_09_07_06_9438.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329245310","file1":"1329245306","file0":"1329245302","file4":"1329245315","file5":"1329245319","file3":"1329245312"},"map_files_photo_id_array":[{"photo_id":"1329245319","filename":"file5"},{"photo_id":"1329245310","filename":"file2"},{"photo_id":"1329245315","filename":"file4"},{"photo_id":"1329245306","filename":"file1"},{"photo_id":"1329245302","filename":"file0"},{"photo_id":"1329245312","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329245312":["hashtag1","hashtag2"]},{"1329245306":["hashtag1","hashtag2"]},{"1329245315":["hashtag1","hashtag2"]},{"1329245302":["hashtag1","hashtag2"]},{"1329245319":["hashtag1","hashtag2"]},{"1329245310":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329245312, 1329245306, 1329245315, 1329245302, 1329245319, 1329245310)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.35618329048157 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 15 --only_old 0
2025-01-15 23:25:32.572711
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/07/image_15012025_09_07_47_10368.jpg', '/home/pi/Desktop/images/15012025/09/07/image_15012025_09_07_56_9399.jpg', '/home/pi/Desktop/images/15012025/09/07/image_15012025_09_08_06_10406.jpg', '/home/pi/Desktop/images/15012025/09/08/image_15012025_09_08_17_10344.jpg', '/home/pi/Desktop/images/15012025/09/08/image_15012025_09_08_26_9366.jpg', '/home/pi/Desktop/images/15012025/09/08/image_15012025_09_08_36_10344.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/07/image_15012025_09_07_47_10368.jpg
/home/pi/Desktop/images/15012025/09/07/image_15012025_09_07_56_9399.jpg
/home/pi/Desktop/images/15012025/09/07/image_15012025_09_08_06_10406.jpg
/home/pi/Desktop/images/15012025/09/08/image_15012025_09_08_17_10344.jpg
/home/pi/Desktop/images/15012025/09/08/image_15012025_09_08_26_9366.jpg
/home/pi/Desktop/images/15012025/09/08/image_15012025_09_08_36_10344.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329245371","1329245368","1329245353","1329245364","1329245358","1329245361"],"photo_ids_order":["1329245353","1329245358","1329245361","1329245364","1329245368","1329245371"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/42ca91361feadbab22662f4e999aeb33.jpg","text":"TemporaryFile(/tmp/multipartBody8818492815798621517asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979993589,"filename":"image_15012025_09_08_36_10344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6408f652f4b7d9c31c8d82dffd00c5f6.jpg","text":"TemporaryFile(/tmp/multipartBody837145005615774532asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979993589,"filename":"image_15012025_09_08_26_9366.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9fc0954b05be3d8fbcd1fa2d53115653.jpg","text":"TemporaryFile(/tmp/multipartBody7317447898217858318asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979993589,"filename":"image_15012025_09_07_47_10368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/02f17cd9808d037a080fd009364d2b21.jpg","text":"TemporaryFile(/tmp/multipartBody827814583509740927asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979993589,"filename":"image_15012025_09_08_17_10344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fd9f35a65c3e62d32f960442b2b2e412.jpg","text":"TemporaryFile(/tmp/multipartBody4567752973125382212asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979993589,"filename":"image_15012025_09_07_56_9399.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9546f4139495977eba6ea7728484dc3b.jpg","text":"TemporaryFile(/tmp/multipartBody2469644794686827583asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736979993589,"filename":"image_15012025_09_08_06_10406.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329245361","file1":"1329245358","file0":"1329245353","file4":"1329245368","file5":"1329245371","file3":"1329245364"},"map_files_photo_id_array":[{"photo_id":"1329245371","filename":"file5"},{"photo_id":"1329245361","filename":"file2"},{"photo_id":"1329245368","filename":"file4"},{"photo_id":"1329245358","filename":"file1"},{"photo_id":"1329245353","filename":"file0"},{"photo_id":"1329245364","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329245371":["hashtag1","hashtag2"]},{"1329245368":["hashtag1","hashtag2"]},{"1329245353":["hashtag1","hashtag2"]},{"1329245364":["hashtag1","hashtag2"]},{"1329245358":["hashtag1","hashtag2"]},{"1329245361":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329245371, 1329245368, 1329245353, 1329245364, 1329245358, 1329245361)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.90196180343628 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 15 --only_old 0
2025-01-15 23:26:32.816292
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/08/image_15012025_09_08_47_10336.jpg', '/home/pi/Desktop/images/15012025/09/08/image_15012025_09_08_56_9350.jpg', '/home/pi/Desktop/images/15012025/09/08/image_15012025_09_09_07_10507.jpg', '/home/pi/Desktop/images/15012025/09/09/image_15012025_09_09_16_9697.jpg', '/home/pi/Desktop/images/15012025/09/09/image_15012025_09_09_27_10341.jpg', '/home/pi/Desktop/images/15012025/09/09/image_15012025_09_09_36_9463.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/08/image_15012025_09_08_47_10336.jpg
/home/pi/Desktop/images/15012025/09/08/image_15012025_09_08_56_9350.jpg
/home/pi/Desktop/images/15012025/09/08/image_15012025_09_09_07_10507.jpg
/home/pi/Desktop/images/15012025/09/09/image_15012025_09_09_16_9697.jpg
/home/pi/Desktop/images/15012025/09/09/image_15012025_09_09_27_10341.jpg
/home/pi/Desktop/images/15012025/09/09/image_15012025_09_09_36_9463.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329245417","1329245439","1329245430","1329245427","1329245421","1329245424"],"photo_ids_order":["1329245417","1329245421","1329245424","1329245427","1329245430","1329245439"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/aadbeec1b915fc14be86bf546bc0d5f8.jpg","text":"TemporaryFile(/tmp/multipartBody7478255200560448059asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980053841,"filename":"image_15012025_09_08_47_10336.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/eca1c19bc358ca99df9d23b1f8fa4339.jpg","text":"TemporaryFile(/tmp/multipartBody3730083373568246763asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980053841,"filename":"image_15012025_09_09_36_9463.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b18c47406c359613c90c5576b11cda1d.jpg","text":"TemporaryFile(/tmp/multipartBody5932677781017400674asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980053841,"filename":"image_15012025_09_09_27_10341.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5e7a4a85ec1a588473bd33bbb22c0f49.jpg","text":"TemporaryFile(/tmp/multipartBody7046299257139903289asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980053841,"filename":"image_15012025_09_09_16_9697.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2dfafc3b16b6f7315d5c77e262c633dd.jpg","text":"TemporaryFile(/tmp/multipartBody3966236088167087153asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980053841,"filename":"image_15012025_09_08_56_9350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ee0917e08a2f66cf03b3593347952a8d.jpg","text":"TemporaryFile(/tmp/multipartBody6168340775748040054asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980053841,"filename":"image_15012025_09_09_07_10507.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329245424","file1":"1329245421","file0":"1329245417","file4":"1329245430","file5":"1329245439","file3":"1329245427"},"map_files_photo_id_array":[{"photo_id":"1329245439","filename":"file5"},{"photo_id":"1329245424","filename":"file2"},{"photo_id":"1329245430","filename":"file4"},{"photo_id":"1329245421","filename":"file1"},{"photo_id":"1329245417","filename":"file0"},{"photo_id":"1329245427","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329245417":["hashtag1","hashtag2"]},{"1329245439":["hashtag1","hashtag2"]},{"1329245430":["hashtag1","hashtag2"]},{"1329245427":["hashtag1","hashtag2"]},{"1329245421":["hashtag1","hashtag2"]},{"1329245424":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329245417, 1329245439, 1329245430, 1329245427, 1329245421, 1329245424)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.78542160987854 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 15 --only_old 0
2025-01-15 23:27:33.094941
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/09/image_15012025_09_09_46_10363.jpg', '/home/pi/Desktop/images/15012025/09/09/image_15012025_09_09_57_10361.jpg', '/home/pi/Desktop/images/15012025/09/09/image_15012025_09_10_06_9429.jpg', '/home/pi/Desktop/images/15012025/09/10/image_15012025_09_10_17_10379.jpg', '/home/pi/Desktop/images/15012025/09/10/image_15012025_09_10_26_9394.jpg', '/home/pi/Desktop/images/15012025/09/10/image_15012025_09_10_36_10406.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/09/image_15012025_09_09_46_10363.jpg
/home/pi/Desktop/images/15012025/09/09/image_15012025_09_09_57_10361.jpg
/home/pi/Desktop/images/15012025/09/09/image_15012025_09_10_06_9429.jpg
/home/pi/Desktop/images/15012025/09/10/image_15012025_09_10_17_10379.jpg
/home/pi/Desktop/images/15012025/09/10/image_15012025_09_10_26_9394.jpg
/home/pi/Desktop/images/15012025/09/10/image_15012025_09_10_36_10406.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6166200637817383 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
2025-01-15 23:27:43.140518
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/09/image_15012025_09_09_46_10363.jpg', '/home/pi/Desktop/images/15012025/09/09/image_15012025_09_09_57_10361.jpg', '/home/pi/Desktop/images/15012025/09/09/image_15012025_09_10_06_9429.jpg', '/home/pi/Desktop/images/15012025/09/10/image_15012025_09_10_17_10379.jpg', '/home/pi/Desktop/images/15012025/09/10/image_15012025_09_10_26_9394.jpg', '/home/pi/Desktop/images/15012025/09/10/image_15012025_09_10_36_10406.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/09/image_15012025_09_09_46_10363.jpg
/home/pi/Desktop/images/15012025/09/09/image_15012025_09_09_57_10361.jpg
/home/pi/Desktop/images/15012025/09/09/image_15012025_09_10_06_9429.jpg
/home/pi/Desktop/images/15012025/09/10/image_15012025_09_10_17_10379.jpg
/home/pi/Desktop/images/15012025/09/10/image_15012025_09_10_26_9394.jpg
/home/pi/Desktop/images/15012025/09/10/image_15012025_09_10_36_10406.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329245471","1329245485","1329245479","1329245464","1329245476","1329245500"],"photo_ids_order":["1329245464","1329245471","1329245476","1329245479","1329245485","1329245500"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7abebcd89ff06624064cba95c90f2548.jpg","text":"TemporaryFile(/tmp/multipartBody8929926585237274669asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980124029,"filename":"image_15012025_09_09_57_10361.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1db663cb0f03850dc3fd1d85c6661008.jpg","text":"TemporaryFile(/tmp/multipartBody1989525156755103051asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980124029,"filename":"image_15012025_09_10_26_9394.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2cebe411273072021ca440a45b1828d4.jpg","text":"TemporaryFile(/tmp/multipartBody8954672299837812596asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980124029,"filename":"image_15012025_09_10_17_10379.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/73c735bd9f7e7e92f9794d8a4f401d8d.jpg","text":"TemporaryFile(/tmp/multipartBody1980875189739241068asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980124029,"filename":"image_15012025_09_09_46_10363.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a5918ce33e65be44046da9ee92c2a021.jpg","text":"TemporaryFile(/tmp/multipartBody4839975472187439395asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980124029,"filename":"image_15012025_09_10_06_9429.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f4325852329a7a8c3f4f393ddc74fdc3.jpg","text":"TemporaryFile(/tmp/multipartBody8953771710938087599asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980124029,"filename":"image_15012025_09_10_36_10406.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329245476","file1":"1329245471","file0":"1329245464","file4":"1329245485","file5":"1329245500","file3":"1329245479"},"map_files_photo_id_array":[{"photo_id":"1329245500","filename":"file5"},{"photo_id":"1329245476","filename":"file2"},{"photo_id":"1329245485","filename":"file4"},{"photo_id":"1329245471","filename":"file1"},{"photo_id":"1329245464","filename":"file0"},{"photo_id":"1329245479","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329245471":["hashtag1","hashtag2"]},{"1329245485":["hashtag1","hashtag2"]},{"1329245479":["hashtag1","hashtag2"]},{"1329245464":["hashtag1","hashtag2"]},{"1329245476":["hashtag1","hashtag2"]},{"1329245500":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329245471, 1329245485, 1329245479, 1329245464, 1329245476, 1329245500)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.106573820114136 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 15 --only_old 0
2025-01-15 23:28:32.286900
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/10/image_15012025_09_10_47_10343.jpg', '/home/pi/Desktop/images/15012025/09/10/image_15012025_09_10_56_9351.jpg', '/home/pi/Desktop/images/15012025/09/10/image_15012025_09_11_06_10364.jpg', '/home/pi/Desktop/images/15012025/09/11/image_15012025_09_11_17_10340.jpg', '/home/pi/Desktop/images/15012025/09/11/image_15012025_09_11_26_9401.jpg', '/home/pi/Desktop/images/15012025/09/11/image_15012025_09_11_37_10401.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/10/image_15012025_09_10_47_10343.jpg
/home/pi/Desktop/images/15012025/09/10/image_15012025_09_10_56_9351.jpg
/home/pi/Desktop/images/15012025/09/10/image_15012025_09_11_06_10364.jpg
/home/pi/Desktop/images/15012025/09/11/image_15012025_09_11_17_10340.jpg
/home/pi/Desktop/images/15012025/09/11/image_15012025_09_11_26_9401.jpg
/home/pi/Desktop/images/15012025/09/11/image_15012025_09_11_37_10401.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329245624","1329245581","1329245605","1329245613","1329245622","1329245576"],"photo_ids_order":["1329245576","1329245581","1329245605","1329245613","1329245622","1329245624"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b9f5ac4ae3896ce12ffdd4459c1a8e83.jpg","text":"TemporaryFile(/tmp/multipartBody7223573342529554865asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980173321,"filename":"image_15012025_09_11_37_10401.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/05867d5404a0f12ed9dbb2d9dff7c91f.jpg","text":"TemporaryFile(/tmp/multipartBody4059951196320741814asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980173321,"filename":"image_15012025_09_10_56_9351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cdfaf087a6aca89bd14f8f6d45f7caa2.jpg","text":"TemporaryFile(/tmp/multipartBody2754457907570172782asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980173321,"filename":"image_15012025_09_11_06_10364.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3c40fe55c9e8012f0f6e3c39ddd3fff4.jpg","text":"TemporaryFile(/tmp/multipartBody5263448620099262448asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980173321,"filename":"image_15012025_09_11_17_10340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/54471b15bbb30bdf7fa7ffec19ee3068.jpg","text":"TemporaryFile(/tmp/multipartBody3758849831724590398asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980173321,"filename":"image_15012025_09_11_26_9401.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b62b5614eef87d7e1d2e6468293f338c.jpg","text":"TemporaryFile(/tmp/multipartBody4566700918167480725asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980173321,"filename":"image_15012025_09_10_47_10343.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329245605","file1":"1329245581","file0":"1329245576","file4":"1329245622","file5":"1329245624","file3":"1329245613"},"map_files_photo_id_array":[{"photo_id":"1329245624","filename":"file5"},{"photo_id":"1329245605","filename":"file2"},{"photo_id":"1329245622","filename":"file4"},{"photo_id":"1329245581","filename":"file1"},{"photo_id":"1329245576","filename":"file0"},{"photo_id":"1329245613","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329245624":["hashtag1","hashtag2"]},{"1329245581":["hashtag1","hashtag2"]},{"1329245605":["hashtag1","hashtag2"]},{"1329245613":["hashtag1","hashtag2"]},{"1329245622":["hashtag1","hashtag2"]},{"1329245576":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329245624, 1329245581, 1329245605, 1329245613, 1329245622, 1329245576)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.240187644958496 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 15 --only_old 0
2025-01-15 23:29:32.679868
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/11/image_15012025_09_11_46_9411.jpg', '/home/pi/Desktop/images/15012025/09/11/image_15012025_09_11_56_10351.jpg', '/home/pi/Desktop/images/15012025/09/11/image_15012025_09_12_07_10342.jpg', '/home/pi/Desktop/images/15012025/09/12/image_15012025_09_12_16_9394.jpg', '/home/pi/Desktop/images/15012025/09/12/image_15012025_09_12_27_10384.jpg', '/home/pi/Desktop/images/15012025/09/12/image_15012025_09_12_46_9334.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/11/image_15012025_09_11_46_9411.jpg
/home/pi/Desktop/images/15012025/09/11/image_15012025_09_11_56_10351.jpg
/home/pi/Desktop/images/15012025/09/11/image_15012025_09_12_07_10342.jpg
/home/pi/Desktop/images/15012025/09/12/image_15012025_09_12_16_9394.jpg
/home/pi/Desktop/images/15012025/09/12/image_15012025_09_12_27_10384.jpg
/home/pi/Desktop/images/15012025/09/12/image_15012025_09_12_46_9334.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329246298","1329246116","1329246598","1329246426","1329246596","1329246600"],"photo_ids_order":["1329246116","1329246298","1329246426","1329246596","1329246598","1329246600"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bee0324e78c947b55fa643c5fc224757.jpg","text":"TemporaryFile(/tmp/multipartBody3952161123983981491asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980233667,"filename":"image_15012025_09_11_56_10351.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3c501a23b1e1a45254f850fdb7e694b7.jpg","text":"TemporaryFile(/tmp/multipartBody9151842107487459589asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980233667,"filename":"image_15012025_09_11_46_9411.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4677801635e8d38967e9ab99254be60e.jpg","text":"TemporaryFile(/tmp/multipartBody2145460725912984671asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980233667,"filename":"image_15012025_09_12_27_10384.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/70f1775ce95f9f68cb1427ba1a04f1e0.jpg","text":"TemporaryFile(/tmp/multipartBody5091034694464617308asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980233667,"filename":"image_15012025_09_12_07_10342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/11100c2e6cc3e0e2961dbc9c90b2ccb1.jpg","text":"TemporaryFile(/tmp/multipartBody5171935178370157353asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980233667,"filename":"image_15012025_09_12_16_9394.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/761673ad2ce78a312ad047dd381ee410.jpg","text":"TemporaryFile(/tmp/multipartBody3168468485223332973asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980233667,"filename":"image_15012025_09_12_46_9334.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329246426","file1":"1329246298","file0":"1329246116","file4":"1329246598","file5":"1329246600","file3":"1329246596"},"map_files_photo_id_array":[{"photo_id":"1329246600","filename":"file5"},{"photo_id":"1329246426","filename":"file2"},{"photo_id":"1329246598","filename":"file4"},{"photo_id":"1329246298","filename":"file1"},{"photo_id":"1329246116","filename":"file0"},{"photo_id":"1329246596","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329246298":["hashtag1","hashtag2"]},{"1329246116":["hashtag1","hashtag2"]},{"1329246598":["hashtag1","hashtag2"]},{"1329246426":["hashtag1","hashtag2"]},{"1329246596":["hashtag1","hashtag2"]},{"1329246600":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329246298, 1329246116, 1329246598, 1329246426, 1329246596, 1329246600)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.46042227745056 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 15 --only_old 0
2025-01-15 23:30:32.923292
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/12/image_15012025_09_12_57_10364.jpg', '/home/pi/Desktop/images/15012025/09/12/image_15012025_09_13_06_9397.jpg', '/home/pi/Desktop/images/15012025/09/13/image_15012025_09_13_27_10385.jpg', '/home/pi/Desktop/images/15012025/09/13/image_15012025_09_13_36_9417.jpg', '/home/pi/Desktop/images/15012025/09/13/image_15012025_09_14_06_10370.jpg', '/home/pi/Desktop/images/15012025/09/14/image_15012025_09_14_17_10338.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/12/image_15012025_09_12_57_10364.jpg
/home/pi/Desktop/images/15012025/09/12/image_15012025_09_13_06_9397.jpg
/home/pi/Desktop/images/15012025/09/13/image_15012025_09_13_27_10385.jpg
/home/pi/Desktop/images/15012025/09/13/image_15012025_09_13_36_9417.jpg
/home/pi/Desktop/images/15012025/09/13/image_15012025_09_14_06_10370.jpg
/home/pi/Desktop/images/15012025/09/14/image_15012025_09_14_17_10338.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6191701889038086 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
2025-01-15 23:30:42.744324
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/12/image_15012025_09_12_57_10364.jpg', '/home/pi/Desktop/images/15012025/09/12/image_15012025_09_13_06_9397.jpg', '/home/pi/Desktop/images/15012025/09/13/image_15012025_09_13_27_10385.jpg', '/home/pi/Desktop/images/15012025/09/13/image_15012025_09_13_36_9417.jpg', '/home/pi/Desktop/images/15012025/09/13/image_15012025_09_14_06_10370.jpg', '/home/pi/Desktop/images/15012025/09/14/image_15012025_09_14_17_10338.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/12/image_15012025_09_12_57_10364.jpg
/home/pi/Desktop/images/15012025/09/12/image_15012025_09_13_06_9397.jpg
/home/pi/Desktop/images/15012025/09/13/image_15012025_09_13_27_10385.jpg
/home/pi/Desktop/images/15012025/09/13/image_15012025_09_13_36_9417.jpg
/home/pi/Desktop/images/15012025/09/13/image_15012025_09_14_06_10370.jpg
/home/pi/Desktop/images/15012025/09/14/image_15012025_09_14_17_10338.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329247351","1329247246","1329247411","1329246987","1329247295","1329246927"],"photo_ids_order":["1329246927","1329246987","1329247246","1329247295","1329247351","1329247411"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5f6605c281606bab88ab00e3066c4f25.jpg","text":"TemporaryFile(/tmp/multipartBody3782267571729193190asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980303643,"filename":"image_15012025_09_14_06_10370.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/72fba7eb4c5701c4e14e084515a8da64.jpg","text":"TemporaryFile(/tmp/multipartBody9114030469865814829asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980303643,"filename":"image_15012025_09_13_27_10385.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b65604c347de7e08e7646fe8277c8b39.jpg","text":"TemporaryFile(/tmp/multipartBody5773200247053416499asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980303643,"filename":"image_15012025_09_14_17_10338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3cd65c50a99563b4d621edd35ff1a79d.jpg","text":"TemporaryFile(/tmp/multipartBody332900875737628489asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980303643,"filename":"image_15012025_09_13_06_9397.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d992ca20677420510dd845232f1a0eeb.jpg","text":"TemporaryFile(/tmp/multipartBody3945029436775632336asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980303643,"filename":"image_15012025_09_13_36_9417.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d448a5cbf660f6791c30f50388cde3db.jpg","text":"TemporaryFile(/tmp/multipartBody3460409600124142149asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980303643,"filename":"image_15012025_09_12_57_10364.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329247246","file1":"1329246987","file0":"1329246927","file4":"1329247351","file5":"1329247411","file3":"1329247295"},"map_files_photo_id_array":[{"photo_id":"1329247411","filename":"file5"},{"photo_id":"1329247246","filename":"file2"},{"photo_id":"1329247351","filename":"file4"},{"photo_id":"1329246987","filename":"file1"},{"photo_id":"1329246927","filename":"file0"},{"photo_id":"1329247295","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329247351":["hashtag1","hashtag2"]},{"1329247246":["hashtag1","hashtag2"]},{"1329247411":["hashtag1","hashtag2"]},{"1329246987":["hashtag1","hashtag2"]},{"1329247295":["hashtag1","hashtag2"]},{"1329246927":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329247351, 1329247246, 1329247411, 1329246987, 1329247295, 1329246927)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.91673183441162 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 15 --only_old 0
2025-01-15 23:31:33.007055
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/14/image_15012025_09_14_36_10362.jpg', '/home/pi/Desktop/images/15012025/09/15/image_15012025_09_15_16_9445.jpg', '/home/pi/Desktop/images/15012025/09/15/image_15012025_09_15_26_10360.jpg', '/home/pi/Desktop/images/15012025/09/15/image_15012025_09_15_46_9408.jpg', '/home/pi/Desktop/images/15012025/09/15/image_15012025_09_15_56_10406.jpg', '/home/pi/Desktop/images/15012025/09/16/image_15012025_09_16_36_9421.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/14/image_15012025_09_14_36_10362.jpg
/home/pi/Desktop/images/15012025/09/15/image_15012025_09_15_16_9445.jpg
/home/pi/Desktop/images/15012025/09/15/image_15012025_09_15_26_10360.jpg
/home/pi/Desktop/images/15012025/09/15/image_15012025_09_15_46_9408.jpg
/home/pi/Desktop/images/15012025/09/15/image_15012025_09_15_56_10406.jpg
/home/pi/Desktop/images/15012025/09/16/image_15012025_09_16_36_9421.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329247822","1329248157","1329248012","1329248248","1329248083","1329247925"],"photo_ids_order":["1329247822","1329247925","1329248012","1329248083","1329248157","1329248248"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e1e9e3ff913a06a16174deb4b7bd52be.jpg","text":"TemporaryFile(/tmp/multipartBody6884955883088625782asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980353981,"filename":"image_15012025_09_14_36_10362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8da83a696639e6d7c617bee549d3bc50.jpg","text":"TemporaryFile(/tmp/multipartBody3694111768117680021asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980353981,"filename":"image_15012025_09_15_56_10406.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cc33d01e96d182072c266c95e1ff2c88.jpg","text":"TemporaryFile(/tmp/multipartBody4207371983717415570asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980353981,"filename":"image_15012025_09_15_26_10360.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/40b693367b9cdadaaecebe0f828dd593.jpg","text":"TemporaryFile(/tmp/multipartBody5993214957212549965asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980353981,"filename":"image_15012025_09_16_36_9421.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0a57175401abbead016c92d31c35ace8.jpg","text":"TemporaryFile(/tmp/multipartBody4728262739393738402asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980353981,"filename":"image_15012025_09_15_46_9408.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c1161714612baf2df272bee243b99be6.jpg","text":"TemporaryFile(/tmp/multipartBody8416297593403053315asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980353981,"filename":"image_15012025_09_15_16_9445.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329248012","file1":"1329247925","file0":"1329247822","file4":"1329248157","file5":"1329248248","file3":"1329248083"},"map_files_photo_id_array":[{"photo_id":"1329248248","filename":"file5"},{"photo_id":"1329248012","filename":"file2"},{"photo_id":"1329248157","filename":"file4"},{"photo_id":"1329247925","filename":"file1"},{"photo_id":"1329247822","filename":"file0"},{"photo_id":"1329248083","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329247822":["hashtag1","hashtag2"]},{"1329248157":["hashtag1","hashtag2"]},{"1329248012":["hashtag1","hashtag2"]},{"1329248248":["hashtag1","hashtag2"]},{"1329248083":["hashtag1","hashtag2"]},{"1329247925":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329247822, 1329248157, 1329248012, 1329248248, 1329248083, 1329247925)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.860244274139404 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 15 --only_old 0
2025-01-15 23:32:32.322543
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/16/image_15012025_09_16_46_10380.jpg', '/home/pi/Desktop/images/15012025/09/16/image_15012025_09_16_57_10313.jpg', '/home/pi/Desktop/images/15012025/09/17/image_15012025_09_17_16_10357.jpg', '/home/pi/Desktop/images/15012025/09/17/image_15012025_09_17_27_10350.jpg', '/home/pi/Desktop/images/15012025/09/17/image_15012025_09_17_36_9333.jpg', '/home/pi/Desktop/images/15012025/09/17/image_15012025_09_17_46_10367.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/16/image_15012025_09_16_46_10380.jpg
/home/pi/Desktop/images/15012025/09/16/image_15012025_09_16_57_10313.jpg
/home/pi/Desktop/images/15012025/09/17/image_15012025_09_17_16_10357.jpg
/home/pi/Desktop/images/15012025/09/17/image_15012025_09_17_27_10350.jpg
/home/pi/Desktop/images/15012025/09/17/image_15012025_09_17_36_9333.jpg
/home/pi/Desktop/images/15012025/09/17/image_15012025_09_17_46_10367.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329248361","1329248387","1329248372","1329248477","1329248366","1329248368"],"photo_ids_order":["1329248361","1329248366","1329248368","1329248372","1329248387","1329248477"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/12460eb5a3ca57fd8b91d989a6d2d793.jpg","text":"TemporaryFile(/tmp/multipartBody2488561309484636868asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980413359,"filename":"image_15012025_09_16_46_10380.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/45e14471aded2eea3604ecb0a9c281a3.jpg","text":"TemporaryFile(/tmp/multipartBody6936818141994888276asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980413359,"filename":"image_15012025_09_17_36_9333.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6443a1c980f363f1a8855af4b46ffc62.jpg","text":"TemporaryFile(/tmp/multipartBody4041373418981612632asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980413359,"filename":"image_15012025_09_17_27_10350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/74753cdca7174d22e4a34180d3f2c904.jpg","text":"TemporaryFile(/tmp/multipartBody356236081854369349asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980413359,"filename":"image_15012025_09_17_46_10367.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4ebd6debd2ddd0d49050eebf1eaac33a.jpg","text":"TemporaryFile(/tmp/multipartBody1639098185475881756asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980413359,"filename":"image_15012025_09_16_57_10313.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/404e36ae945980deacf520a454a2b86d.jpg","text":"TemporaryFile(/tmp/multipartBody8397118844792134638asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980413359,"filename":"image_15012025_09_17_16_10357.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329248368","file1":"1329248366","file0":"1329248361","file4":"1329248387","file5":"1329248477","file3":"1329248372"},"map_files_photo_id_array":[{"photo_id":"1329248477","filename":"file5"},{"photo_id":"1329248368","filename":"file2"},{"photo_id":"1329248387","filename":"file4"},{"photo_id":"1329248366","filename":"file1"},{"photo_id":"1329248361","filename":"file0"},{"photo_id":"1329248372","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329248361":["hashtag1","hashtag2"]},{"1329248387":["hashtag1","hashtag2"]},{"1329248372":["hashtag1","hashtag2"]},{"1329248477":["hashtag1","hashtag2"]},{"1329248366":["hashtag1","hashtag2"]},{"1329248368":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329248361, 1329248387, 1329248372, 1329248477, 1329248366, 1329248368)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.67953681945801 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 15 --only_old 0
2025-01-15 23:33:32.694594
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/17/image_15012025_09_17_57_10330.jpg', '/home/pi/Desktop/images/15012025/09/18/image_15012025_09_18_26_9397.jpg', '/home/pi/Desktop/images/15012025/09/18/image_15012025_09_18_36_10434.jpg', '/home/pi/Desktop/images/15012025/09/18/image_15012025_09_18_47_10337.jpg', '/home/pi/Desktop/images/15012025/09/18/image_15012025_09_18_56_9329.jpg', '/home/pi/Desktop/images/15012025/09/19/image_15012025_09_19_46_9417.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/17/image_15012025_09_17_57_10330.jpg
/home/pi/Desktop/images/15012025/09/18/image_15012025_09_18_26_9397.jpg
/home/pi/Desktop/images/15012025/09/18/image_15012025_09_18_36_10434.jpg
/home/pi/Desktop/images/15012025/09/18/image_15012025_09_18_47_10337.jpg
/home/pi/Desktop/images/15012025/09/18/image_15012025_09_18_56_9329.jpg
/home/pi/Desktop/images/15012025/09/19/image_15012025_09_19_46_9417.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6232218742370605 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
2025-01-15 23:33:42.649824
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/17/image_15012025_09_17_57_10330.jpg', '/home/pi/Desktop/images/15012025/09/18/image_15012025_09_18_26_9397.jpg', '/home/pi/Desktop/images/15012025/09/18/image_15012025_09_18_36_10434.jpg', '/home/pi/Desktop/images/15012025/09/18/image_15012025_09_18_47_10337.jpg', '/home/pi/Desktop/images/15012025/09/18/image_15012025_09_18_56_9329.jpg', '/home/pi/Desktop/images/15012025/09/19/image_15012025_09_19_46_9417.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/17/image_15012025_09_17_57_10330.jpg
/home/pi/Desktop/images/15012025/09/18/image_15012025_09_18_26_9397.jpg
/home/pi/Desktop/images/15012025/09/18/image_15012025_09_18_36_10434.jpg
/home/pi/Desktop/images/15012025/09/18/image_15012025_09_18_47_10337.jpg
/home/pi/Desktop/images/15012025/09/18/image_15012025_09_18_56_9329.jpg
/home/pi/Desktop/images/15012025/09/19/image_15012025_09_19_46_9417.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329248658","1329248669","1329248654","1329248702","1329248662","1329248665"],"photo_ids_order":["1329248654","1329248658","1329248662","1329248665","1329248669","1329248702"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a4410897159a60f1bad8391dfed1b0fd.jpg","text":"TemporaryFile(/tmp/multipartBody5861721392581026517asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980483562,"filename":"image_15012025_09_18_26_9397.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d47f7c06bde0c0b160c9ef4f8b88e344.jpg","text":"TemporaryFile(/tmp/multipartBody1054797152799863923asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980483562,"filename":"image_15012025_09_18_56_9329.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/cdedc704783f3e4112d8678d639b0daa.jpg","text":"TemporaryFile(/tmp/multipartBody1818837520373596545asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980483562,"filename":"image_15012025_09_17_57_10330.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/30f4561808bfe3023787614718a7652b.jpg","text":"TemporaryFile(/tmp/multipartBody7603347861885727535asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980483562,"filename":"image_15012025_09_19_46_9417.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e613c9a9768fb39c0abc448e2ed3457b.jpg","text":"TemporaryFile(/tmp/multipartBody7010350793963242195asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980483562,"filename":"image_15012025_09_18_36_10434.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/44c1c6a0300f845a35c0e6ca8ea2ab18.jpg","text":"TemporaryFile(/tmp/multipartBody695448496808447968asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980483562,"filename":"image_15012025_09_18_47_10337.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329248662","file1":"1329248658","file0":"1329248654","file4":"1329248669","file5":"1329248702","file3":"1329248665"},"map_files_photo_id_array":[{"photo_id":"1329248702","filename":"file5"},{"photo_id":"1329248662","filename":"file2"},{"photo_id":"1329248669","filename":"file4"},{"photo_id":"1329248658","filename":"file1"},{"photo_id":"1329248654","filename":"file0"},{"photo_id":"1329248665","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329248658":["hashtag1","hashtag2"]},{"1329248669":["hashtag1","hashtag2"]},{"1329248654":["hashtag1","hashtag2"]},{"1329248702":["hashtag1","hashtag2"]},{"1329248662":["hashtag1","hashtag2"]},{"1329248665":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329248658, 1329248669, 1329248654, 1329248702, 1329248662, 1329248665)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 46.30054044723511 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 15 --only_old 0
2025-01-15 23:34:32.943478
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/19/image_15012025_09_19_56_10394.jpg', '/home/pi/Desktop/images/15012025/09/19/image_15012025_09_20_07_10356.jpg', '/home/pi/Desktop/images/15012025/09/20/image_15012025_09_20_16_9328.jpg', '/home/pi/Desktop/images/15012025/09/20/image_15012025_09_20_26_10343.jpg', '/home/pi/Desktop/images/15012025/09/20/image_15012025_09_20_37_10354.jpg', '/home/pi/Desktop/images/15012025/09/20/image_15012025_09_20_56_10323.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/19/image_15012025_09_19_56_10394.jpg
/home/pi/Desktop/images/15012025/09/19/image_15012025_09_20_07_10356.jpg
/home/pi/Desktop/images/15012025/09/20/image_15012025_09_20_16_9328.jpg
/home/pi/Desktop/images/15012025/09/20/image_15012025_09_20_26_10343.jpg
/home/pi/Desktop/images/15012025/09/20/image_15012025_09_20_37_10354.jpg
/home/pi/Desktop/images/15012025/09/20/image_15012025_09_20_56_10323.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329248902","1329248916","1329248904","1329248912","1329248918","1329248920"],"photo_ids_order":["1329248902","1329248904","1329248912","1329248916","1329248918","1329248920"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/981a6010bcfab16c2781b7ba2ecfbe6c.jpg","text":"TemporaryFile(/tmp/multipartBody1856584228187729264asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980533907,"filename":"image_15012025_09_19_56_10394.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/56dbeac0d09b4ebb2909b369a5846b9d.jpg","text":"TemporaryFile(/tmp/multipartBody8694687527550954796asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980533907,"filename":"image_15012025_09_20_26_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3670cc099a638a0c12cdb87dce6581d8.jpg","text":"TemporaryFile(/tmp/multipartBody6716174003501153861asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980533907,"filename":"image_15012025_09_20_07_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b9db8f40262f967743ebf0c4b3369e93.jpg","text":"TemporaryFile(/tmp/multipartBody4948422205884466196asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980533907,"filename":"image_15012025_09_20_16_9328.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/03d45247711b62757dededdc7666801e.jpg","text":"TemporaryFile(/tmp/multipartBody6186517274167187124asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980533907,"filename":"image_15012025_09_20_37_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0d0b36a93a9797611f144c89f454a93e.jpg","text":"TemporaryFile(/tmp/multipartBody4276157247347825503asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980533907,"filename":"image_15012025_09_20_56_10323.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329248912","file1":"1329248904","file0":"1329248902","file4":"1329248918","file5":"1329248920","file3":"1329248916"},"map_files_photo_id_array":[{"photo_id":"1329248920","filename":"file5"},{"photo_id":"1329248912","filename":"file2"},{"photo_id":"1329248918","filename":"file4"},{"photo_id":"1329248904","filename":"file1"},{"photo_id":"1329248902","filename":"file0"},{"photo_id":"1329248916","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329248902":["hashtag1","hashtag2"]},{"1329248916":["hashtag1","hashtag2"]},{"1329248904":["hashtag1","hashtag2"]},{"1329248912":["hashtag1","hashtag2"]},{"1329248918":["hashtag1","hashtag2"]},{"1329248920":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329248902, 1329248916, 1329248904, 1329248912, 1329248918, 1329248920)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.83695340156555 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 15 --only_old 0
2025-01-15 23:35:33.102364
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/20/image_15012025_09_21_07_10340.jpg', '/home/pi/Desktop/images/15012025/09/21/image_15012025_09_21_16_9347.jpg', '/home/pi/Desktop/images/15012025/09/21/image_15012025_09_21_26_10343.jpg', '/home/pi/Desktop/images/15012025/09/21/image_15012025_09_21_37_10347.jpg', '/home/pi/Desktop/images/15012025/09/21/image_15012025_09_21_46_9336.jpg', '/home/pi/Desktop/images/15012025/09/21/image_15012025_09_21_56_10332.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/20/image_15012025_09_21_07_10340.jpg
/home/pi/Desktop/images/15012025/09/21/image_15012025_09_21_16_9347.jpg
/home/pi/Desktop/images/15012025/09/21/image_15012025_09_21_26_10343.jpg
/home/pi/Desktop/images/15012025/09/21/image_15012025_09_21_37_10347.jpg
/home/pi/Desktop/images/15012025/09/21/image_15012025_09_21_46_9336.jpg
/home/pi/Desktop/images/15012025/09/21/image_15012025_09_21_56_10332.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329249234","1329249141","1329248940","1329249056","1329249283","1329248962"],"photo_ids_order":["1329248940","1329248962","1329249056","1329249141","1329249234","1329249283"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c8112abafd3d148d592744004f3ef69f.jpg","text":"TemporaryFile(/tmp/multipartBody7785263378671336236asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980594076,"filename":"image_15012025_09_21_46_9336.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4b1b5db3164612384a6899e99c925eb8.jpg","text":"TemporaryFile(/tmp/multipartBody2199470802185390456asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980594076,"filename":"image_15012025_09_21_37_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c7b57efb4707d68f9e06c441788ae70e.jpg","text":"TemporaryFile(/tmp/multipartBody1721766922413538410asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980594076,"filename":"image_15012025_09_21_07_10340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/683822ebbd1b6185ec5d90af70e6b383.jpg","text":"TemporaryFile(/tmp/multipartBody2328669764255864875asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980594076,"filename":"image_15012025_09_21_26_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a7ef0288c00621e914d9f9d5209f07b5.jpg","text":"TemporaryFile(/tmp/multipartBody6754153802879703062asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980594076,"filename":"image_15012025_09_21_56_10332.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/673016a84a06f223f19132095a0fdefa.jpg","text":"TemporaryFile(/tmp/multipartBody8123259798140815107asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980594076,"filename":"image_15012025_09_21_16_9347.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329249056","file1":"1329248962","file0":"1329248940","file4":"1329249234","file5":"1329249283","file3":"1329249141"},"map_files_photo_id_array":[{"photo_id":"1329249283","filename":"file5"},{"photo_id":"1329249056","filename":"file2"},{"photo_id":"1329249234","filename":"file4"},{"photo_id":"1329248962","filename":"file1"},{"photo_id":"1329248940","filename":"file0"},{"photo_id":"1329249141","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329249234":["hashtag1","hashtag2"]},{"1329249141":["hashtag1","hashtag2"]},{"1329248940":["hashtag1","hashtag2"]},{"1329249056":["hashtag1","hashtag2"]},{"1329249283":["hashtag1","hashtag2"]},{"1329248962":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329249234, 1329249141, 1329248940, 1329249056, 1329249283, 1329248962)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.63447690010071 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 15 --only_old 0
2025-01-15 23:36:32.257161
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/22/image_15012025_09_22_16_9330.jpg', '/home/pi/Desktop/images/15012025/09/22/image_15012025_09_22_37_10353.jpg', '/home/pi/Desktop/images/15012025/09/22/image_15012025_09_22_46_9334.jpg', '/home/pi/Desktop/images/15012025/09/22/image_15012025_09_22_57_10424.jpg', '/home/pi/Desktop/images/15012025/09/22/image_15012025_09_23_06_9440.jpg', '/home/pi/Desktop/images/15012025/09/23/image_15012025_09_23_16_10401.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/22/image_15012025_09_22_16_9330.jpg
/home/pi/Desktop/images/15012025/09/22/image_15012025_09_22_37_10353.jpg
/home/pi/Desktop/images/15012025/09/22/image_15012025_09_22_46_9334.jpg
/home/pi/Desktop/images/15012025/09/22/image_15012025_09_22_57_10424.jpg
/home/pi/Desktop/images/15012025/09/22/image_15012025_09_23_06_9440.jpg
/home/pi/Desktop/images/15012025/09/23/image_15012025_09_23_16_10401.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6063318252563477 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
2025-01-15 23:36:42.333092
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/22/image_15012025_09_22_16_9330.jpg', '/home/pi/Desktop/images/15012025/09/22/image_15012025_09_22_37_10353.jpg', '/home/pi/Desktop/images/15012025/09/22/image_15012025_09_22_46_9334.jpg', '/home/pi/Desktop/images/15012025/09/22/image_15012025_09_22_57_10424.jpg', '/home/pi/Desktop/images/15012025/09/22/image_15012025_09_23_06_9440.jpg', '/home/pi/Desktop/images/15012025/09/23/image_15012025_09_23_16_10401.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/22/image_15012025_09_22_16_9330.jpg
/home/pi/Desktop/images/15012025/09/22/image_15012025_09_22_37_10353.jpg
/home/pi/Desktop/images/15012025/09/22/image_15012025_09_22_46_9334.jpg
/home/pi/Desktop/images/15012025/09/22/image_15012025_09_22_57_10424.jpg
/home/pi/Desktop/images/15012025/09/22/image_15012025_09_23_06_9440.jpg
/home/pi/Desktop/images/15012025/09/23/image_15012025_09_23_16_10401.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329249423","1329249476","1329249533","1329249574","1329249382","1329249571"],"photo_ids_order":["1329249382","1329249423","1329249476","1329249533","1329249571","1329249574"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a6f75d021bc4a7b56459b820892d728f.jpg","text":"TemporaryFile(/tmp/multipartBody6361386767268012277asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980663235,"filename":"image_15012025_09_22_37_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/efcff30002df4c02dc6d9a8025a71f21.jpg","text":"TemporaryFile(/tmp/multipartBody8564182579626230470asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980663235,"filename":"image_15012025_09_22_46_9334.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/236937fa765fa46cc7fd316191f9cc78.jpg","text":"TemporaryFile(/tmp/multipartBody6947857269106299571asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980663235,"filename":"image_15012025_09_22_57_10424.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/449e779565921c657bab4025fa941864.jpg","text":"TemporaryFile(/tmp/multipartBody4834020713903887006asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980663235,"filename":"image_15012025_09_23_16_10401.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7d397c9f82230619a418183da15708dc.jpg","text":"TemporaryFile(/tmp/multipartBody3038258630283834790asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980663235,"filename":"image_15012025_09_22_16_9330.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/be1cb118dbdb6f7a61c9385beca582d5.jpg","text":"TemporaryFile(/tmp/multipartBody2950186309178473274asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980663235,"filename":"image_15012025_09_23_06_9440.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329249476","file1":"1329249423","file0":"1329249382","file4":"1329249571","file5":"1329249574","file3":"1329249533"},"map_files_photo_id_array":[{"photo_id":"1329249574","filename":"file5"},{"photo_id":"1329249476","filename":"file2"},{"photo_id":"1329249571","filename":"file4"},{"photo_id":"1329249423","filename":"file1"},{"photo_id":"1329249382","filename":"file0"},{"photo_id":"1329249533","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329249423":["hashtag1","hashtag2"]},{"1329249476":["hashtag1","hashtag2"]},{"1329249533":["hashtag1","hashtag2"]},{"1329249574":["hashtag1","hashtag2"]},{"1329249382":["hashtag1","hashtag2"]},{"1329249571":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329249423, 1329249476, 1329249533, 1329249574, 1329249382, 1329249571)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.89059853553772 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 15 --only_old 0
2025-01-15 23:37:32.470336
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/23/image_15012025_09_23_27_10338.jpg', '/home/pi/Desktop/images/15012025/09/23/image_15012025_09_23_36_9338.jpg', '/home/pi/Desktop/images/15012025/09/23/image_15012025_09_23_47_10410.jpg', '/home/pi/Desktop/images/15012025/09/23/image_15012025_09_24_06_10433.jpg', '/home/pi/Desktop/images/15012025/09/24/image_15012025_09_24_17_10420.jpg', '/home/pi/Desktop/images/15012025/09/24/image_15012025_09_24_26_9403.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/23/image_15012025_09_23_27_10338.jpg
/home/pi/Desktop/images/15012025/09/23/image_15012025_09_23_36_9338.jpg
/home/pi/Desktop/images/15012025/09/23/image_15012025_09_23_47_10410.jpg
/home/pi/Desktop/images/15012025/09/23/image_15012025_09_24_06_10433.jpg
/home/pi/Desktop/images/15012025/09/24/image_15012025_09_24_17_10420.jpg
/home/pi/Desktop/images/15012025/09/24/image_15012025_09_24_26_9403.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329249794","1329249740","1329249694","1329249736","1329249678","1329249744"],"photo_ids_order":["1329249678","1329249694","1329249736","1329249740","1329249744","1329249794"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9b5fb14c22d0aa481c8fad8ede017463.jpg","text":"TemporaryFile(/tmp/multipartBody2532011156108695035asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980713464,"filename":"image_15012025_09_24_26_9403.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2f093b439a1d19885b6f82c30ff0668e.jpg","text":"TemporaryFile(/tmp/multipartBody851513582967968115asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980713464,"filename":"image_15012025_09_24_06_10433.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6b478f213aa1b824f2d891512bd4f35b.jpg","text":"TemporaryFile(/tmp/multipartBody8286864049734391589asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980713464,"filename":"image_15012025_09_23_36_9338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c50bd4423e1bedfb23de2b0ec776a7ec.jpg","text":"TemporaryFile(/tmp/multipartBody190034217822938388asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980713464,"filename":"image_15012025_09_23_47_10410.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d53e45e3a7490d7b07401b1a17ead9f8.jpg","text":"TemporaryFile(/tmp/multipartBody5196859979894467547asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980713464,"filename":"image_15012025_09_23_27_10338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dfef4890d7d51513e502cc0181f3fbe6.jpg","text":"TemporaryFile(/tmp/multipartBody3120653968710523799asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980713464,"filename":"image_15012025_09_24_17_10420.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329249736","file1":"1329249694","file0":"1329249678","file4":"1329249744","file5":"1329249794","file3":"1329249740"},"map_files_photo_id_array":[{"photo_id":"1329249794","filename":"file5"},{"photo_id":"1329249736","filename":"file2"},{"photo_id":"1329249744","filename":"file4"},{"photo_id":"1329249694","filename":"file1"},{"photo_id":"1329249678","filename":"file0"},{"photo_id":"1329249740","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329249794":["hashtag1","hashtag2"]},{"1329249740":["hashtag1","hashtag2"]},{"1329249694":["hashtag1","hashtag2"]},{"1329249736":["hashtag1","hashtag2"]},{"1329249678":["hashtag1","hashtag2"]},{"1329249744":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329249794, 1329249740, 1329249694, 1329249736, 1329249678, 1329249744)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.322404861450195 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 15 --only_old 0
2025-01-15 23:38:32.662721
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/24/image_15012025_09_24_37_10349.jpg', '/home/pi/Desktop/images/15012025/09/24/image_15012025_09_24_46_9402.jpg', '/home/pi/Desktop/images/15012025/09/25/image_15012025_09_25_37_10352.jpg', '/home/pi/Desktop/images/15012025/09/25/image_15012025_09_25_46_9342.jpg', '/home/pi/Desktop/images/15012025/09/25/image_15012025_09_25_56_10339.jpg', '/home/pi/Desktop/images/15012025/09/25/image_15012025_09_26_07_10362.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/24/image_15012025_09_24_37_10349.jpg
/home/pi/Desktop/images/15012025/09/24/image_15012025_09_24_46_9402.jpg
/home/pi/Desktop/images/15012025/09/25/image_15012025_09_25_37_10352.jpg
/home/pi/Desktop/images/15012025/09/25/image_15012025_09_25_46_9342.jpg
/home/pi/Desktop/images/15012025/09/25/image_15012025_09_25_56_10339.jpg
/home/pi/Desktop/images/15012025/09/25/image_15012025_09_26_07_10362.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329249816","1329249839","1329249829","1329249820","1329249826","1329249843"],"photo_ids_order":["1329249816","1329249820","1329249826","1329249829","1329249839","1329249843"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/487e7a41026a04cd9e5fc557be6ed223.jpg","text":"TemporaryFile(/tmp/multipartBody7185249072166516633asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980773665,"filename":"image_15012025_09_24_37_10349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f8a39213fbda23c6de451f64b5d45c34.jpg","text":"TemporaryFile(/tmp/multipartBody2901032436937563675asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980773665,"filename":"image_15012025_09_25_56_10339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9c2e02e315754e0c0ee980b945d69c89.jpg","text":"TemporaryFile(/tmp/multipartBody8137852400246728286asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980773665,"filename":"image_15012025_09_25_46_9342.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f7702b9772ab45d9894460174d364422.jpg","text":"TemporaryFile(/tmp/multipartBody3824061485029564294asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980773665,"filename":"image_15012025_09_24_46_9402.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8ec45e9c092fc2d0fc2c8cfdb03c24c5.jpg","text":"TemporaryFile(/tmp/multipartBody3882342375494918505asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980773665,"filename":"image_15012025_09_25_37_10352.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d08b365ab1fd1646ed8a37a491f1aede.jpg","text":"TemporaryFile(/tmp/multipartBody483427652556076740asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980773665,"filename":"image_15012025_09_26_07_10362.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329249826","file1":"1329249820","file0":"1329249816","file4":"1329249839","file5":"1329249843","file3":"1329249829"},"map_files_photo_id_array":[{"photo_id":"1329249843","filename":"file5"},{"photo_id":"1329249826","filename":"file2"},{"photo_id":"1329249839","filename":"file4"},{"photo_id":"1329249820","filename":"file1"},{"photo_id":"1329249816","filename":"file0"},{"photo_id":"1329249829","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329249816":["hashtag1","hashtag2"]},{"1329249839":["hashtag1","hashtag2"]},{"1329249829":["hashtag1","hashtag2"]},{"1329249820":["hashtag1","hashtag2"]},{"1329249826":["hashtag1","hashtag2"]},{"1329249843":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329249816, 1329249839, 1329249829, 1329249820, 1329249826, 1329249843)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.63502240180969 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 15 --only_old 0
2025-01-15 23:39:32.960259
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/26/image_15012025_09_26_16_9357.jpg', '/home/pi/Desktop/images/15012025/09/26/image_15012025_09_26_27_10371.jpg', '/home/pi/Desktop/images/15012025/09/26/image_15012025_09_26_36_9447.jpg', '/home/pi/Desktop/images/15012025/09/26/image_15012025_09_26_46_10412.jpg', '/home/pi/Desktop/images/15012025/09/26/image_15012025_09_27_06_9353.jpg', '/home/pi/Desktop/images/15012025/09/27/image_15012025_09_27_16_10321.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/26/image_15012025_09_26_16_9357.jpg
/home/pi/Desktop/images/15012025/09/26/image_15012025_09_26_27_10371.jpg
/home/pi/Desktop/images/15012025/09/26/image_15012025_09_26_36_9447.jpg
/home/pi/Desktop/images/15012025/09/26/image_15012025_09_26_46_10412.jpg
/home/pi/Desktop/images/15012025/09/26/image_15012025_09_27_06_9353.jpg
/home/pi/Desktop/images/15012025/09/27/image_15012025_09_27_16_10321.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.5901749134063721 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
2025-01-15 23:39:42.910738
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/26/image_15012025_09_26_16_9357.jpg', '/home/pi/Desktop/images/15012025/09/26/image_15012025_09_26_27_10371.jpg', '/home/pi/Desktop/images/15012025/09/26/image_15012025_09_26_36_9447.jpg', '/home/pi/Desktop/images/15012025/09/26/image_15012025_09_26_46_10412.jpg', '/home/pi/Desktop/images/15012025/09/26/image_15012025_09_27_06_9353.jpg', '/home/pi/Desktop/images/15012025/09/27/image_15012025_09_27_16_10321.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/26/image_15012025_09_26_16_9357.jpg
/home/pi/Desktop/images/15012025/09/26/image_15012025_09_26_27_10371.jpg
/home/pi/Desktop/images/15012025/09/26/image_15012025_09_26_36_9447.jpg
/home/pi/Desktop/images/15012025/09/26/image_15012025_09_26_46_10412.jpg
/home/pi/Desktop/images/15012025/09/26/image_15012025_09_27_06_9353.jpg
/home/pi/Desktop/images/15012025/09/27/image_15012025_09_27_16_10321.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329249941","1329249886","1329249961","1329249913","1329249937","1329249984"],"photo_ids_order":["1329249886","1329249913","1329249937","1329249941","1329249961","1329249984"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c15d1b74e52af9725f34651aa8ccb262.jpg","text":"TemporaryFile(/tmp/multipartBody7392749486401176844asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980843840,"filename":"image_15012025_09_26_46_10412.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b4255c6ecc388037490faebf6275946d.jpg","text":"TemporaryFile(/tmp/multipartBody7494922346060255890asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980843840,"filename":"image_15012025_09_26_16_9357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/04d5b37286a7732a202d963377ffe64a.jpg","text":"TemporaryFile(/tmp/multipartBody5951260709004573488asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980843840,"filename":"image_15012025_09_27_06_9353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/529209ff5c253b8e8cdccc3e6706b90e.jpg","text":"TemporaryFile(/tmp/multipartBody4043852374732899579asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980843840,"filename":"image_15012025_09_26_27_10371.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7189c93f811390ca189e6159fd3a789a.jpg","text":"TemporaryFile(/tmp/multipartBody3893416772247602390asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980843840,"filename":"image_15012025_09_26_36_9447.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/11ed6a0573097904a7f15baf0873bec9.jpg","text":"TemporaryFile(/tmp/multipartBody8106225080915839078asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980843840,"filename":"image_15012025_09_27_16_10321.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329249937","file1":"1329249913","file0":"1329249886","file4":"1329249961","file5":"1329249984","file3":"1329249941"},"map_files_photo_id_array":[{"photo_id":"1329249984","filename":"file5"},{"photo_id":"1329249937","filename":"file2"},{"photo_id":"1329249961","filename":"file4"},{"photo_id":"1329249913","filename":"file1"},{"photo_id":"1329249886","filename":"file0"},{"photo_id":"1329249941","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329249941":["hashtag1","hashtag2"]},{"1329249886":["hashtag1","hashtag2"]},{"1329249961":["hashtag1","hashtag2"]},{"1329249913":["hashtag1","hashtag2"]},{"1329249937":["hashtag1","hashtag2"]},{"1329249984":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329249941, 1329249886, 1329249961, 1329249913, 1329249937, 1329249984)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.265300035476685 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 15 --only_old 0
2025-01-15 23:40:33.116937
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/27/image_15012025_09_27_36_9346.jpg', '/home/pi/Desktop/images/15012025/09/27/image_15012025_09_27_46_10358.jpg', '/home/pi/Desktop/images/15012025/09/27/image_15012025_09_27_57_10340.jpg', '/home/pi/Desktop/images/15012025/09/27/image_15012025_09_28_06_9339.jpg', '/home/pi/Desktop/images/15012025/09/28/image_15012025_09_28_17_10357.jpg', '/home/pi/Desktop/images/15012025/09/28/image_15012025_09_28_26_9438.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/27/image_15012025_09_27_36_9346.jpg
/home/pi/Desktop/images/15012025/09/27/image_15012025_09_27_46_10358.jpg
/home/pi/Desktop/images/15012025/09/27/image_15012025_09_27_57_10340.jpg
/home/pi/Desktop/images/15012025/09/27/image_15012025_09_28_06_9339.jpg
/home/pi/Desktop/images/15012025/09/28/image_15012025_09_28_17_10357.jpg
/home/pi/Desktop/images/15012025/09/28/image_15012025_09_28_26_9438.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329250176","1329250137","1329250131","1329250097","1329250160","1329250185"],"photo_ids_order":["1329250097","1329250131","1329250137","1329250160","1329250176","1329250185"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0f08d52485347f65e99214357f7b586e.jpg","text":"TemporaryFile(/tmp/multipartBody2111042628337037128asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980894092,"filename":"image_15012025_09_28_17_10357.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/968b82d31fcd68d99d74d06866f112fc.jpg","text":"TemporaryFile(/tmp/multipartBody3129840645575873941asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980894092,"filename":"image_15012025_09_27_57_10340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/90866f927746c6a01d67d9b914ad7fac.jpg","text":"TemporaryFile(/tmp/multipartBody4955987844400863963asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980894092,"filename":"image_15012025_09_27_46_10358.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/dad216b58944450baf8f3d57b2f58b0b.jpg","text":"TemporaryFile(/tmp/multipartBody435571595489509157asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980894092,"filename":"image_15012025_09_27_36_9346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/25bf2c3f9adf0a8f42f338a9d08ca5c4.jpg","text":"TemporaryFile(/tmp/multipartBody1965135250349457474asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980894092,"filename":"image_15012025_09_28_06_9339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d2ea8f7069370620e82bcf6c705bd32c.jpg","text":"TemporaryFile(/tmp/multipartBody3506352922330858162asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980894092,"filename":"image_15012025_09_28_26_9438.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329250137","file1":"1329250131","file0":"1329250097","file4":"1329250176","file5":"1329250185","file3":"1329250160"},"map_files_photo_id_array":[{"photo_id":"1329250185","filename":"file5"},{"photo_id":"1329250137","filename":"file2"},{"photo_id":"1329250176","filename":"file4"},{"photo_id":"1329250131","filename":"file1"},{"photo_id":"1329250097","filename":"file0"},{"photo_id":"1329250160","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329250176":["hashtag1","hashtag2"]},{"1329250137":["hashtag1","hashtag2"]},{"1329250131":["hashtag1","hashtag2"]},{"1329250097":["hashtag1","hashtag2"]},{"1329250160":["hashtag1","hashtag2"]},{"1329250185":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329250176, 1329250137, 1329250131, 1329250097, 1329250160, 1329250185)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.58315300941467 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 15 --only_old 0
2025-01-15 23:41:32.344154
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/28/image_15012025_09_28_36_10373.jpg', '/home/pi/Desktop/images/15012025/09/28/image_15012025_09_28_47_10416.jpg', '/home/pi/Desktop/images/15012025/09/28/image_15012025_09_28_56_9400.jpg', '/home/pi/Desktop/images/15012025/09/28/image_15012025_09_29_07_10345.jpg', '/home/pi/Desktop/images/15012025/09/29/image_15012025_09_29_17_10337.jpg', '/home/pi/Desktop/images/15012025/09/29/image_15012025_09_29_37_10355.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/28/image_15012025_09_28_36_10373.jpg
/home/pi/Desktop/images/15012025/09/28/image_15012025_09_28_47_10416.jpg
/home/pi/Desktop/images/15012025/09/28/image_15012025_09_28_56_9400.jpg
/home/pi/Desktop/images/15012025/09/28/image_15012025_09_29_07_10345.jpg
/home/pi/Desktop/images/15012025/09/29/image_15012025_09_29_17_10337.jpg
/home/pi/Desktop/images/15012025/09/29/image_15012025_09_29_37_10355.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329250204","1329250197","1329250199","1329250220","1329250208","1329250213"],"photo_ids_order":["1329250197","1329250199","1329250204","1329250208","1329250213","1329250220"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2c49ecd04bdec3fbf39a8bd8f49b6f02.jpg","text":"TemporaryFile(/tmp/multipartBody1214609454346109722asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980953354,"filename":"image_15012025_09_28_56_9400.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c353d5a84f6b9e9354ef6681f0a2da37.jpg","text":"TemporaryFile(/tmp/multipartBody3826045866424416921asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980953354,"filename":"image_15012025_09_28_36_10373.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1695426866f0f45265a4cdc5581b8c34.jpg","text":"TemporaryFile(/tmp/multipartBody5327596805853958469asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980953354,"filename":"image_15012025_09_28_47_10416.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a25fc8e02c4c40ff310256335772d171.jpg","text":"TemporaryFile(/tmp/multipartBody2200899179184677054asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980953354,"filename":"image_15012025_09_29_37_10355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/475232b2fb0da3fe48413b1e1cd6fe13.jpg","text":"TemporaryFile(/tmp/multipartBody5429298806370356933asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980953354,"filename":"image_15012025_09_29_07_10345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/84a4c0a58709f8b62dd58f3c205891bf.jpg","text":"TemporaryFile(/tmp/multipartBody1892797154683422610asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736980953354,"filename":"image_15012025_09_29_17_10337.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329250204","file1":"1329250199","file0":"1329250197","file4":"1329250213","file5":"1329250220","file3":"1329250208"},"map_files_photo_id_array":[{"photo_id":"1329250220","filename":"file5"},{"photo_id":"1329250204","filename":"file2"},{"photo_id":"1329250213","filename":"file4"},{"photo_id":"1329250199","filename":"file1"},{"photo_id":"1329250197","filename":"file0"},{"photo_id":"1329250208","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329250204":["hashtag1","hashtag2"]},{"1329250197":["hashtag1","hashtag2"]},{"1329250199":["hashtag1","hashtag2"]},{"1329250220":["hashtag1","hashtag2"]},{"1329250208":["hashtag1","hashtag2"]},{"1329250213":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329250204, 1329250197, 1329250199, 1329250220, 1329250208, 1329250213)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.80906939506531 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 15 --only_old 0
2025-01-15 23:42:32.670845
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/29/image_15012025_09_29_46_9386.jpg', '/home/pi/Desktop/images/15012025/09/29/image_15012025_09_29_56_10328.jpg', '/home/pi/Desktop/images/15012025/09/29/image_15012025_09_30_07_10329.jpg', '/home/pi/Desktop/images/15012025/09/30/image_15012025_09_30_16_9397.jpg', '/home/pi/Desktop/images/15012025/09/30/image_15012025_09_30_26_10356.jpg', '/home/pi/Desktop/images/15012025/09/30/image_15012025_09_30_46_9350.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/29/image_15012025_09_29_46_9386.jpg
/home/pi/Desktop/images/15012025/09/29/image_15012025_09_29_56_10328.jpg
/home/pi/Desktop/images/15012025/09/29/image_15012025_09_30_07_10329.jpg
/home/pi/Desktop/images/15012025/09/30/image_15012025_09_30_16_9397.jpg
/home/pi/Desktop/images/15012025/09/30/image_15012025_09_30_26_10356.jpg
/home/pi/Desktop/images/15012025/09/30/image_15012025_09_30_46_9350.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6034717559814453 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
2025-01-15 23:42:42.544362
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/29/image_15012025_09_29_46_9386.jpg', '/home/pi/Desktop/images/15012025/09/29/image_15012025_09_29_56_10328.jpg', '/home/pi/Desktop/images/15012025/09/29/image_15012025_09_30_07_10329.jpg', '/home/pi/Desktop/images/15012025/09/30/image_15012025_09_30_16_9397.jpg', '/home/pi/Desktop/images/15012025/09/30/image_15012025_09_30_26_10356.jpg', '/home/pi/Desktop/images/15012025/09/30/image_15012025_09_30_46_9350.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/29/image_15012025_09_29_46_9386.jpg
/home/pi/Desktop/images/15012025/09/29/image_15012025_09_29_56_10328.jpg
/home/pi/Desktop/images/15012025/09/29/image_15012025_09_30_07_10329.jpg
/home/pi/Desktop/images/15012025/09/30/image_15012025_09_30_16_9397.jpg
/home/pi/Desktop/images/15012025/09/30/image_15012025_09_30_26_10356.jpg
/home/pi/Desktop/images/15012025/09/30/image_15012025_09_30_46_9350.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329250278","1329250280","1329250274","1329250247","1329250282","1329250252"],"photo_ids_order":["1329250247","1329250252","1329250274","1329250278","1329250280","1329250282"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/70afce5aa2673459e2099effc163677c.jpg","text":"TemporaryFile(/tmp/multipartBody6431037022134334483asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981023456,"filename":"image_15012025_09_30_16_9397.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/b468900f9f72ca9de954c137058032e7.jpg","text":"TemporaryFile(/tmp/multipartBody1590761816138151105asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981023456,"filename":"image_15012025_09_30_26_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d7aa9efd4cb8d49eb7f4a5c1b308f2ca.jpg","text":"TemporaryFile(/tmp/multipartBody4575024470849933264asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981023456,"filename":"image_15012025_09_30_07_10329.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/006a1a28cf822c2eedb67b6d86110aed.jpg","text":"TemporaryFile(/tmp/multipartBody2673314758241531102asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981023456,"filename":"image_15012025_09_29_46_9386.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e8fcacc07a4a1cd5e5956c96622bdc26.jpg","text":"TemporaryFile(/tmp/multipartBody3214614661047978032asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981023456,"filename":"image_15012025_09_30_46_9350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1b26de76406505c07bcf5969e2b404d2.jpg","text":"TemporaryFile(/tmp/multipartBody6002561213092412263asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981023456,"filename":"image_15012025_09_29_56_10328.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329250274","file1":"1329250252","file0":"1329250247","file4":"1329250280","file5":"1329250282","file3":"1329250278"},"map_files_photo_id_array":[{"photo_id":"1329250282","filename":"file5"},{"photo_id":"1329250274","filename":"file2"},{"photo_id":"1329250280","filename":"file4"},{"photo_id":"1329250252","filename":"file1"},{"photo_id":"1329250247","filename":"file0"},{"photo_id":"1329250278","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329250278":["hashtag1","hashtag2"]},{"1329250280":["hashtag1","hashtag2"]},{"1329250274":["hashtag1","hashtag2"]},{"1329250247":["hashtag1","hashtag2"]},{"1329250282":["hashtag1","hashtag2"]},{"1329250252":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329250278, 1329250280, 1329250274, 1329250247, 1329250282, 1329250252)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.26180052757263 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 15 --only_old 0
2025-01-15 23:43:32.940942
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/30/image_15012025_09_30_57_10344.jpg', '/home/pi/Desktop/images/15012025/09/30/image_15012025_09_31_07_10346.jpg', '/home/pi/Desktop/images/15012025/09/31/image_15012025_09_31_16_9403.jpg', '/home/pi/Desktop/images/15012025/09/31/image_15012025_09_31_27_10348.jpg', '/home/pi/Desktop/images/15012025/09/31/image_15012025_09_31_36_9439.jpg', '/home/pi/Desktop/images/15012025/09/31/image_15012025_09_31_46_10346.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/30/image_15012025_09_30_57_10344.jpg
/home/pi/Desktop/images/15012025/09/30/image_15012025_09_31_07_10346.jpg
/home/pi/Desktop/images/15012025/09/31/image_15012025_09_31_16_9403.jpg
/home/pi/Desktop/images/15012025/09/31/image_15012025_09_31_27_10348.jpg
/home/pi/Desktop/images/15012025/09/31/image_15012025_09_31_36_9439.jpg
/home/pi/Desktop/images/15012025/09/31/image_15012025_09_31_46_10346.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329250344","1329250325","1329250342","1329250339","1329250336","1329250321"],"photo_ids_order":["1329250321","1329250325","1329250336","1329250339","1329250342","1329250344"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5d018969932dfd4cd867c12cbef97106.jpg","text":"TemporaryFile(/tmp/multipartBody1102712175298091328asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981073916,"filename":"image_15012025_09_31_46_10346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fad5fda87a0df0dbf55d7dc4444b3e4e.jpg","text":"TemporaryFile(/tmp/multipartBody91228975852492941asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981073916,"filename":"image_15012025_09_31_07_10346.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9445f5316643cb6d71ad7f61403a4e1f.jpg","text":"TemporaryFile(/tmp/multipartBody2554962671031466738asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981073916,"filename":"image_15012025_09_31_36_9439.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8b9fb4bd30c083dd3fc595c78c857d10.jpg","text":"TemporaryFile(/tmp/multipartBody700566552120574142asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981073916,"filename":"image_15012025_09_31_27_10348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6e57357d82831c92dadad723653fe27a.jpg","text":"TemporaryFile(/tmp/multipartBody7964827192677592722asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981073916,"filename":"image_15012025_09_31_16_9403.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a93e5718a23154a0a9b5c648bb4b778c.jpg","text":"TemporaryFile(/tmp/multipartBody3991654278509767314asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981073916,"filename":"image_15012025_09_30_57_10344.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329250336","file1":"1329250325","file0":"1329250321","file4":"1329250342","file5":"1329250344","file3":"1329250339"},"map_files_photo_id_array":[{"photo_id":"1329250344","filename":"file5"},{"photo_id":"1329250336","filename":"file2"},{"photo_id":"1329250342","filename":"file4"},{"photo_id":"1329250325","filename":"file1"},{"photo_id":"1329250321","filename":"file0"},{"photo_id":"1329250339","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329250344":["hashtag1","hashtag2"]},{"1329250325":["hashtag1","hashtag2"]},{"1329250342":["hashtag1","hashtag2"]},{"1329250339":["hashtag1","hashtag2"]},{"1329250336":["hashtag1","hashtag2"]},{"1329250321":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329250344, 1329250325, 1329250342, 1329250339, 1329250336, 1329250321)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.854740381240845 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 15 --only_old 0
2025-01-15 23:44:33.046884
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/31/image_15012025_09_31_57_10362.jpg', '/home/pi/Desktop/images/15012025/09/32/image_15012025_09_32_17_10328.jpg', '/home/pi/Desktop/images/15012025/09/32/image_15012025_09_32_47_10359.jpg', '/home/pi/Desktop/images/15012025/09/33/image_15012025_09_33_17_10354.jpg', '/home/pi/Desktop/images/15012025/09/33/image_15012025_09_33_26_9348.jpg', '/home/pi/Desktop/images/15012025/09/33/image_15012025_09_33_36_10370.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/31/image_15012025_09_31_57_10362.jpg
/home/pi/Desktop/images/15012025/09/32/image_15012025_09_32_17_10328.jpg
/home/pi/Desktop/images/15012025/09/32/image_15012025_09_32_47_10359.jpg
/home/pi/Desktop/images/15012025/09/33/image_15012025_09_33_17_10354.jpg
/home/pi/Desktop/images/15012025/09/33/image_15012025_09_33_26_9348.jpg
/home/pi/Desktop/images/15012025/09/33/image_15012025_09_33_36_10370.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329250353","1329250356","1329250364","1329250360","1329250363","1329250366"],"photo_ids_order":["1329250353","1329250356","1329250360","1329250363","1329250364","1329250366"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1f40b70e7e07bb1880f1e7c93e776164.jpg","text":"TemporaryFile(/tmp/multipartBody6797275082210358076asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981134034,"filename":"image_15012025_09_31_57_10362.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c3765225a2da2356c36d4b3d082b5c2b.jpg","text":"TemporaryFile(/tmp/multipartBody5913823535076594195asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981134034,"filename":"image_15012025_09_32_17_10328.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/2f863f946be810e8cc315859c9171242.jpg","text":"TemporaryFile(/tmp/multipartBody2775035114171952834asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981134034,"filename":"image_15012025_09_33_26_9348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a92521dd11d3d013a83814397c8892cf.jpg","text":"TemporaryFile(/tmp/multipartBody9035925510893821396asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981134034,"filename":"image_15012025_09_32_47_10359.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/3294fd549f2cb6511eb58d07055fb575.jpg","text":"TemporaryFile(/tmp/multipartBody4786984276640772394asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981134034,"filename":"image_15012025_09_33_17_10354.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/21e172e9408f22e95134ff8f79705fd7.jpg","text":"TemporaryFile(/tmp/multipartBody2709420619796663272asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981134034,"filename":"image_15012025_09_33_36_10370.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329250360","file1":"1329250356","file0":"1329250353","file4":"1329250364","file5":"1329250366","file3":"1329250363"},"map_files_photo_id_array":[{"photo_id":"1329250366","filename":"file5"},{"photo_id":"1329250360","filename":"file2"},{"photo_id":"1329250364","filename":"file4"},{"photo_id":"1329250356","filename":"file1"},{"photo_id":"1329250353","filename":"file0"},{"photo_id":"1329250363","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329250353":["hashtag1","hashtag2"]},{"1329250356":["hashtag1","hashtag2"]},{"1329250364":["hashtag1","hashtag2"]},{"1329250360":["hashtag1","hashtag2"]},{"1329250363":["hashtag1","hashtag2"]},{"1329250366":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329250353, 1329250356, 1329250364, 1329250360, 1329250363, 1329250366)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.99685883522034 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 15 --only_old 0
2025-01-15 23:45:32.227919
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/33/image_15012025_09_33_47_10339.jpg', '/home/pi/Desktop/images/15012025/09/33/image_15012025_09_33_56_9438.jpg', '/home/pi/Desktop/images/15012025/09/33/image_15012025_09_34_07_10370.jpg', '/home/pi/Desktop/images/15012025/09/34/image_15012025_09_34_16_9387.jpg', '/home/pi/Desktop/images/15012025/09/34/image_15012025_09_34_37_10419.jpg', '/home/pi/Desktop/images/15012025/09/34/image_15012025_09_34_46_9328.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/33/image_15012025_09_33_47_10339.jpg
/home/pi/Desktop/images/15012025/09/33/image_15012025_09_33_56_9438.jpg
/home/pi/Desktop/images/15012025/09/33/image_15012025_09_34_07_10370.jpg
/home/pi/Desktop/images/15012025/09/34/image_15012025_09_34_16_9387.jpg
/home/pi/Desktop/images/15012025/09/34/image_15012025_09_34_37_10419.jpg
/home/pi/Desktop/images/15012025/09/34/image_15012025_09_34_46_9328.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329250548","1329250608","1329250557","1329250602","1329250605","1329250616"],"photo_ids_order":["1329250548","1329250557","1329250602","1329250605","1329250608","1329250616"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c4644fb114f7cc9ec92db05230cbba5d.jpg","text":"TemporaryFile(/tmp/multipartBody1732949105736949701asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981193214,"filename":"image_15012025_09_33_47_10339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/14fc48201dfef5c889ddfff17c3e043f.jpg","text":"TemporaryFile(/tmp/multipartBody1381696332248765084asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981193214,"filename":"image_15012025_09_34_37_10419.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/7d32c1eccf9f07902a8293a3db6f7cc7.jpg","text":"TemporaryFile(/tmp/multipartBody8122794309555101754asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981193214,"filename":"image_15012025_09_33_56_9438.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f0461330bc85d3b218a5488b15b6d798.jpg","text":"TemporaryFile(/tmp/multipartBody4847275853450357291asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981193214,"filename":"image_15012025_09_34_07_10370.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/677603077c2059d3116790ceaf49abbc.jpg","text":"TemporaryFile(/tmp/multipartBody1823190611724778117asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981193214,"filename":"image_15012025_09_34_16_9387.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bdd2dd537e28f5b973f92c40371207ac.jpg","text":"TemporaryFile(/tmp/multipartBody9029687716291376833asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981193214,"filename":"image_15012025_09_34_46_9328.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329250602","file1":"1329250557","file0":"1329250548","file4":"1329250608","file5":"1329250616","file3":"1329250605"},"map_files_photo_id_array":[{"photo_id":"1329250616","filename":"file5"},{"photo_id":"1329250602","filename":"file2"},{"photo_id":"1329250608","filename":"file4"},{"photo_id":"1329250557","filename":"file1"},{"photo_id":"1329250548","filename":"file0"},{"photo_id":"1329250605","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329250548":["hashtag1","hashtag2"]},{"1329250608":["hashtag1","hashtag2"]},{"1329250557":["hashtag1","hashtag2"]},{"1329250602":["hashtag1","hashtag2"]},{"1329250605":["hashtag1","hashtag2"]},{"1329250616":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329250548, 1329250608, 1329250557, 1329250602, 1329250605, 1329250616)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.848007917404175 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 15 --only_old 0
2025-01-15 23:46:32.613192
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/34/image_15012025_09_34_56_10345.jpg', '/home/pi/Desktop/images/15012025/09/34/image_15012025_09_35_07_10334.jpg', '/home/pi/Desktop/images/15012025/09/35/image_15012025_09_35_16_9432.jpg', '/home/pi/Desktop/images/15012025/09/35/image_15012025_09_35_27_10350.jpg', '/home/pi/Desktop/images/15012025/09/35/image_15012025_09_35_36_9516.jpg', '/home/pi/Desktop/images/15012025/09/35/image_15012025_09_35_46_10135.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/34/image_15012025_09_34_56_10345.jpg
/home/pi/Desktop/images/15012025/09/34/image_15012025_09_35_07_10334.jpg
/home/pi/Desktop/images/15012025/09/35/image_15012025_09_35_16_9432.jpg
/home/pi/Desktop/images/15012025/09/35/image_15012025_09_35_27_10350.jpg
/home/pi/Desktop/images/15012025/09/35/image_15012025_09_35_36_9516.jpg
/home/pi/Desktop/images/15012025/09/35/image_15012025_09_35_46_10135.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6022930145263672 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
2025-01-15 23:46:42.614877
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/34/image_15012025_09_34_56_10345.jpg', '/home/pi/Desktop/images/15012025/09/34/image_15012025_09_35_07_10334.jpg', '/home/pi/Desktop/images/15012025/09/35/image_15012025_09_35_16_9432.jpg', '/home/pi/Desktop/images/15012025/09/35/image_15012025_09_35_27_10350.jpg', '/home/pi/Desktop/images/15012025/09/35/image_15012025_09_35_36_9516.jpg', '/home/pi/Desktop/images/15012025/09/35/image_15012025_09_35_46_10135.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/34/image_15012025_09_34_56_10345.jpg
/home/pi/Desktop/images/15012025/09/34/image_15012025_09_35_07_10334.jpg
/home/pi/Desktop/images/15012025/09/35/image_15012025_09_35_16_9432.jpg
/home/pi/Desktop/images/15012025/09/35/image_15012025_09_35_27_10350.jpg
/home/pi/Desktop/images/15012025/09/35/image_15012025_09_35_36_9516.jpg
/home/pi/Desktop/images/15012025/09/35/image_15012025_09_35_46_10135.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329250692","1329250701","1329250679","1329250696","1329250687","1329250675"],"photo_ids_order":["1329250675","1329250679","1329250687","1329250692","1329250696","1329250701"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/238e3dc8eff70dac44a67012a91a3a4a.jpg","text":"TemporaryFile(/tmp/multipartBody3146241240334845864asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981263513,"filename":"image_15012025_09_35_27_10350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a62e45b72d9311d7d2301b792d4b1183.jpg","text":"TemporaryFile(/tmp/multipartBody5356320042836422215asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981263513,"filename":"image_15012025_09_35_46_10135.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a49df3ec012de80f9370d661f6d83f9a.jpg","text":"TemporaryFile(/tmp/multipartBody1270917265865661805asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981263513,"filename":"image_15012025_09_35_07_10334.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f505d5effdf971a407aab358bfbe04d2.jpg","text":"TemporaryFile(/tmp/multipartBody4901769355471349883asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981263513,"filename":"image_15012025_09_35_36_9516.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d55943f0e3ad7996155233708f11b86e.jpg","text":"TemporaryFile(/tmp/multipartBody5679997608937395486asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981263513,"filename":"image_15012025_09_35_16_9432.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/608db1059b6fa36bf488f47ad625aa7e.jpg","text":"TemporaryFile(/tmp/multipartBody5231687401958917610asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981263513,"filename":"image_15012025_09_34_56_10345.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329250687","file1":"1329250679","file0":"1329250675","file4":"1329250696","file5":"1329250701","file3":"1329250692"},"map_files_photo_id_array":[{"photo_id":"1329250701","filename":"file5"},{"photo_id":"1329250687","filename":"file2"},{"photo_id":"1329250696","filename":"file4"},{"photo_id":"1329250679","filename":"file1"},{"photo_id":"1329250675","filename":"file0"},{"photo_id":"1329250692","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329250692":["hashtag1","hashtag2"]},{"1329250701":["hashtag1","hashtag2"]},{"1329250679":["hashtag1","hashtag2"]},{"1329250696":["hashtag1","hashtag2"]},{"1329250687":["hashtag1","hashtag2"]},{"1329250675":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329250692, 1329250701, 1329250679, 1329250696, 1329250687, 1329250675)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.109997034072876 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 15 --only_old 0
2025-01-15 23:47:32.930871
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/35/image_15012025_09_35_57_10337.jpg', '/home/pi/Desktop/images/15012025/09/35/image_15012025_09_36_06_9456.jpg', '/home/pi/Desktop/images/15012025/09/36/image_15012025_09_36_16_10256.jpg', '/home/pi/Desktop/images/15012025/09/36/image_15012025_09_36_27_10348.jpg', '/home/pi/Desktop/images/15012025/09/36/image_15012025_09_36_36_9405.jpg', '/home/pi/Desktop/images/15012025/09/36/image_15012025_09_36_46_10430.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/35/image_15012025_09_35_57_10337.jpg
/home/pi/Desktop/images/15012025/09/35/image_15012025_09_36_06_9456.jpg
/home/pi/Desktop/images/15012025/09/36/image_15012025_09_36_16_10256.jpg
/home/pi/Desktop/images/15012025/09/36/image_15012025_09_36_27_10348.jpg
/home/pi/Desktop/images/15012025/09/36/image_15012025_09_36_36_9405.jpg
/home/pi/Desktop/images/15012025/09/36/image_15012025_09_36_46_10430.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329250737","1329250734","1329250728","1329250730","1329250717","1329250711"],"photo_ids_order":["1329250711","1329250717","1329250728","1329250730","1329250734","1329250737"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/720366e492bb6a63321e2eb6c45aa024.jpg","text":"TemporaryFile(/tmp/multipartBody4783439984712443122asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981313903,"filename":"image_15012025_09_36_46_10430.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4c03c5e77e62408fdda71e72d34966fe.jpg","text":"TemporaryFile(/tmp/multipartBody2007533671305337328asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981313903,"filename":"image_15012025_09_36_36_9405.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/4841f0dadda99b54a2a28b6c340a81fd.jpg","text":"TemporaryFile(/tmp/multipartBody7328865755478438698asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981313903,"filename":"image_15012025_09_36_16_10256.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/00215f89585ed372e6737a62da829fbf.jpg","text":"TemporaryFile(/tmp/multipartBody8648076156287264367asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981313903,"filename":"image_15012025_09_36_27_10348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e953f94161ac802c48f5cee5b9f90b7a.jpg","text":"TemporaryFile(/tmp/multipartBody7229966305956046114asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981313903,"filename":"image_15012025_09_36_06_9456.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/92e7dadc50d2de2c62d98ce0e796981d.jpg","text":"TemporaryFile(/tmp/multipartBody2313935178922151603asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981313903,"filename":"image_15012025_09_35_57_10337.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329250728","file1":"1329250717","file0":"1329250711","file4":"1329250734","file5":"1329250737","file3":"1329250730"},"map_files_photo_id_array":[{"photo_id":"1329250737","filename":"file5"},{"photo_id":"1329250728","filename":"file2"},{"photo_id":"1329250734","filename":"file4"},{"photo_id":"1329250717","filename":"file1"},{"photo_id":"1329250711","filename":"file0"},{"photo_id":"1329250730","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329250737":["hashtag1","hashtag2"]},{"1329250734":["hashtag1","hashtag2"]},{"1329250728":["hashtag1","hashtag2"]},{"1329250730":["hashtag1","hashtag2"]},{"1329250717":["hashtag1","hashtag2"]},{"1329250711":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329250737, 1329250734, 1329250728, 1329250730, 1329250717, 1329250711)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.83856248855591 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 15 --only_old 0
2025-01-15 23:48:32.211172
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/36/image_15012025_09_36_57_10334.jpg', '/home/pi/Desktop/images/15012025/09/36/image_15012025_09_37_06_9437.jpg', '/home/pi/Desktop/images/15012025/09/37/image_15012025_09_37_17_10439.jpg', '/home/pi/Desktop/images/15012025/09/37/image_15012025_09_37_26_9335.jpg', '/home/pi/Desktop/images/15012025/09/37/image_15012025_09_37_36_10355.jpg', '/home/pi/Desktop/images/15012025/09/37/image_15012025_09_37_47_10431.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/36/image_15012025_09_36_57_10334.jpg
/home/pi/Desktop/images/15012025/09/36/image_15012025_09_37_06_9437.jpg
/home/pi/Desktop/images/15012025/09/37/image_15012025_09_37_17_10439.jpg
/home/pi/Desktop/images/15012025/09/37/image_15012025_09_37_26_9335.jpg
/home/pi/Desktop/images/15012025/09/37/image_15012025_09_37_36_10355.jpg
/home/pi/Desktop/images/15012025/09/37/image_15012025_09_37_47_10431.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329250776","1329250766","1329250778","1329250759","1329250762","1329250791"],"photo_ids_order":["1329250759","1329250762","1329250766","1329250776","1329250778","1329250791"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/765c94fc160a9a256a112065e668fe80.jpg","text":"TemporaryFile(/tmp/multipartBody7697806468585366866asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981373227,"filename":"image_15012025_09_37_26_9335.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0e2343cb178c1f8196cd5709887820d7.jpg","text":"TemporaryFile(/tmp/multipartBody5141418830495182341asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981373227,"filename":"image_15012025_09_37_17_10439.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/d74e4625ad693df621da3103d6d1a448.jpg","text":"TemporaryFile(/tmp/multipartBody3533864204054862148asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981373227,"filename":"image_15012025_09_37_36_10355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/85af525aa74145e38e61c228235fd335.jpg","text":"TemporaryFile(/tmp/multipartBody1055186822529500583asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981373227,"filename":"image_15012025_09_36_57_10334.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fc2032d9e759381f2431ccd0056318a9.jpg","text":"TemporaryFile(/tmp/multipartBody4439936902989398828asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981373227,"filename":"image_15012025_09_37_06_9437.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e69137129577f49e9b066be1fc70d2a4.jpg","text":"TemporaryFile(/tmp/multipartBody1027358751488052385asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981373227,"filename":"image_15012025_09_37_47_10431.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329250766","file1":"1329250762","file0":"1329250759","file4":"1329250778","file5":"1329250791","file3":"1329250776"},"map_files_photo_id_array":[{"photo_id":"1329250791","filename":"file5"},{"photo_id":"1329250766","filename":"file2"},{"photo_id":"1329250778","filename":"file4"},{"photo_id":"1329250762","filename":"file1"},{"photo_id":"1329250759","filename":"file0"},{"photo_id":"1329250776","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329250776":["hashtag1","hashtag2"]},{"1329250766":["hashtag1","hashtag2"]},{"1329250778":["hashtag1","hashtag2"]},{"1329250759":["hashtag1","hashtag2"]},{"1329250762":["hashtag1","hashtag2"]},{"1329250791":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329250776, 1329250766, 1329250778, 1329250759, 1329250762, 1329250791)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.59423542022705 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 15 --only_old 0
2025-01-15 23:49:32.460955
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/37/image_15012025_09_37_56_9369.jpg', '/home/pi/Desktop/images/15012025/09/37/image_15012025_09_38_06_10339.jpg', '/home/pi/Desktop/images/15012025/09/38/image_15012025_09_38_16_9885.jpg', '/home/pi/Desktop/images/15012025/09/38/image_15012025_09_38_27_10347.jpg', '/home/pi/Desktop/images/15012025/09/38/image_15012025_09_38_36_9412.jpg', '/home/pi/Desktop/images/15012025/09/38/image_15012025_09_38_46_10347.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/37/image_15012025_09_37_56_9369.jpg
/home/pi/Desktop/images/15012025/09/37/image_15012025_09_38_06_10339.jpg
/home/pi/Desktop/images/15012025/09/38/image_15012025_09_38_16_9885.jpg
/home/pi/Desktop/images/15012025/09/38/image_15012025_09_38_27_10347.jpg
/home/pi/Desktop/images/15012025/09/38/image_15012025_09_38_36_9412.jpg
/home/pi/Desktop/images/15012025/09/38/image_15012025_09_38_46_10347.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329251448","1329251418","1329251453","1329251455","1329251434","1329251451"],"photo_ids_order":["1329251418","1329251434","1329251448","1329251451","1329251453","1329251455"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1101165859a0b78b3c87ff408ae54599.jpg","text":"TemporaryFile(/tmp/multipartBody3030100971399026030asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981433501,"filename":"image_15012025_09_38_16_9885.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5d656d2e8db2b21b23cef1597b86c946.jpg","text":"TemporaryFile(/tmp/multipartBody8328523055348209878asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981433501,"filename":"image_15012025_09_37_56_9369.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0dba2f38a24ad7b4a2053fec0ee25dee.jpg","text":"TemporaryFile(/tmp/multipartBody6884817416317190037asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981433501,"filename":"image_15012025_09_38_36_9412.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/fd4280c74e179c303be96eba26fc9e5d.jpg","text":"TemporaryFile(/tmp/multipartBody2877417191081399022asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981433501,"filename":"image_15012025_09_38_46_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/eff988bfdeb07d19d0475711ab647e2f.jpg","text":"TemporaryFile(/tmp/multipartBody791888269103723882asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981433501,"filename":"image_15012025_09_38_06_10339.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/ed8b11689bbf1600273237afb30af759.jpg","text":"TemporaryFile(/tmp/multipartBody8379200670178115344asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981433501,"filename":"image_15012025_09_38_27_10347.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329251448","file1":"1329251434","file0":"1329251418","file4":"1329251453","file5":"1329251455","file3":"1329251451"},"map_files_photo_id_array":[{"photo_id":"1329251455","filename":"file5"},{"photo_id":"1329251448","filename":"file2"},{"photo_id":"1329251453","filename":"file4"},{"photo_id":"1329251434","filename":"file1"},{"photo_id":"1329251418","filename":"file0"},{"photo_id":"1329251451","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329251448":["hashtag1","hashtag2"]},{"1329251418":["hashtag1","hashtag2"]},{"1329251453":["hashtag1","hashtag2"]},{"1329251455":["hashtag1","hashtag2"]},{"1329251434":["hashtag1","hashtag2"]},{"1329251451":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329251448, 1329251418, 1329251453, 1329251455, 1329251434, 1329251451)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.25062441825867 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 15 --only_old 0
2025-01-15 23:50:32.853644
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/38/image_15012025_09_38_57_10347.jpg', '/home/pi/Desktop/images/15012025/09/38/image_15012025_09_39_06_9499.jpg', '/home/pi/Desktop/images/15012025/09/39/image_15012025_09_39_17_10382.jpg', '/home/pi/Desktop/images/15012025/09/39/image_15012025_09_39_26_9347.jpg', '/home/pi/Desktop/images/15012025/09/39/image_15012025_09_39_36_10345.jpg', '/home/pi/Desktop/images/15012025/09/39/image_15012025_09_39_47_10363.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/38/image_15012025_09_38_57_10347.jpg
/home/pi/Desktop/images/15012025/09/38/image_15012025_09_39_06_9499.jpg
/home/pi/Desktop/images/15012025/09/39/image_15012025_09_39_17_10382.jpg
/home/pi/Desktop/images/15012025/09/39/image_15012025_09_39_26_9347.jpg
/home/pi/Desktop/images/15012025/09/39/image_15012025_09_39_36_10345.jpg
/home/pi/Desktop/images/15012025/09/39/image_15012025_09_39_47_10363.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329251733","1329251750","1329251753","1329251744","1329251649","1329251658"],"photo_ids_order":["1329251649","1329251658","1329251733","1329251744","1329251750","1329251753"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6ee3ca3a96e5cb8029cd1ee7cd8390bd.jpg","text":"TemporaryFile(/tmp/multipartBody5317273966989552311asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981493854,"filename":"image_15012025_09_39_17_10382.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/af2039ffe056794d604031c253d903b4.jpg","text":"TemporaryFile(/tmp/multipartBody8697801825947440773asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981493854,"filename":"image_15012025_09_39_36_10345.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/864562066c52fee621848dd57fa643c1.jpg","text":"TemporaryFile(/tmp/multipartBody8303819565121742876asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981493854,"filename":"image_15012025_09_39_47_10363.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f5499f64d803d2d34b85e101094f6cf7.jpg","text":"TemporaryFile(/tmp/multipartBody5633151226986756031asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981493854,"filename":"image_15012025_09_39_26_9347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/939d3d6986abd3417577f3ce00503e0f.jpg","text":"TemporaryFile(/tmp/multipartBody8737636196357945379asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981493854,"filename":"image_15012025_09_38_57_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9a25206f014a4044b31c06629c74d3f4.jpg","text":"TemporaryFile(/tmp/multipartBody3188638418753612062asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981493854,"filename":"image_15012025_09_39_06_9499.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329251733","file1":"1329251658","file0":"1329251649","file4":"1329251750","file5":"1329251753","file3":"1329251744"},"map_files_photo_id_array":[{"photo_id":"1329251753","filename":"file5"},{"photo_id":"1329251733","filename":"file2"},{"photo_id":"1329251750","filename":"file4"},{"photo_id":"1329251658","filename":"file1"},{"photo_id":"1329251649","filename":"file0"},{"photo_id":"1329251744","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329251733":["hashtag1","hashtag2"]},{"1329251750":["hashtag1","hashtag2"]},{"1329251753":["hashtag1","hashtag2"]},{"1329251744":["hashtag1","hashtag2"]},{"1329251649":["hashtag1","hashtag2"]},{"1329251658":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329251733, 1329251750, 1329251753, 1329251744, 1329251649, 1329251658)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.69637489318848 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 15 --only_old 0
2025-01-15 23:51:33.013630
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/39/image_15012025_09_39_56_9330.jpg', '/home/pi/Desktop/images/15012025/09/39/image_15012025_09_40_06_10350.jpg', '/home/pi/Desktop/images/15012025/09/40/image_15012025_09_40_17_10392.jpg', '/home/pi/Desktop/images/15012025/09/40/image_15012025_09_40_26_9347.jpg', '/home/pi/Desktop/images/15012025/09/40/image_15012025_09_40_37_10338.jpg', '/home/pi/Desktop/images/15012025/09/40/image_15012025_09_40_46_9428.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/39/image_15012025_09_39_56_9330.jpg
/home/pi/Desktop/images/15012025/09/39/image_15012025_09_40_06_10350.jpg
/home/pi/Desktop/images/15012025/09/40/image_15012025_09_40_17_10392.jpg
/home/pi/Desktop/images/15012025/09/40/image_15012025_09_40_26_9347.jpg
/home/pi/Desktop/images/15012025/09/40/image_15012025_09_40_37_10338.jpg
/home/pi/Desktop/images/15012025/09/40/image_15012025_09_40_46_9428.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329252257","1329252259","1329252211","1329252180","1329252258","1329252246"],"photo_ids_order":["1329252180","1329252211","1329252246","1329252257","1329252258","1329252259"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8979f695fc88b872432b7ebd7e9e9137.jpg","text":"TemporaryFile(/tmp/multipartBody4990320230314849536asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981554015,"filename":"image_15012025_09_40_26_9347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a0a4d8afea65eadb004e45be73189c02.jpg","text":"TemporaryFile(/tmp/multipartBody6191412237945684537asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981554015,"filename":"image_15012025_09_40_46_9428.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9ac3b526383129c276bd32ab2398d10f.jpg","text":"TemporaryFile(/tmp/multipartBody378806666634547153asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981554015,"filename":"image_15012025_09_40_06_10350.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/a65d16765e0598d18c72b2d2f843519f.jpg","text":"TemporaryFile(/tmp/multipartBody6456941784671933693asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981554015,"filename":"image_15012025_09_39_56_9330.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e21089e1750ee910e8a28b0bcd8aa315.jpg","text":"TemporaryFile(/tmp/multipartBody5728721619963853378asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981554015,"filename":"image_15012025_09_40_37_10338.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/eb343dd656d560461970d009a11cfe78.jpg","text":"TemporaryFile(/tmp/multipartBody48318685840452262asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981554015,"filename":"image_15012025_09_40_17_10392.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329252246","file1":"1329252211","file0":"1329252180","file4":"1329252258","file5":"1329252259","file3":"1329252257"},"map_files_photo_id_array":[{"photo_id":"1329252259","filename":"file5"},{"photo_id":"1329252246","filename":"file2"},{"photo_id":"1329252258","filename":"file4"},{"photo_id":"1329252211","filename":"file1"},{"photo_id":"1329252180","filename":"file0"},{"photo_id":"1329252257","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329252257":["hashtag1","hashtag2"]},{"1329252259":["hashtag1","hashtag2"]},{"1329252211":["hashtag1","hashtag2"]},{"1329252180":["hashtag1","hashtag2"]},{"1329252258":["hashtag1","hashtag2"]},{"1329252246":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329252257, 1329252259, 1329252211, 1329252180, 1329252258, 1329252246)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.093968629837036 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 15 --only_old 0
2025-01-15 23:52:32.168466
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/40/image_15012025_09_40_56_10353.jpg', '/home/pi/Desktop/images/15012025/09/40/image_15012025_09_41_07_10344.jpg', '/home/pi/Desktop/images/15012025/09/41/image_15012025_09_41_16_9393.jpg', '/home/pi/Desktop/images/15012025/09/41/image_15012025_09_41_26_10340.jpg', '/home/pi/Desktop/images/15012025/09/41/image_15012025_09_41_37_10347.jpg', '/home/pi/Desktop/images/15012025/09/41/image_15012025_09_41_46_9349.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/40/image_15012025_09_40_56_10353.jpg
/home/pi/Desktop/images/15012025/09/40/image_15012025_09_41_07_10344.jpg
/home/pi/Desktop/images/15012025/09/41/image_15012025_09_41_16_9393.jpg
/home/pi/Desktop/images/15012025/09/41/image_15012025_09_41_26_10340.jpg
/home/pi/Desktop/images/15012025/09/41/image_15012025_09_41_37_10347.jpg
/home/pi/Desktop/images/15012025/09/41/image_15012025_09_41_46_9349.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329252293","1329252295","1329252288","1329252297","1329252285","1329252290"],"photo_ids_order":["1329252285","1329252288","1329252290","1329252293","1329252295","1329252297"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8ab7d9d27f01711cd4a2dd73fe886da1.jpg","text":"TemporaryFile(/tmp/multipartBody8264138732776316180asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981613165,"filename":"image_15012025_09_41_26_10340.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e2ab3f13389317ae6a0cf98f51bff59c.jpg","text":"TemporaryFile(/tmp/multipartBody294011392302241627asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981613165,"filename":"image_15012025_09_41_37_10347.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/6ed45cf24339acdf5ea59a2380582fb2.jpg","text":"TemporaryFile(/tmp/multipartBody3066466208367215425asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981613165,"filename":"image_15012025_09_41_07_10344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/912743a0af5979eb001b9ff841801aa7.jpg","text":"TemporaryFile(/tmp/multipartBody8558863021703165836asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981613165,"filename":"image_15012025_09_41_46_9349.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c17c91ad3a6ae19f616e51ebabfb2a9e.jpg","text":"TemporaryFile(/tmp/multipartBody4970986911074293265asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981613165,"filename":"image_15012025_09_40_56_10353.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0666183274a39602b64f8654191806e4.jpg","text":"TemporaryFile(/tmp/multipartBody117615559667316513asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981613165,"filename":"image_15012025_09_41_16_9393.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329252290","file1":"1329252288","file0":"1329252285","file4":"1329252295","file5":"1329252297","file3":"1329252293"},"map_files_photo_id_array":[{"photo_id":"1329252297","filename":"file5"},{"photo_id":"1329252290","filename":"file2"},{"photo_id":"1329252295","filename":"file4"},{"photo_id":"1329252288","filename":"file1"},{"photo_id":"1329252285","filename":"file0"},{"photo_id":"1329252293","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329252293":["hashtag1","hashtag2"]},{"1329252295":["hashtag1","hashtag2"]},{"1329252288":["hashtag1","hashtag2"]},{"1329252297":["hashtag1","hashtag2"]},{"1329252285":["hashtag1","hashtag2"]},{"1329252290":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329252293, 1329252295, 1329252288, 1329252297, 1329252285, 1329252290)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.956289291381836 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 15 --only_old 0
2025-01-15 23:53:32.489429
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/41/image_15012025_09_41_56_10344.jpg', '/home/pi/Desktop/images/15012025/09/41/image_15012025_09_42_07_10343.jpg', '/home/pi/Desktop/images/15012025/09/42/image_15012025_09_42_16_9392.jpg', '/home/pi/Desktop/images/15012025/09/42/image_15012025_09_42_27_10445.jpg', '/home/pi/Desktop/images/15012025/09/42/image_15012025_09_42_46_10410.jpg', '/home/pi/Desktop/images/15012025/09/42/image_15012025_09_42_57_10330.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/41/image_15012025_09_41_56_10344.jpg
/home/pi/Desktop/images/15012025/09/41/image_15012025_09_42_07_10343.jpg
/home/pi/Desktop/images/15012025/09/42/image_15012025_09_42_16_9392.jpg
/home/pi/Desktop/images/15012025/09/42/image_15012025_09_42_27_10445.jpg
/home/pi/Desktop/images/15012025/09/42/image_15012025_09_42_46_10410.jpg
/home/pi/Desktop/images/15012025/09/42/image_15012025_09_42_57_10330.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329252359","1329252344","1329252338","1329252323","1329252361","1329252346"],"photo_ids_order":["1329252323","1329252338","1329252344","1329252346","1329252359","1329252361"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/898badaef50b4f2b7f96c39e8949ce11.jpg","text":"TemporaryFile(/tmp/multipartBody2457829236525614924asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981673486,"filename":"image_15012025_09_42_46_10410.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9b58c5bb881e6d44e148775e6503d9c7.jpg","text":"TemporaryFile(/tmp/multipartBody6490688991816617710asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981673486,"filename":"image_15012025_09_42_16_9392.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/bba1f6579876466dc73a528c745f35a4.jpg","text":"TemporaryFile(/tmp/multipartBody1692842388331771279asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981673486,"filename":"image_15012025_09_42_07_10343.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/388be404fb8b5c4e101831012f2521be.jpg","text":"TemporaryFile(/tmp/multipartBody260562871779228298asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981673486,"filename":"image_15012025_09_41_56_10344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/05493f4b2fb2de0abcce8db4aaaca60e.jpg","text":"TemporaryFile(/tmp/multipartBody5101742071448684179asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981673486,"filename":"image_15012025_09_42_57_10330.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/69b1e2cdde7c09ccf2db2b9b0387cbaa.jpg","text":"TemporaryFile(/tmp/multipartBody3248504149812673411asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981673486,"filename":"image_15012025_09_42_27_10445.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329252344","file1":"1329252338","file0":"1329252323","file4":"1329252359","file5":"1329252361","file3":"1329252346"},"map_files_photo_id_array":[{"photo_id":"1329252361","filename":"file5"},{"photo_id":"1329252344","filename":"file2"},{"photo_id":"1329252359","filename":"file4"},{"photo_id":"1329252338","filename":"file1"},{"photo_id":"1329252323","filename":"file0"},{"photo_id":"1329252346","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329252359":["hashtag1","hashtag2"]},{"1329252344":["hashtag1","hashtag2"]},{"1329252338":["hashtag1","hashtag2"]},{"1329252323":["hashtag1","hashtag2"]},{"1329252361":["hashtag1","hashtag2"]},{"1329252346":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329252359, 1329252344, 1329252338, 1329252323, 1329252361, 1329252346)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.45273518562317 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 15 --only_old 0
2025-01-15 23:54:32.650769
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/42/image_15012025_09_43_06_9422.jpg', '/home/pi/Desktop/images/15012025/09/43/image_15012025_09_43_17_10344.jpg', '/home/pi/Desktop/images/15012025/09/43/image_15012025_09_43_26_9374.jpg', '/home/pi/Desktop/images/15012025/09/43/image_15012025_09_43_36_10368.jpg', '/home/pi/Desktop/images/15012025/09/43/image_15012025_09_43_47_10334.jpg', '/home/pi/Desktop/images/15012025/09/43/image_15012025_09_43_56_9381.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/42/image_15012025_09_43_06_9422.jpg
/home/pi/Desktop/images/15012025/09/43/image_15012025_09_43_17_10344.jpg
/home/pi/Desktop/images/15012025/09/43/image_15012025_09_43_26_9374.jpg
/home/pi/Desktop/images/15012025/09/43/image_15012025_09_43_36_10368.jpg
/home/pi/Desktop/images/15012025/09/43/image_15012025_09_43_47_10334.jpg
/home/pi/Desktop/images/15012025/09/43/image_15012025_09_43_56_9381.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.5852451324462891 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
2025-01-15 23:54:42.641268
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/42/image_15012025_09_43_06_9422.jpg', '/home/pi/Desktop/images/15012025/09/43/image_15012025_09_43_17_10344.jpg', '/home/pi/Desktop/images/15012025/09/43/image_15012025_09_43_26_9374.jpg', '/home/pi/Desktop/images/15012025/09/43/image_15012025_09_43_36_10368.jpg', '/home/pi/Desktop/images/15012025/09/43/image_15012025_09_43_47_10334.jpg', '/home/pi/Desktop/images/15012025/09/43/image_15012025_09_43_56_9381.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/42/image_15012025_09_43_06_9422.jpg
/home/pi/Desktop/images/15012025/09/43/image_15012025_09_43_17_10344.jpg
/home/pi/Desktop/images/15012025/09/43/image_15012025_09_43_26_9374.jpg
/home/pi/Desktop/images/15012025/09/43/image_15012025_09_43_36_10368.jpg
/home/pi/Desktop/images/15012025/09/43/image_15012025_09_43_47_10334.jpg
/home/pi/Desktop/images/15012025/09/43/image_15012025_09_43_56_9381.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329252401","1329252394","1329252397","1329252391","1329252387","1329252383"],"photo_ids_order":["1329252383","1329252387","1329252391","1329252394","1329252397","1329252401"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/046ed39ddc284f5354d2821afc9f2033.jpg","text":"TemporaryFile(/tmp/multipartBody4945222677462650829asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981743845,"filename":"image_15012025_09_43_56_9381.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/47db467c79eeb93e74f2cdbc2b01c0bc.jpg","text":"TemporaryFile(/tmp/multipartBody1947857939333751996asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981743845,"filename":"image_15012025_09_43_36_10368.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/1f563d275b58b44484c91c557e3591ff.jpg","text":"TemporaryFile(/tmp/multipartBody3629586823828268602asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981743845,"filename":"image_15012025_09_43_47_10334.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/44bbf3604e2d53841d080a04d96a5ffd.jpg","text":"TemporaryFile(/tmp/multipartBody2204887189782182777asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981743845,"filename":"image_15012025_09_43_26_9374.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c2aa384f01cbc24ff4411fc4d121dfdd.jpg","text":"TemporaryFile(/tmp/multipartBody8388472641056597573asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981743845,"filename":"image_15012025_09_43_17_10344.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f07d033cc2df9ecaf41234a64b34e8dd.jpg","text":"TemporaryFile(/tmp/multipartBody7280304477672241020asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981743845,"filename":"image_15012025_09_43_06_9422.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329252391","file1":"1329252387","file0":"1329252383","file4":"1329252397","file5":"1329252401","file3":"1329252394"},"map_files_photo_id_array":[{"photo_id":"1329252401","filename":"file5"},{"photo_id":"1329252391","filename":"file2"},{"photo_id":"1329252397","filename":"file4"},{"photo_id":"1329252387","filename":"file1"},{"photo_id":"1329252383","filename":"file0"},{"photo_id":"1329252394","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329252401":["hashtag1","hashtag2"]},{"1329252394":["hashtag1","hashtag2"]},{"1329252397":["hashtag1","hashtag2"]},{"1329252391":["hashtag1","hashtag2"]},{"1329252387":["hashtag1","hashtag2"]},{"1329252383":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329252401, 1329252394, 1329252397, 1329252391, 1329252387, 1329252383)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.464338302612305 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 15 --only_old 0
2025-01-15 23:55:32.975340
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/43/image_15012025_09_44_06_10423.jpg', '/home/pi/Desktop/images/15012025/09/44/image_15012025_09_44_17_10342.jpg', '/home/pi/Desktop/images/15012025/09/44/image_15012025_09_44_26_9431.jpg', '/home/pi/Desktop/images/15012025/09/44/image_15012025_09_44_37_10401.jpg', '/home/pi/Desktop/images/15012025/09/44/image_15012025_09_44_46_9443.jpg', '/home/pi/Desktop/images/15012025/09/44/image_15012025_09_44_56_10355.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/43/image_15012025_09_44_06_10423.jpg
/home/pi/Desktop/images/15012025/09/44/image_15012025_09_44_17_10342.jpg
/home/pi/Desktop/images/15012025/09/44/image_15012025_09_44_26_9431.jpg
/home/pi/Desktop/images/15012025/09/44/image_15012025_09_44_37_10401.jpg
/home/pi/Desktop/images/15012025/09/44/image_15012025_09_44_46_9443.jpg
/home/pi/Desktop/images/15012025/09/44/image_15012025_09_44_56_10355.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329252430","1329252424","1329252427","1329252417","1329252429","1329252420"],"photo_ids_order":["1329252417","1329252420","1329252424","1329252427","1329252429","1329252430"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/0a76be2a9a89b24be93ac159f8b1fc0d.jpg","text":"TemporaryFile(/tmp/multipartBody1604844191979814839asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981793978,"filename":"image_15012025_09_44_56_10355.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/9fcabf7936d512b6f273875015248f36.jpg","text":"TemporaryFile(/tmp/multipartBody6316569864262778437asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981793978,"filename":"image_15012025_09_44_26_9431.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/77c340bc111180ce025f53ecbc2471fe.jpg","text":"TemporaryFile(/tmp/multipartBody1643347639934639355asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981793978,"filename":"image_15012025_09_44_37_10401.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c437999c553c70379be3615f0b4b5d59.jpg","text":"TemporaryFile(/tmp/multipartBody4684953513934768530asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981793978,"filename":"image_15012025_09_44_06_10423.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f1740cebdb8c6897b74be05bfb84df8e.jpg","text":"TemporaryFile(/tmp/multipartBody5681917187461425840asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981793978,"filename":"image_15012025_09_44_46_9443.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/c622f3fbd6657749d029699483fcad72.jpg","text":"TemporaryFile(/tmp/multipartBody70628736604810582asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981793978,"filename":"image_15012025_09_44_17_10342.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329252424","file1":"1329252420","file0":"1329252417","file4":"1329252429","file5":"1329252430","file3":"1329252427"},"map_files_photo_id_array":[{"photo_id":"1329252430","filename":"file5"},{"photo_id":"1329252424","filename":"file2"},{"photo_id":"1329252429","filename":"file4"},{"photo_id":"1329252420","filename":"file1"},{"photo_id":"1329252417","filename":"file0"},{"photo_id":"1329252427","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329252430":["hashtag1","hashtag2"]},{"1329252424":["hashtag1","hashtag2"]},{"1329252427":["hashtag1","hashtag2"]},{"1329252417":["hashtag1","hashtag2"]},{"1329252429":["hashtag1","hashtag2"]},{"1329252420":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329252430, 1329252424, 1329252427, 1329252417, 1329252429, 1329252420)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.28873348236084 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 15 --only_old 0
2025-01-15 23:56:32.194820
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/44/image_15012025_09_45_07_10361.jpg', '/home/pi/Desktop/images/15012025/09/45/image_15012025_09_45_16_9421.jpg', '/home/pi/Desktop/images/15012025/09/45/image_15012025_09_45_27_10356.jpg', '/home/pi/Desktop/images/15012025/09/45/image_15012025_09_45_36_9452.jpg', '/home/pi/Desktop/images/15012025/09/45/image_15012025_09_45_46_10348.jpg', '/home/pi/Desktop/images/15012025/09/45/image_15012025_09_45_57_10395.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/44/image_15012025_09_45_07_10361.jpg
/home/pi/Desktop/images/15012025/09/45/image_15012025_09_45_16_9421.jpg
/home/pi/Desktop/images/15012025/09/45/image_15012025_09_45_27_10356.jpg
/home/pi/Desktop/images/15012025/09/45/image_15012025_09_45_36_9452.jpg
/home/pi/Desktop/images/15012025/09/45/image_15012025_09_45_46_10348.jpg
/home/pi/Desktop/images/15012025/09/45/image_15012025_09_45_57_10395.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1329252521","1329252515","1329252509","1329252518","1329252468","1329252465"],"photo_ids_order":["1329252465","1329252468","1329252509","1329252515","1329252518","1329252521"],"photo_detail":[{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/e785e27f3ccadaf508dd6e1f03d79291.jpg","text":"TemporaryFile(/tmp/multipartBody1513650123433583747asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981853248,"filename":"image_15012025_09_45_57_10395.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/8625b6fb4d85b6c26fe30884692d7987.jpg","text":"TemporaryFile(/tmp/multipartBody3237735422889527225asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981853248,"filename":"image_15012025_09_45_36_9452.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/63e52a6b23ed7db33e197ca2ed79ac77.jpg","text":"TemporaryFile(/tmp/multipartBody1992799790362046234asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981853248,"filename":"image_15012025_09_45_27_10356.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/14153b2ab10d7f198a482729fc5f10de.jpg","text":"TemporaryFile(/tmp/multipartBody241446942083413953asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981853248,"filename":"image_15012025_09_45_46_10348.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/f1483d5638074447beb95e6fddad1d31.jpg","text":"TemporaryFile(/tmp/multipartBody5587804148570307226asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981853248,"filename":"image_15012025_09_45_16_9421.jpg","height":0,"width":0},{"mtr_user_id":991,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/15/5295de10ea3b5937f2cfe09965fa38ac.jpg","text":"TemporaryFile(/tmp/multipartBody1481460958320018068asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1736981853248,"filename":"image_15012025_09_45_07_10361.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1329252509","file1":"1329252468","file0":"1329252465","file4":"1329252518","file5":"1329252521","file3":"1329252515"},"map_files_photo_id_array":[{"photo_id":"1329252521","filename":"file5"},{"photo_id":"1329252509","filename":"file2"},{"photo_id":"1329252518","filename":"file4"},{"photo_id":"1329252468","filename":"file1"},{"photo_id":"1329252465","filename":"file0"},{"photo_id":"1329252515","filename":"file3"}],"portfolio_id":19642969,"hashtag_by_photo_ids":[{"1329252521":["hashtag1","hashtag2"]},{"1329252515":["hashtag1","hashtag2"]},{"1329252509":["hashtag1","hashtag2"]},{"1329252518":["hashtag1","hashtag2"]},{"1329252468":["hashtag1","hashtag2"]},{"1329252465":["hashtag1","hashtag2"]}],"comms":"Portfolio 19642969 used, photo_id : ArrayBuffer(1329252521, 1329252515, 1329252509, 1329252518, 1329252468, 1329252465)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.85276556015015 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 15 --only_old 0
2025-01-15 23:57:32.637294
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/45/image_15012025_09_46_06_9417.jpg', '/home/pi/Desktop/images/15012025/09/46/image_15012025_09_46_26_9472.jpg', '/home/pi/Desktop/images/15012025/09/46/image_15012025_09_46_36_10358.jpg', '/home/pi/Desktop/images/15012025/09/46/image_15012025_09_46_47_10351.jpg', '/home/pi/Desktop/images/15012025/09/46/image_15012025_09_46_56_9315.jpg', '/home/pi/Desktop/images/15012025/09/46/image_15012025_09_47_06_10380.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/45/image_15012025_09_46_06_9417.jpg
/home/pi/Desktop/images/15012025/09/46/image_15012025_09_46_26_9472.jpg
/home/pi/Desktop/images/15012025/09/46/image_15012025_09_46_36_10358.jpg
/home/pi/Desktop/images/15012025/09/46/image_15012025_09_46_47_10351.jpg
/home/pi/Desktop/images/15012025/09/46/image_15012025_09_46_56_9315.jpg
/home/pi/Desktop/images/15012025/09/46/image_15012025_09_47_06_10380.jpg
after data_to_send, before sending request
after request
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at www.fotonower.com Port 443</address>\n</body></html>\n'
400
uploaded 0 photos
time to upload: 0.6000328063964844 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
2025-01-15 23:57:42.486206
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250115 ORDER BY id_local ASC LIMIT 6;
  port_id : 19642969
  datou_current_id : 2486221
in upload_from_sqlite, uploading in 19642969
in upload_photo_and_update_logs, uploading 6 files
in upload media
 Upload medias :  ['/home/pi/Desktop/images/15012025/09/45/image_15012025_09_46_06_9417.jpg', '/home/pi/Desktop/images/15012025/09/46/image_15012025_09_46_26_9472.jpg', '/home/pi/Desktop/images/15012025/09/46/image_15012025_09_46_36_10358.jpg', '/home/pi/Desktop/images/15012025/09/46/image_15012025_09_46_47_10351.jpg', '/home/pi/Desktop/images/15012025/09/46/image_15012025_09_46_56_9315.jpg', '/home/pi/Desktop/images/15012025/09/46/image_15012025_09_47_06_10380.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=814cca0266bcde387dcca7c32045d470&datou_current_id=2486221&datou=0
/home/pi/Desktop/images/15012025/09/45/image_15012025_09_46_06_9417.jpg
/home/pi/Desktop/images/15012025/09/46/image_15012025_09_46_26_9472.jpg
/home/pi/Desktop/images/15012025/09/46/image_15012025_09_46_36_10358.jpg
/home/pi/Desktop/images/15012025/09/46/image_15012025_09_46_47_10351.jpg
/home/pi/Desktop/images/15012025/09/46/image_15012025_09_46_56_9315.jpg
/home/pi/Desktop/images/15012025/09/46/image_15012025_09_47_06_10380.jpg
 val : 1 : upload photos already in processing! 
